aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/usb/usb-ohci.txt
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-02-07 16:36:40 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-07 14:24:24 -0800
commitca52a17ba975dbf47e87c9bc63086aca0cf92806 (patch)
tree5aad16944490a0c4dd9727089b05050da197ea8b /Documentation/devicetree/bindings/usb/usb-ohci.txt
parentusb: core: let dynamic ids override static ids (diff)
downloadlinux-dev-ca52a17ba975dbf47e87c9bc63086aca0cf92806.tar.xz
linux-dev-ca52a17ba975dbf47e87c9bc63086aca0cf92806.zip
ohci-platform: Add support for devicetree instantiation
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> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/usb/usb-ohci.txt')
-rw-r--r--Documentation/devicetree/bindings/usb/usb-ohci.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/usb/usb-ohci.txt b/Documentation/devicetree/bindings/usb/usb-ohci.txt
new file mode 100644
index 000000000000..6ba38d990d16
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/usb-ohci.txt
@@ -0,0 +1,22 @@
+USB OHCI controllers
+
+Required properties:
+- compatible : "usb-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: usb@01c14400 {
+ compatible = "allwinner,sun4i-a10-ohci", "usb-ohci";
+ reg = <0x01c14400 0x100>;
+ interrupts = <64>;
+ clocks = <&usb_clk 6>, <&ahb_gates 2>;
+ phys = <&usbphy 1>;
+ phy-names = "usb";
+ };