]>
Commit | Line | Data |
---|---|---|
ba4bdc9e HG |
1 | Allwinner sun4i USB PHY |
2 | ----------------------- | |
3 | ||
4 | Required properties: | |
fecc2d78 MR |
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 | |
123dfdbc | 10 | * allwinner,sun8i-a23-usb-phy |
fc1f45ed | 11 | * allwinner,sun8i-a33-usb-phy |
1af55646 | 12 | * allwinner,sun8i-a83t-usb-phy |
626a630e | 13 | * allwinner,sun8i-h3-usb-phy |
16c40361 | 14 | * allwinner,sun8i-v3s-usb-phy |
732e35da | 15 | * allwinner,sun50i-a64-usb-phy |
ba4bdc9e | 16 | - reg : a list of offset + length pairs |
fecc2d78 MR |
17 | - reg-names : |
18 | * "phy_ctrl" | |
a0b1910e | 19 | * "pmu0" for H3, V3s and A64 |
fecc2d78 | 20 | * "pmu1" |
1af55646 | 21 | * "pmu2" for sun4i, sun6i, sun7i, sun8i-a83t or sun8i-h3 |
7a1de063 | 22 | * "pmu3" for sun8i-h3 |
ba4bdc9e | 23 | - #phy-cells : from the generic phy bindings, must be 1 |
fecc2d78 MR |
24 | - clocks : phandle + clock specifier for the phy clocks |
25 | - clock-names : | |
26 | * "usb_phy" for sun4i, sun5i or sun7i | |
27 | * "usb0_phy", "usb1_phy" and "usb2_phy" for sun6i | |
123dfdbc | 28 | * "usb0_phy", "usb1_phy" for sun8i |
1af55646 | 29 | * "usb0_phy", "usb1_phy", "usb2_phy" and "usb2_hsic_12M" for sun8i-a83t |
7a1de063 | 30 | * "usb0_phy", "usb1_phy", "usb2_phy" and "usb3_phy" for sun8i-h3 |
ba4bdc9e | 31 | - resets : a list of phandle + reset specifier pairs |
fecc2d78 MR |
32 | - reset-names : |
33 | * "usb0_reset" | |
34 | * "usb1_reset" | |
1af55646 | 35 | * "usb2_reset" for sun4i, sun6i, sun7i, sun8i-a83t or sun8i-h3 |
7a1de063 | 36 | * "usb3_reset" for sun8i-h3 |
ba4bdc9e | 37 | |
d2332303 HG |
38 | Optional properties: |
39 | - usb0_id_det-gpios : gpio phandle for reading the otg id pin value | |
40 | - usb0_vbus_det-gpios : gpio phandle for detecting the presence of usb0 vbus | |
8665c18b | 41 | - usb0_vbus_power-supply: power-supply phandle for usb0 vbus presence detect |
d2332303 HG |
42 | - usb0_vbus-supply : regulator phandle for controller usb0 vbus |
43 | - usb1_vbus-supply : regulator phandle for controller usb1 vbus | |
44 | - usb2_vbus-supply : regulator phandle for controller usb2 vbus | |
7a1de063 | 45 | - usb3_vbus-supply : regulator phandle for controller usb3 vbus |
d2332303 | 46 | |
ba4bdc9e | 47 | Example: |
4c9847b7 | 48 | usbphy: phy@01c13400 { |
ba4bdc9e HG |
49 | #phy-cells = <1>; |
50 | compatible = "allwinner,sun4i-a10-usb-phy"; | |
51 | /* phy base regs, phy1 pmu reg, phy2 pmu reg */ | |
52 | reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>; | |
53 | reg-names = "phy_ctrl", "pmu1", "pmu2"; | |
54 | clocks = <&usb_clk 8>; | |
55 | clock-names = "usb_phy"; | |
d2332303 HG |
56 | resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>; |
57 | reset-names = "usb0_reset", "usb1_reset", "usb2_reset"; | |
58 | pinctrl-names = "default"; | |
59 | pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>; | |
60 | usb0_id_det-gpios = <&pio 7 19 GPIO_ACTIVE_HIGH>; /* PH19 */ | |
61 | usb0_vbus_det-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */ | |
62 | usb0_vbus-supply = <®_usb0_vbus>; | |
63 | usb1_vbus-supply = <®_usb1_vbus>; | |
64 | usb2_vbus-supply = <®_usb2_vbus>; | |
ba4bdc9e | 65 | }; |