ARM: BCM5301X: Set vcc-gpio for USB controllers of few devices
PATCH 1/1 ARM: BCM5301X: Set vcc-gpio for USB controllers of few devices
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 <[email protected]>
--- arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 8 ++++++++ arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 15 ++++----------- arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts | 5 +++++ arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 8 ++++++++ arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 4 ++++ arch/arm/boot/dts/bcm5301x.dtsi | 14 ++++++++++++++ 6 files changed, 43 insertions(+), 11 deletions(-)
arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts +8 -0
@@ -139,3 +139,11 @@ &uart0 { status = "okay"; }; + +&usb2 { + vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>; +}; + +&usb3 { + vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_LOW>; +};
arch/arm/boot/dts/bcm4708-netgear-r6250.dts +4 -11
@@ -24,17 +24,6 @@ reg = <0x00000000 0x08000000>; }; - axi at 18000000 { - usb3 at 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>; +};
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts +5 -0
@@ -126,3 +126,8 @@ }; }; }; + + +&usb2 { + vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>; +};
arch/arm/boot/dts/bcm4709-netgear-r8000.dts +8 -0
@@ -106,3 +106,11 @@ }; }; }; + +&usb2 { + vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>; +}; + +&usb3 { + vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>; +};
arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts +4 -0
@@ -109,3 +109,7 @@ status = "okay"; clock-frequency = <125000000>; }; + +&usb3 { + vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>; +};
arch/arm/boot/dts/bcm5301x.dtsi +14 -0
@@ -207,6 +207,20 @@ gpio-controller; #gpio-cells = <2>; }; + + usb2: usb2 at 21000 { + reg = <0x00021000 0x1000>; + + #address-cells = <1>; + #size-cells = <1>; + }; + + usb3: usb3 at 23000 { + reg = <0x00023000 0x1000>; + + #address-cells = <1>; + #size-cells = <1>; + }; }; lcpll0: lcpll0 at 1800c100 {
Signature · 1 line
1.8.4.5
Florian Fainelli
AppliedPATCH 1/1 ARM: BCM5301X: Set vcc-gpio for USB controllers of few devices
Quoted 5 lines · Rafa? Mi?ecki
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 <[email protected]>
Applied to devicetree/next, thanks!
Signature · 1 line
Florian