]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: sun7i: Cubietruck: override regulator pin
authorRoman Byshko <rbyshko@gmail.com>
Mon, 10 Nov 2014 18:55:09 +0000 (19:55 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 23 Nov 2014 15:53:40 +0000 (16:53 +0100)
Cubietruck uses different pin for the USB OTG VBUS that
is why we override the one defined in sunxi-common-regulators.dtsi

Signed-off-by: Roman Byshko <rbyshko@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun7i-a20-cubietruck.dts

index a6c1a3c717bcaf94d2115f9e147059da01c7a984..16823078bf286ae0aa16b1b1ceece559fbd06b10 100644 (file)
                                allwinner,drive = <0>;
                                allwinner,pull = <0>;
                        };
+
+                       usb0_vbus_pin_a: usb0_vbus_pin@0 {
+                               allwinner,pins = "PH17";
+                               allwinner,function = "gpio_out";
+                               allwinner,drive = <0>;
+                               allwinner,pull = <0>;
+                       };
                };
 
                pwm: pwm@01c20e00 {
                status = "okay";
        };
 
+       reg_usb0_vbus: usb0-vbus {
+               pinctrl-0 = <&usb0_vbus_pin_a>;
+               gpio = <&pio 7 17 0>;
+               status = "okay";
+       };
+
        reg_usb1_vbus: usb1-vbus {
                status = "okay";
        };