Hans de Goede | ba4bdc9 | 2014-03-01 18:09:26 +0100 | [diff] [blame] | 1 | Allwinner sun4i USB PHY |
| 2 | ----------------------- |
| 3 | |
| 4 | Required properties: |
Maxime Ripard | fecc2d7 | 2014-05-14 14:58:57 +0200 | [diff] [blame] | 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 |
Hans de Goede | 123dfdb | 2015-06-13 14:37:48 +0200 | [diff] [blame] | 10 | * allwinner,sun8i-a23-usb-phy |
Hans de Goede | fc1f45e | 2015-06-13 14:37:49 +0200 | [diff] [blame] | 11 | * allwinner,sun8i-a33-usb-phy |
Reinder de Haan | 626a630 | 2015-12-11 16:32:18 +0100 | [diff] [blame] | 12 | * allwinner,sun8i-h3-usb-phy |
Icenowy Zheng | 16c4036 | 2017-01-03 23:25:31 +0800 | [diff] [blame] | 13 | * allwinner,sun8i-v3s-usb-phy |
Icenowy Zheng | 732e35d | 2016-08-12 11:06:20 +0800 | [diff] [blame] | 14 | * allwinner,sun50i-a64-usb-phy |
Hans de Goede | ba4bdc9 | 2014-03-01 18:09:26 +0100 | [diff] [blame] | 15 | - reg : a list of offset + length pairs |
Maxime Ripard | fecc2d7 | 2014-05-14 14:58:57 +0200 | [diff] [blame] | 16 | - reg-names : |
| 17 | * "phy_ctrl" |
Icenowy Zheng | a0b1910 | 2017-03-25 22:50:08 +0800 | [diff] [blame^] | 18 | * "pmu0" for H3, V3s and A64 |
Maxime Ripard | fecc2d7 | 2014-05-14 14:58:57 +0200 | [diff] [blame] | 19 | * "pmu1" |
| 20 | * "pmu2" for sun4i, sun6i or sun7i |
Hans de Goede | ba4bdc9 | 2014-03-01 18:09:26 +0100 | [diff] [blame] | 21 | - #phy-cells : from the generic phy bindings, must be 1 |
Maxime Ripard | fecc2d7 | 2014-05-14 14:58:57 +0200 | [diff] [blame] | 22 | - clocks : phandle + clock specifier for the phy clocks |
| 23 | - clock-names : |
| 24 | * "usb_phy" for sun4i, sun5i or sun7i |
| 25 | * "usb0_phy", "usb1_phy" and "usb2_phy" for sun6i |
Hans de Goede | 123dfdb | 2015-06-13 14:37:48 +0200 | [diff] [blame] | 26 | * "usb0_phy", "usb1_phy" for sun8i |
Hans de Goede | ba4bdc9 | 2014-03-01 18:09:26 +0100 | [diff] [blame] | 27 | - resets : a list of phandle + reset specifier pairs |
Maxime Ripard | fecc2d7 | 2014-05-14 14:58:57 +0200 | [diff] [blame] | 28 | - reset-names : |
| 29 | * "usb0_reset" |
| 30 | * "usb1_reset" |
| 31 | * "usb2_reset" for sun4i, sun6i or sun7i |
Hans de Goede | ba4bdc9 | 2014-03-01 18:09:26 +0100 | [diff] [blame] | 32 | |
Hans de Goede | d233230 | 2015-06-13 14:37:45 +0200 | [diff] [blame] | 33 | Optional properties: |
| 34 | - usb0_id_det-gpios : gpio phandle for reading the otg id pin value |
| 35 | - usb0_vbus_det-gpios : gpio phandle for detecting the presence of usb0 vbus |
Hans de Goede | 8665c18 | 2015-06-13 14:37:51 +0200 | [diff] [blame] | 36 | - usb0_vbus_power-supply: power-supply phandle for usb0 vbus presence detect |
Hans de Goede | d233230 | 2015-06-13 14:37:45 +0200 | [diff] [blame] | 37 | - usb0_vbus-supply : regulator phandle for controller usb0 vbus |
| 38 | - usb1_vbus-supply : regulator phandle for controller usb1 vbus |
| 39 | - usb2_vbus-supply : regulator phandle for controller usb2 vbus |
| 40 | |
Hans de Goede | ba4bdc9 | 2014-03-01 18:09:26 +0100 | [diff] [blame] | 41 | Example: |
| 42 | usbphy: phy@0x01c13400 { |
| 43 | #phy-cells = <1>; |
| 44 | compatible = "allwinner,sun4i-a10-usb-phy"; |
| 45 | /* phy base regs, phy1 pmu reg, phy2 pmu reg */ |
| 46 | reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>; |
| 47 | reg-names = "phy_ctrl", "pmu1", "pmu2"; |
| 48 | clocks = <&usb_clk 8>; |
| 49 | clock-names = "usb_phy"; |
Hans de Goede | d233230 | 2015-06-13 14:37:45 +0200 | [diff] [blame] | 50 | resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>; |
| 51 | reset-names = "usb0_reset", "usb1_reset", "usb2_reset"; |
| 52 | pinctrl-names = "default"; |
| 53 | pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>; |
| 54 | usb0_id_det-gpios = <&pio 7 19 GPIO_ACTIVE_HIGH>; /* PH19 */ |
| 55 | usb0_vbus_det-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */ |
| 56 | usb0_vbus-supply = <®_usb0_vbus>; |
| 57 | usb1_vbus-supply = <®_usb1_vbus>; |
| 58 | usb2_vbus-supply = <®_usb2_vbus>; |
Hans de Goede | ba4bdc9 | 2014-03-01 18:09:26 +0100 | [diff] [blame] | 59 | }; |