All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: BCM5301X: Add USB GPIO and missing LEDs on Netgear R6300v2
@ 2021-12-11  8:53 ` Lisa Hill
  0 siblings, 0 replies; 11+ messages in thread
From: Lisa Hill @ 2021-12-11  8:53 UTC (permalink / raw)
  To: Rafał Miłecki, Florian Fainelli, Hauke Mehrtens
  Cc: Rafał Miłecki, Rob Herring, linux-arm-kernel,
	devicetree, bcm-kernel-feedback-list

Set GPIO controlling power for both USB ports properly, add missing WAN LEDs and specify USB ports for the USB LED on Netgear R6300v2.

Signed-off-by: Lisa Hill <f11o1iomh3dmt141n@icloud.com>
---
 .../arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 26 ++++++++++++++++---
 1 file changed, 23 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..46e77973b12df0 100644
--- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
+++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
@@ -34,20 +34,32 @@
 			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>;
+		};
+
+		wan-amber {
+			label = "bcm53xx:amber:wan";
+			gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
 		};
 
 		wireless {
@@ -79,6 +91,14 @@
 	};
 };
 
+&usb2 {
+	vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
+};
+
+&usb3 {
+	vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
+};
+
 &spi_nor {
 	status = "okay";
 };


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [PATCH] ARM: dts: BCM5301X: Add USB GPIO and missing LEDs on Netgear  R6300v2
@ 2021-12-10  6:53 ` Lisa Hill
  0 siblings, 0 replies; 11+ messages in thread
From: Lisa Hill @ 2021-12-10  6:53 UTC (permalink / raw)
  To: Rafał Miłecki, Florian Fainelli, Hauke Mehrtens
  Cc: Rafał Miłecki, Rob Herring, linux-arm-kernel,
	devicetree, bcm-kernel-feedback-list

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@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";
 };


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-12-16 21:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-11  8:53 [PATCH] ARM: dts: BCM5301X: Add USB GPIO and missing LEDs on Netgear R6300v2 Lisa Hill
2021-12-11  8:53 ` Lisa Hill
2021-12-16 21:56 ` kernel test robot
2021-12-16 21:56   ` kernel test robot
2021-12-16 21:56   ` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-12-10  6:53 Lisa Hill
2021-12-10  6:53 ` Lisa Hill
2021-12-10  7:39 ` Rafał Miłecki
2021-12-10  7:39   ` Rafał Miłecki
     [not found]   ` <C624909D-1513-4256-BCC1-50C7B43402CC@icloud.com>
2021-12-10  9:31     ` Rafał Miłecki
2021-12-10  9:31       ` Rafał Miłecki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.