ARM: BCM5301X: Set GPIO enabling USB power on Netgear R7000
PATCH 1/1 ARM: BCM5301X: Set GPIO enabling USB power on Netgear R7000
There is one GPIO controlling power for both USB ports.
--- arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/boot/dts/bcm4709-netgear-r7000.dts +8 -0
@@ -104,3 +104,11 @@ &uart0 { status = "okay"; }; + +&usb2 { + vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>; +}; + +&usb3 { + vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>; +};
Signature · 1 line
1.8.4.5
Is there any reason you are not handling this properly as a regulator with usb-nop-xceiv?
Imre
Quoted 24 lines · Rafa? Mi?ecki
There is one GPIO controlling power for both USB ports.
Signed-off-by Rafa? Mi?ecki <[email protected]>--- arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 8 ++++++++ 1 file changed, 8 insertions(+)arch/arm/boot/dts/bcm4709-netgear-r7000.dts +8
-0@@ -104,3 +104,11 @@ &uart0 { status = "okay"; }; + +&usb2 { + vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>; +}; + +&usb3 { + vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>; +};
Quoted 2 lines · Imre Kaloz
Is there any reason you are not handling this properly as a regulator with usb-nop-xceiv?
We can't use USB NOP PHY as we need a specific PHY driver for Broadcom's USB.
I sent patch for this:
https://patchwork.kernel.org/patch/9148097/
Quoted 7 lines · Rafa? Mi?ecki
Quoted 3 lines · Imre Kaloz
Is there any reason you are not handling this properly as a regulator with
usb-nop-xceiv?We can't use USB NOP PHY as we need a specific PHY driver for Broadcom's USB.
I see. That shouldn't stop you from addressing the regulator part, tho ;)
Imre
Quoted 9 lines · Imre Kaloz
Quoted 7 lines · Rafa? Mi?ecki
Quoted 4 lines · Imre Kaloz
Is there any reason you are not handling this properly as a regulator with
usb-nop-xceiv?
Quoted 5 lines
Quoted 2 lines
We can't use USB NOP PHY as we need a specific PHY driver for Broadcom's USB.
I see. That shouldn't stop you from addressing the regulator part, tho ;)
How? Be more specific please.
Signature · 1 line
Rafa?
Quoted 16 lines · Rafa? Mi?ecki
Quoted 15 lines · Imre Kaloz
Quoted 10 lines · Rafa? Mi?ecki
Quoted 4 lines · Imre Kaloz
Is there any reason you are not handling this properly as a regulator with
usb-nop-xceiv?We can't use USB NOP PHY as we need a specific PHY driver for Broadcom's
USB.
Quoted 5 lines
Quoted 2 lines
I see. That shouldn't stop you from addressing the regulator part, tho ;)
How? Be more specific please.
Instead of blindly enabling a GPIO, you should define that GPIO line as a fixed regulator and make the USB phy driver handle it. Take a look at
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7776ab70d75ff9857343e44e428744d81c30ce1b
for example.
Imre