From: Peter Griffin <peter.griffin@linaro.org>
To: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, maxime.coquelin@st.com,
patrice.chotard@st.com, gregkh@linuxfoundation.org,
srinivas.kandagatla@gmail.com, linux-usb@vger.kernel.org,
devicetree@vger.kernel.org
Cc: peter.griffin@linaro.org, lee.jones@linaro.org
Subject: [PATCH 2/3] usb: host: st-hcd: Add st-hcd devicetree bindings documentation.
Date: Thu, 10 Jul 2014 16:18:05 +0100 [thread overview]
Message-ID: <1405005486-26355-3-git-send-email-peter.griffin@linaro.org> (raw)
In-Reply-To: <1405005486-26355-1-git-send-email-peter.griffin@linaro.org>
This patch documents the device tree documentation required for
the ST HCD controller found in STMicroelectronics SoCs.
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
---
Documentation/devicetree/bindings/usb/st-hcd.txt | 51 ++++++++++++++++++++++++
1 file changed, 51 insertions(+)
create mode 100644 Documentation/devicetree/bindings/usb/st-hcd.txt
diff --git a/Documentation/devicetree/bindings/usb/st-hcd.txt b/Documentation/devicetree/bindings/usb/st-hcd.txt
new file mode 100644
index 0000000..f2500dd
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/st-hcd.txt
@@ -0,0 +1,51 @@
+ST HCD (Host Controller Driver) for USB 2.0 and 1.1
+
+The device node has the following properties.
+
+Required properties:
+ - compatible : must be "st,usb-300x"
+ - reg : physical base addresses of the controller and length of memory mapped
+ region
+ - reg-names : names associated to the reg defines above, should be "ehci" and "ohci"
+ - interrupts : interrupt numbers to the cpu
+ - interrupt-names : should be "ehci" and "ohci"
+
+ - pinctrl-names : a pinctrl state named "default" must be defined
+- pinctrl-0 : phandle referencing pin configuration of the USB controller
+See: Documentation/devicetree/bindings/pinctrl/pinctrl-binding.txt
+
+ - clocks : phandle list of usb clocks.
+ - clock-names : should be "ic" for interconnect clock and "ohci" for the 48MHz clock
+See: Documentation/devicetree/bindings/clock/clock-bindings.txt
+
+ - resets : phandle to the powerdown and reset controller for the USB IP
+ - reset-names : should be "power" and "softreset".
+See: Documentation/devicetree/bindings/reset/st,sti-powerdown.txt
+See: Documentation/devicetree/bindings/reset/reset.txt
+
+Example:
+
+usb0: usb@fe100000 {
+ compatible = "st,usb-300x";
+ reg = <0xfe1ffc00 0x100>,
+ <0xfe1ffe00 0x100>;
+ reg-names = "ohci", "ehci";
+
+ interrupts = <GIC_SPI 148 IRQ_TYPE_NONE>,
+ <GIC_SPI 149 IRQ_TYPE_NONE>;
+ interrupt-names = "ehci","ohci";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_usb0>;
+ clocks = <&clk_s_a1_ls CLK_ICN_IF_2>,
+ <&clockgen_b0 0>;
+ clock-names = "ic", "ohci";
+
+ resets = <&powerdown STIH416_USB0_POWERDOWN>,
+ <&softreset STIH416_USB0_SOFTRESET>;
+ reset-names = "power", "softreset";
+
+ phys = <&usb2_phy>;
+ phy-names = "usb2-phy";
+};
+
+
--
1.9.1
next prev parent reply other threads:[~2014-07-10 15:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-10 15:18 [PATCH 0/3] Add USB HCD support for STi SoCs Peter Griffin
2014-07-10 15:18 ` [PATCH 1/3] usb: host: st-hcd: " Peter Griffin
2014-07-10 18:23 ` Alan Stern
2014-07-11 7:44 ` Peter Griffin
2014-07-11 21:21 ` Alan Stern
2014-07-14 8:35 ` Lee Jones
2014-07-14 14:58 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.1407141054010.10763-100000-pYrvlCTfrz9XsRXLowluHWD2FQJk+8+b@public.gmane.org>
2014-07-22 13:59 ` Peter Griffin
2014-07-11 8:20 ` Lee Jones
2014-07-24 9:54 ` Peter Griffin
2014-07-10 15:18 ` Peter Griffin [this message]
2014-07-11 8:24 ` [PATCH 2/3] usb: host: st-hcd: Add st-hcd devicetree bindings documentation Lee Jones
[not found] ` <1405005486-26355-1-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-07-10 15:18 ` [PATCH 3/3] MAINTAINERS: Add st-hcd to ARCH/STI architecture Peter Griffin
2014-07-11 8:21 ` Lee Jones
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=1405005486-26355-3-git-send-email-peter.griffin@linaro.org \
--to=peter.griffin@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=maxime.coquelin@st.com \
--cc=patrice.chotard@st.com \
--cc=srinivas.kandagatla@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).