]> Gentwo Git Trees - linux/.git/commitdiff
ARM: dts: sun7i: lamobo-r1: Fix USB-based WiFi module power
authorChen-Yu Tsai <wens@csie.org>
Wed, 6 Jul 2016 09:10:42 +0000 (17:10 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 9 Jul 2016 08:09:59 +0000 (10:09 +0200)
On the Lamobo R1, USB2 is connected to the RTL8192CU WiFi module.
The power enable pin is connected to PH12.

Fix the enable pin the reg_usb2_vbus.

Also disable ohci1, as the WiFi module is USB 2.0 capable.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts

index fbca93406e1bb519117a81283b364f711d4a8cf2..285142882a80f74453967600310f293de3b7ec1b 100644 (file)
@@ -212,10 +212,6 @@ &ohci0 {
        status = "okay";
 };
 
-&ohci1 {
-       status = "okay";
-};
-
 &otg_sram {
        status = "okay";
 };
@@ -291,6 +287,7 @@ &reg_usb1_vbus {
 };
 
 &reg_usb2_vbus {
+       gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; /* PH12 */
        status = "okay";
 };
 
@@ -329,6 +326,10 @@ &usb_power_supply {
        status = "okay";
 };
 
+&usb2_vbus_pin_a {
+       allwinner,pins = "PH12";
+};
+
 &usbphy {
        pinctrl-names = "default";
        pinctrl-0 = <&usb0_id_detect_pin>;