From: zhangfei.gao@linaro.org (Zhangfei Gao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/4] Documentation: dt-bindings: add dt binding info for hi6220
Date: Thu, 12 Feb 2015 15:37:24 +0800 [thread overview]
Message-ID: <1423726646-30336-3-git-send-email-zhangfei.gao@linaro.org> (raw)
In-Reply-To: <1423726646-30336-1-git-send-email-zhangfei.gao@linaro.org>
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
---
.../devicetree/bindings/usb/hi6220-usb.txt | 49 ++++++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 Documentation/devicetree/bindings/usb/hi6220-usb.txt
diff --git a/Documentation/devicetree/bindings/usb/hi6220-usb.txt b/Documentation/devicetree/bindings/usb/hi6220-usb.txt
new file mode 100644
index 0000000..b3a7b5a
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/hi6220-usb.txt
@@ -0,0 +1,49 @@
+Hisilicon hi6220 SoC USB controller
+-----------------------------
+
+usb controller is inherited from dwc2, refer dwc2.txt
+-----
+
+Required properties:
+- compatible: "hisilicon,hi6220-usb"
+Refer to dwc2.txt for dwc2 usb properties
+
+
+PHY:
+-----
+
+Required properties:
+- compatible: "hisilicon,hi6220-usb-phy"
+- vcc-supply: phandle to the regulator that provides power to the PHY.
+- clocks: phandle and clock specifier of the PHY clock.
+- hisilicon,peripheral-syscon: phandle of syscon used to control peripheral.
+- hisilicon,vbus-gpios: gpio of detecting vbus.
+- hisilicon,id-gpios: gpio of detecting id.
+
+Example:
+
+ sys_ctrl: syscon at f7030000 {
+ compatible = "hisilicon,sysctrl", "syscon";
+ reg = <0x0 0xf7030000 0x0 0x1000>;
+ };
+
+ usb_phy: usb-phy {
+ compatible = "hisilicon,hi6220-usb-phy";
+ vcc-supply = <&fixed_5v_hub>;
+ hisilicon,vbus-gpios = <&gpio2 6 0>;
+ hisilicon,id-gpios = <&gpio2 5 0>;
+ hisilicon,peripheral-syscon = <&sys_ctrl>;
+ clocks = <&clock_sys HI6220_USBOTG_HCLK>;
+ };
+
+ usb: usb at f72c0000 {
+ compatible = "hisilicon,hi6220-usb";
+ reg = <0x0 0xf72c0000 0x0 0x40000>;
+ phys = <&usb_phy>;
+ dr_mode = "otg";
+ g-use-dma;
+ g-rx-fifo-size = <512>;
+ g-np-tx-fifo-size = <128>;
+ g-tx-fifo-size = <128>;
+ interrupts = <0 77 0x4>;
+ };
--
1.9.1
next prev parent reply other threads:[~2015-02-12 7:37 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-12 7:37 [PATCH v4 0/4] add usb support for hi6220 Zhangfei Gao
2015-02-12 7:37 ` [PATCH v4 1/4] Documentation: dt-bindings: add dt binding info for hi6220 dwc2 Zhangfei Gao
2015-02-12 7:37 ` Zhangfei Gao [this message]
2015-02-12 7:37 ` [PATCH v4 3/4] usb: dwc2: platform: add hi6220 support Zhangfei Gao
2015-02-12 7:37 ` [PATCH v4 4/4] phy: add phy-hi6220-usb Zhangfei Gao
2015-02-18 5:35 ` Kishon Vijay Abraham I
2015-02-18 5:44 ` zhangfei
2015-02-18 14:35 ` Felipe Balbi
2015-02-20 3:07 ` zhangfei
2015-02-20 4:38 ` Felipe Balbi
2015-02-20 10:27 ` zhangfei
2015-02-20 14:41 ` Felipe Balbi
2015-02-20 15:44 ` zhangfei
2015-02-20 16:06 ` Felipe Balbi
2015-02-21 15:03 ` zhangfei
2015-02-21 16:21 ` Felipe Balbi
2015-02-22 3:10 ` zhangfei
2015-02-23 15:36 ` Felipe Balbi
2015-02-25 13:28 ` zhangfei
2015-02-25 16:32 ` Felipe Balbi
2015-02-24 10:13 ` Roger Quadros
2015-02-26 8:48 ` zhangfei
2015-02-26 9:36 ` Roger Quadros
2015-02-27 2:07 ` Peter Chen
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=1423726646-30336-3-git-send-email-zhangfei.gao@linaro.org \
--to=zhangfei.gao@linaro.org \
--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 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).