Skip to contentSkip to conversation

ARM: BCM5301X: Set GPIO enabling USB power on Netgear R7000

PATCH In review Rafał Miłecki 2 participants 6 messages Jun 21, 2016 – Jun 22, 2016 Device tree bindings

lore
Share & tools
lore
#0 lore raw

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
index a22ed14..a76486b 100644
@@ -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
#1 lore raw

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.

---
 arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/boot/dts/bcm4709-netgear-r7000.dts +8 -0
index a22ed14..a76486b 100644
@@ -104,3 +104,11 @@
 &uart0 {
 	status = "okay";
 };
+
+&usb2 {
+	vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
+};
+
+&usb3 {
+	vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
+};
#3 lore raw
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

#4 lore raw
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?
#5 lore raw
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