diff options
author | Ivan T. Ivanov <iivanov@mm-sol.com> | 2014-04-28 09:34:15 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-04-30 12:28:44 -0400 |
commit | 8364f9af237f47fa128bd4e4f7b45beef890c994 (patch) | |
tree | 8508652e8e910d97ef6ac89df1104ef861099098 /Documentation/devicetree/bindings/usb | |
parent | f60c114a3ae528dfc6750baad58cf822d0b282a2 (diff) |
usb: phy: msm: Add device tree support and binding information
Allows controller to be specified via device tree.
Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'Documentation/devicetree/bindings/usb')
-rw-r--r-- | Documentation/devicetree/bindings/usb/msm-hsusb.txt | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/usb/msm-hsusb.txt b/Documentation/devicetree/bindings/usb/msm-hsusb.txt index 5ea26c631e3a..ee4123de3de4 100644 --- a/Documentation/devicetree/bindings/usb/msm-hsusb.txt +++ b/Documentation/devicetree/bindings/usb/msm-hsusb.txt | |||
@@ -15,3 +15,70 @@ Example EHCI controller device node: | |||
15 | usb-phy = <&usb_otg>; | 15 | usb-phy = <&usb_otg>; |
16 | }; | 16 | }; |
17 | 17 | ||
18 | USB PHY with optional OTG: | ||
19 | |||
20 | Required properties: | ||
21 | - compatible: Should contain: | ||
22 | "qcom,usb-otg-ci" for chipsets with ChipIdea 45nm PHY | ||
23 | "qcom,usb-otg-snps" for chipsets with Synopsys 28nm PHY | ||
24 | |||
25 | - regs: Offset and length of the register set in the memory map | ||
26 | - interrupts: interrupt-specifier for the OTG interrupt. | ||
27 | |||
28 | - clocks: A list of phandle + clock-specifier pairs for the | ||
29 | clocks listed in clock-names | ||
30 | - clock-names: Should contain the following: | ||
31 | "phy" USB PHY reference clock | ||
32 | "core" Protocol engine clock | ||
33 | "iface" Interface bus clock | ||
34 | "alt_core" Protocol engine clock for targets with asynchronous | ||
35 | reset methodology. (optional) | ||
36 | |||
37 | - vdccx-supply: phandle to the regulator for the vdd supply for | ||
38 | digital circuit operation. | ||
39 | - v1p8-supply: phandle to the regulator for the 1.8V supply | ||
40 | - v3p3-supply: phandle to the regulator for the 3.3V supply | ||
41 | |||
42 | - resets: A list of phandle + reset-specifier pairs for the | ||
43 | resets listed in reset-names | ||
44 | - reset-names: Should contain the following: | ||
45 | "phy" USB PHY controller reset | ||
46 | "link" USB LINK controller reset | ||
47 | |||
48 | - qcom,otg-control: OTG control (VBUS and ID notifications) can be one of | ||
49 | 1 - PHY control | ||
50 | 2 - PMIC control | ||
51 | |||
52 | Optional properties: | ||
53 | - dr_mode: One of "host", "peripheral" or "otg". Defaults to "otg" | ||
54 | |||
55 | - qcom,phy-init-sequence: PHY configuration sequence values. This is related to Device | ||
56 | Mode Eye Diagram test. Start address at which these values will be | ||
57 | written is ULPI_EXT_VENDOR_SPECIFIC. Value of -1 is reserved as | ||
58 | "do not overwrite default value at this address". | ||
59 | For example: qcom,phy-init-sequence = < -1 0x63 >; | ||
60 | Will update only value at address ULPI_EXT_VENDOR_SPECIFIC + 1. | ||
61 | |||
62 | Example HSUSB OTG controller device node: | ||
63 | |||
64 | usb@f9a55000 { | ||
65 | compatible = "qcom,usb-otg-snps"; | ||
66 | reg = <0xf9a55000 0x400>; | ||
67 | interrupts = <0 134 0>; | ||
68 | dr_mode = "peripheral"; | ||
69 | |||
70 | clocks = <&gcc GCC_XO_CLK>, <&gcc GCC_USB_HS_SYSTEM_CLK>, | ||
71 | <&gcc GCC_USB_HS_AHB_CLK>; | ||
72 | |||
73 | clock-names = "phy", "core", "iface"; | ||
74 | |||
75 | vddcx-supply = <&pm8841_s2_corner>; | ||
76 | v1p8-supply = <&pm8941_l6>; | ||
77 | v3p3-supply = <&pm8941_l24>; | ||
78 | |||
79 | resets = <&gcc GCC_USB2A_PHY_BCR>, <&gcc GCC_USB_HS_BCR>; | ||
80 | reset-names = "phy", "link"; | ||
81 | |||
82 | qcom,otg-control = <1>; | ||
83 | qcom,phy-init-sequence = < -1 0x63 >; | ||
84 | }; | ||