ARM: BCM5301X: Set vcc-gpio for USB controllers of few devices
authorRafał Miłecki <zajec5@gmail.com>
Wed, 23 Mar 2016 15:52:47 +0000 (16:52 +0100)
committerFlorian Fainelli <f.fainelli@gmail.com>
Wed, 13 Apr 2016 16:18:01 +0000 (09:18 -0700)
There are few devices that have USB power controlled using GPIO. Linux
USB host driver (bcma-hcd) already supports this by reading vcc-gpio
from DT. Set it properly for all known devices.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
arch/arm/boot/dts/bcm4708-netgear-r6250.dts
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
arch/arm/boot/dts/bcm4709-netgear-r8000.dts
arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
arch/arm/boot/dts/bcm5301x.dtsi

index 42dcdfb769b2753e94d5e29c9a2aa100b7f591bc..fb62ed6705d4662bac6e8f228b7fc309302d5683 100644 (file)
 &uart0 {
        status = "okay";
 };
+
+&usb2 {
+       vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
+};
+
+&usb3 {
+       vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_LOW>;
+};
index ca92bba6a8c5b2002eb4a63daeaebfb78c2da44a..6bebfa60f45fd6ac78dfb3bdfcce399a1bd5bdfe 100644 (file)
                reg = <0x00000000 0x08000000>;
        };
 
-       axi@18000000 {
-               usb3@23000 {
-                       reg = <0x00023000 0x1000>;
-
-                       #address-cells = <1>;
-                       #size-cells = <1>;
-
-                       vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
-               };
-       };
-
        leds {
                compatible = "gpio-leds";
 
@@ -97,3 +86,7 @@
 &uart0 {
        status = "okay";
 };
+
+&usb3 {
+       vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
+};
index 2a92e8d5ab34d0262e486840513f765921b6bb76..791d7225c733bd1d0c21e7a82e3c206729e54100 100644 (file)
                };
        };
 };
+
+
+&usb2 {
+       vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
+};
index b52927c94e351fd543e76541540170789677be90..ca181516c28acac5a02881a58cb3d315a3c04492 100644 (file)
                };
        };
 };
+
+&usb2 {
+       vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
+};
+
+&usb3 {
+       vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
+};
index 6c83538bc2d77afd98988bba250494bf1b90d0ff..9205c0398cf2822acaf01d4315806ea6bb68c09c 100644 (file)
        status = "okay";
        clock-frequency = <125000000>;
 };
+
+&usb3 {
+       vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
+};
index 65a1309bd6e26f52cd0229ae6cce3ca3801b70cb..b3e9d28ed87b105be2af59b04809b354c188c01c 100644 (file)
                        gpio-controller;
                        #gpio-cells = <2>;
                };
+
+               usb2: usb2@21000 {
+                       reg = <0x00021000 0x1000>;
+
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+               };
+
+               usb3: usb3@23000 {
+                       reg = <0x00023000 0x1000>;
+
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+               };
        };
 
        lcpll0: lcpll0@1800c100 {