From: sergei.shtylyov@cogentembedded.com (Sergei Shtylyov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/2] ohci-platform: Add support for devicetree instantiation
Date: Thu, 09 Jan 2014 23:14:30 +0300 [thread overview]
Message-ID: <52CF0326.1090407@cogentembedded.com> (raw)
In-Reply-To: <1389290226-6971-2-git-send-email-hdegoede@redhat.com>
Hello.
On 01/09/2014 08:57 PM, Hans de Goede wrote:
> Add support for ohci-platform instantiation from devicetree, including
> optionally getting clks and a phy from devicetree, and enabling / disabling
> those on power_on / off.
> This should allow using ohci-platform from devicetree in various cases.
> Specifically after this commit it can be used for the ohci controller found
> on Allwinner sunxi SoCs.
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> .../devicetree/bindings/usb/mmio-ohci.txt | 22 +++
> drivers/usb/host/ohci-platform.c | 150 ++++++++++++++++++---
> 2 files changed, 152 insertions(+), 20 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/usb/mmio-ohci.txt
> diff --git a/Documentation/devicetree/bindings/usb/mmio-ohci.txt b/Documentation/devicetree/bindings/usb/mmio-ohci.txt
> new file mode 100644
> index 0000000..9c776ed
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/mmio-ohci.txt
> @@ -0,0 +1,22 @@
> +Generic MMIO OHCI controller
OHCI controller always uses MMIO, and likewise EHCI. You don't need to
specifically mention it.
> +
> +Required properties:
> +- compatible : "mmio-ohci"
Likewise, it's not a good name. Why not call it "platform-ohci"?
> +- reg : ohci controller register range (address and length)
> +- interrupts : ohci controller interrupt
> +
> +Optional properties:
> +- clocks : a list of phandle + clock specifier pairs
> +- phys : phandle + phy specifier pair
> +- phy-names : "usb"
> +
> +Example:
> +
> + ohci0: ohci at 0x01c14400 {
> + compatible = "mmio-ohci";
> + reg = <0x01c14400 0x100>;
> + interrupts = <64>;
> + clocks = <&usb_clk 6>, <&ahb_gates 2>;
> + phys = <&usbphy 1>;
> + phy-names = "usb";
> + };
WBR, Sergei
WARNING: multiple messages have this Message-ID (diff)
From: Sergei Shtylyov <sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
To: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
Alan Stern
<stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org>,
Tony Prisk <linux-ci5G2KO2hbZ+pU9mqzGVBQ@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-usb <linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [PATCH v3 1/2] ohci-platform: Add support for devicetree instantiation
Date: Thu, 09 Jan 2014 23:14:30 +0300 [thread overview]
Message-ID: <52CF0326.1090407@cogentembedded.com> (raw)
In-Reply-To: <1389290226-6971-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Hello.
On 01/09/2014 08:57 PM, Hans de Goede wrote:
> Add support for ohci-platform instantiation from devicetree, including
> optionally getting clks and a phy from devicetree, and enabling / disabling
> those on power_on / off.
> This should allow using ohci-platform from devicetree in various cases.
> Specifically after this commit it can be used for the ohci controller found
> on Allwinner sunxi SoCs.
> Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
> .../devicetree/bindings/usb/mmio-ohci.txt | 22 +++
> drivers/usb/host/ohci-platform.c | 150 ++++++++++++++++++---
> 2 files changed, 152 insertions(+), 20 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/usb/mmio-ohci.txt
> diff --git a/Documentation/devicetree/bindings/usb/mmio-ohci.txt b/Documentation/devicetree/bindings/usb/mmio-ohci.txt
> new file mode 100644
> index 0000000..9c776ed
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/mmio-ohci.txt
> @@ -0,0 +1,22 @@
> +Generic MMIO OHCI controller
OHCI controller always uses MMIO, and likewise EHCI. You don't need to
specifically mention it.
> +
> +Required properties:
> +- compatible : "mmio-ohci"
Likewise, it's not a good name. Why not call it "platform-ohci"?
> +- reg : ohci controller register range (address and length)
> +- interrupts : ohci controller interrupt
> +
> +Optional properties:
> +- clocks : a list of phandle + clock specifier pairs
> +- phys : phandle + phy specifier pair
> +- phy-names : "usb"
> +
> +Example:
> +
> + ohci0: ohci@0x01c14400 {
> + compatible = "mmio-ohci";
> + reg = <0x01c14400 0x100>;
> + interrupts = <64>;
> + clocks = <&usb_clk 6>, <&ahb_gates 2>;
> + phys = <&usbphy 1>;
> + phy-names = "usb";
> + };
WBR, Sergei
next prev parent reply other threads:[~2014-01-09 20:14 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-09 17:57 [PATCH v3 0/2] ohci and ehci-platform clks, phy and dt support Hans de Goede
2014-01-09 17:57 ` Hans de Goede
2014-01-09 17:57 ` [PATCH v3 1/2] ohci-platform: Add support for devicetree instantiation Hans de Goede
2014-01-09 17:57 ` Hans de Goede
2014-01-09 18:07 ` Arnd Bergmann
2014-01-09 18:07 ` Arnd Bergmann
2014-01-09 18:18 ` Hans de Goede
2014-01-09 18:18 ` Hans de Goede
2014-01-09 20:14 ` Sergei Shtylyov [this message]
2014-01-09 20:14 ` Sergei Shtylyov
2014-01-09 19:48 ` Hans de Goede
2014-01-09 19:48 ` Hans de Goede
2014-01-09 21:08 ` Sergei Shtylyov
2014-01-09 21:08 ` Sergei Shtylyov
2014-01-10 9:47 ` [linux-sunxi] " Hans de Goede
2014-01-10 9:47 ` Hans de Goede
2014-01-10 22:02 ` [linux-sunxi] " Sergei Shtylyov
2014-01-10 22:02 ` Sergei Shtylyov
2014-01-09 20:36 ` Alan Stern
2014-01-09 20:36 ` Alan Stern
2014-01-10 10:13 ` Hans de Goede
2014-01-10 10:13 ` Hans de Goede
2014-01-10 15:29 ` Alan Stern
2014-01-10 15:29 ` Alan Stern
2014-01-09 17:57 ` [PATCH v3 2/2] ehci-platform: Add support for clks and phy passed through devicetree Hans de Goede
2014-01-09 17:57 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52CF0326.1090407@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.