[PATCH] ARM: dts: BCM5301X: Add USB GPIO and missing LEDs on Netgear R6300v2

Lisa Hill f11o1iomh3dmt141n at icloud.com
Thu Dec 9 22:53:24 PST 2021


Set GPIO controlling power for both USB ports properly and add two WAN LEDs and a USB LED missing for the Netgear R6300v2.

Signed-off-by: Lisa Hill <f11o1iomh3dmt141n at icloud.com>
---
 .../arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 27 ++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
index 4c60eda296d973..5810c95ab239ae 100644
--- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
+++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
@@ -34,20 +34,33 @@
 			linux,default-trigger = "default-on";
 		};
 
-		power0 {
+		power-green {
 			label = "bcm53xx:green:power";
 			gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
+			linux,default-trigger = "default-on";
 		};
 
-		power1 {
+		power-amber {
 			label = "bcm53xx:amber:power";
 			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
-			linux,default-trigger = "default-on";
 		};
 
 		usb {
 			label = "bcm53xx:blue:usb";
 			gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
+			trigger-sources = <&ohci_port1>, <&ehci_port1>, <&xhci_port1>;
+			linux,default-trigger = "usbport";
+		};
+		
+		wan-green {
+			label = "bcm53xx:green:wan";
+			gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
+			linux,default-trigger = "default-on";
+		};
+		
+		wan-amber {
+			label = "bcm53xx:amber:wan";
+			gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
 		};
 
 		wireless {
@@ -79,6 +92,14 @@
 	};
 };
 
+&usb2 {
+	vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
+};
+
+&usb3 {
+	vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
+};
+
 &spi_nor {
 	status = "okay";
 };




More information about the linux-arm-kernel mailing list