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 a6c1a3c..1682307 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";
        };