]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dtsi: sunxi: add common VBUS regulator
authorRoman Byshko <rbyshko@gmail.com>
Mon, 10 Nov 2014 18:55:07 +0000 (19:55 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 23 Nov 2014 15:53:39 +0000 (16:53 +0100)
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>
arch/arm/boot/dts/sunxi-common-regulators.dtsi

index fa69adfea7fc74c842ff205a59acae6f47e90ce5..be5cfa335ae4e2b0a9c299e2c06d1ab43ea8bce8 100644 (file)
                                allwinner,pull = <0>;
                        };
 
+                       usb0_vbus_pin_a: usb0_vbus_pin@0 {
+                               allwinner,pins = "PB9";
+                               allwinner,function = "gpio_out";
+                               allwinner,drive = <0>;
+                               allwinner,pull = <0>;
+                       };
+
                        usb1_vbus_pin_a: usb1_vbus_pin@0 {
                                allwinner,pins = "PH6";
                                allwinner,function = "gpio_out";
                status = "disabled";
        };
 
+       reg_usb0_vbus: usb0-vbus {
+               compatible = "regulator-fixed";
+               pinctrl-names = "default";
+               pinctrl-0 = <&usb0_vbus_pin_a>;
+               regulator-name = "usb0-vbus";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               enable-active-high;
+               gpio = <&pio 1 9 0>;
+               status = "disabled";
+       };
+
        reg_usb1_vbus: usb1-vbus {
                compatible = "regulator-fixed";
                pinctrl-names = "default";