diff options
author | Roman Byshko <rbyshko@gmail.com> | 2014-11-10 13:55:07 -0500 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2014-11-23 10:53:39 -0500 |
commit | e572844b82030176213407d38bdd57307a106798 (patch) | |
tree | 16476777b9ec4e385ad2336bcf4e0a1dde0ae364 | |
parent | 9ce42e46b11ef8deb05a90343214b3cb17d296bf (diff) |
ARM: dtsi: sunxi: add common VBUS regulator
Until now the regulator nodes for powering USB VBUS
existed only for the two host controllers. Now the regulator
is added for USB OTG too.
Signed-off-by: Roman Byshko <rbyshko@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r-- | arch/arm/boot/dts/sunxi-common-regulators.dtsi | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sunxi-common-regulators.dtsi b/arch/arm/boot/dts/sunxi-common-regulators.dtsi index fa69adfea7fc..be5cfa335ae4 100644 --- a/arch/arm/boot/dts/sunxi-common-regulators.dtsi +++ b/arch/arm/boot/dts/sunxi-common-regulators.dtsi | |||
@@ -57,6 +57,13 @@ | |||
57 | allwinner,pull = <0>; | 57 | allwinner,pull = <0>; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | usb0_vbus_pin_a: usb0_vbus_pin@0 { | ||
61 | allwinner,pins = "PB9"; | ||
62 | allwinner,function = "gpio_out"; | ||
63 | allwinner,drive = <0>; | ||
64 | allwinner,pull = <0>; | ||
65 | }; | ||
66 | |||
60 | usb1_vbus_pin_a: usb1_vbus_pin@0 { | 67 | usb1_vbus_pin_a: usb1_vbus_pin@0 { |
61 | allwinner,pins = "PH6"; | 68 | allwinner,pins = "PH6"; |
62 | allwinner,function = "gpio_out"; | 69 | allwinner,function = "gpio_out"; |
@@ -85,6 +92,18 @@ | |||
85 | status = "disabled"; | 92 | status = "disabled"; |
86 | }; | 93 | }; |
87 | 94 | ||
95 | reg_usb0_vbus: usb0-vbus { | ||
96 | compatible = "regulator-fixed"; | ||
97 | pinctrl-names = "default"; | ||
98 | pinctrl-0 = <&usb0_vbus_pin_a>; | ||
99 | regulator-name = "usb0-vbus"; | ||
100 | regulator-min-microvolt = <5000000>; | ||
101 | regulator-max-microvolt = <5000000>; | ||
102 | enable-active-high; | ||
103 | gpio = <&pio 1 9 0>; | ||
104 | status = "disabled"; | ||
105 | }; | ||
106 | |||
88 | reg_usb1_vbus: usb1-vbus { | 107 | reg_usb1_vbus: usb1-vbus { |
89 | compatible = "regulator-fixed"; | 108 | compatible = "regulator-fixed"; |
90 | pinctrl-names = "default"; | 109 | pinctrl-names = "default"; |