]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/phy/sun4i-usb-phy.txt
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[karo-tx-linux.git] / Documentation / devicetree / bindings / phy / sun4i-usb-phy.txt
1 Allwinner sun4i USB PHY
2 -----------------------
3
4 Required properties:
5 - compatible : should be one of
6   * allwinner,sun4i-a10-usb-phy
7   * allwinner,sun5i-a13-usb-phy
8   * allwinner,sun6i-a31-usb-phy
9   * allwinner,sun7i-a20-usb-phy
10   * allwinner,sun8i-a23-usb-phy
11   * allwinner,sun8i-a33-usb-phy
12 - reg : a list of offset + length pairs
13 - reg-names :
14   * "phy_ctrl"
15   * "pmu1"
16   * "pmu2" for sun4i, sun6i or sun7i
17 - #phy-cells : from the generic phy bindings, must be 1
18 - clocks : phandle + clock specifier for the phy clocks
19 - clock-names :
20   * "usb_phy" for sun4i, sun5i or sun7i
21   * "usb0_phy", "usb1_phy" and "usb2_phy" for sun6i
22   * "usb0_phy", "usb1_phy" for sun8i
23 - resets : a list of phandle + reset specifier pairs
24 - reset-names :
25   * "usb0_reset"
26   * "usb1_reset"
27   * "usb2_reset" for sun4i, sun6i or sun7i
28
29 Optional properties:
30 - usb0_id_det-gpios : gpio phandle for reading the otg id pin value
31 - usb0_vbus_det-gpios : gpio phandle for detecting the presence of usb0 vbus
32 - usb0_vbus_power-supply: power-supply phandle for usb0 vbus presence detect
33 - usb0_vbus-supply : regulator phandle for controller usb0 vbus
34 - usb1_vbus-supply : regulator phandle for controller usb1 vbus
35 - usb2_vbus-supply : regulator phandle for controller usb2 vbus
36
37 Example:
38         usbphy: phy@0x01c13400 {
39                 #phy-cells = <1>;
40                 compatible = "allwinner,sun4i-a10-usb-phy";
41                 /* phy base regs, phy1 pmu reg, phy2 pmu reg */
42                 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
43                 reg-names = "phy_ctrl", "pmu1", "pmu2";
44                 clocks = <&usb_clk 8>;
45                 clock-names = "usb_phy";
46                 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
47                 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
48                 pinctrl-names = "default";
49                 pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
50                 usb0_id_det-gpios = <&pio 7 19 GPIO_ACTIVE_HIGH>; /* PH19 */
51                 usb0_vbus_det-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */
52                 usb0_vbus-supply = <&reg_usb0_vbus>;
53                 usb1_vbus-supply = <&reg_usb1_vbus>;
54                 usb2_vbus-supply = <&reg_usb2_vbus>;
55         };