devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 1/2] usb: doc: Add bindings for ULPI platform driver
@ 2015-09-23 12:54 Subbaraya Sundeep Bhatta
       [not found] ` <1443012841-13673-1-git-send-email-sbhatta-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
  2015-09-24 16:14 ` Rob Herring
  0 siblings, 2 replies; 9+ messages in thread
From: Subbaraya Sundeep Bhatta @ 2015-09-23 12:54 UTC (permalink / raw)
  To: balbi, peter.chen, devicetree, kishon
  Cc: gregkh, linux-usb, linux-kernel, punnaia,
	Subbaraya Sundeep Bhatta

This patch adds binding doc info for generic ULPI PHYs
platform driver.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
---
 .../devicetree/bindings/usb/ulpi-platform-phy.txt  |   34 ++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/usb/ulpi-platform-phy.txt

diff --git a/Documentation/devicetree/bindings/usb/ulpi-platform-phy.txt b/Documentation/devicetree/bindings/usb/ulpi-platform-phy.txt
new file mode 100644
index 0000000..7b8cbb4
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/ulpi-platform-phy.txt
@@ -0,0 +1,34 @@
+Platform driver for generic ULPI PHYs
+
+Required properties:
+- compatible		: Should be "ulpi-phy"
+- reg			: Physical base address and size of the USB
+			  controller registers map to which this PHY
+			  is connected.
+- view-port		: Should contain viewport register offset of the
+			  USB controller to which this PHY is connected
+Optional properties:
+- drv-vbus		: required if turning VBUS on/off has to be driven
+			  by writing to PHY. This feature depends on board
+			  design.
+
+Example:
+Below example shows the PHY binding for Chipidea USB controller which has
+ulpi viewport register at 0x0170
+
+		usb_phy0: phy0 {
+                	compatible = "ulpi-phy";
+                	reg = <0xe0002000 0x1000>;
+                	view-port = <0x0170>;
+                	drv-vbus;
+        	};
+
+		usb0: usb@e0002000 {
+                        compatible = "chipidea,usb2";
+                        interrupt-parent = <&intc>;
+                        interrupts = <0 21 4>;
+                        reg = <0xe0002000 0x1000>;
+                        phy_type = "ulpi";
+			dr_mode = "host";
+			usb-phy = <&usb_phy0>;
+                };
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-28 11:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-23 12:54 [RFC PATCH 1/2] usb: doc: Add bindings for ULPI platform driver Subbaraya Sundeep Bhatta
     [not found] ` <1443012841-13673-1-git-send-email-sbhatta-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2015-09-24  9:10   ` Peter Chen
2015-09-24  9:26     ` Subbaraya Sundeep Bhatta
2015-09-24 16:18       ` Rob Herring
2015-09-30 16:18         ` Felipe Balbi
     [not found]           ` <20150930161803.GI32625-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
2015-10-11 11:15             ` punnaiah choudary kalluri
     [not found]               ` <CAGnW=Bb0pdv7i1N=WqZoQLDUpuGw=Xq=cM5ir2Ow25pUDYtvEA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-11 14:40                 ` Kishon Vijay Abraham I
     [not found]                   ` <561A74E6.9050406-l0cyMroinI0@public.gmane.org>
2015-10-28 11:55                     ` Subbaraya Sundeep Bhatta
2015-09-24 16:14 ` Rob Herring

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).