public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: renesas: r9a06g032-rzn1d400-eb: correct LAN LED nodes
@ 2025-04-11  9:54 Wolfram Sang
  2025-04-11 10:15 ` Geert Uytterhoeven
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfram Sang @ 2025-04-11  9:54 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Thomas Bonnefille, Wolfram Sang, Geert Uytterhoeven, Magnus Damm,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree

This board only connects two LEDs instead of three. Also, give them
descriptions to avoid namespace collusions.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 .../dts/renesas/r9a06g032-rzn1d400-eb.dts     | 23 ++++++++++++-------
 1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts
index ee875902a75c..068563d6047b 100644
--- a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts
+++ b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts
@@ -6,6 +6,7 @@
  *
  */
 
+#include <dt-bindings/leds/common.h>
 #include "r9a06g032-rzn1d400-db.dts"
 
 / {
@@ -102,15 +103,18 @@ switch0phy1: ethernet-phy@1 {
 			leds {
 				#address-cells = <1>;
 				#size-cells = <0>;
-
 				led@0 {
 					reg = <0>;
+					color = <LED_COLOR_ID_GREEN>;
+					function = LED_FUNCTION_LAN;
+					default-state = "keep";
 				};
+
 				led@1 {
 					reg = <1>;
-				};
-				led@2 {
-					reg = <2>;
+					color = <LED_COLOR_ID_RED>;
+					function = LED_FUNCTION_ACTIVITY;
+					default-state = "keep";
 				};
 			};
 		};
@@ -120,15 +124,18 @@ switch0phy10: ethernet-phy@10 {
 			leds {
 				#address-cells = <1>;
 				#size-cells = <0>;
-
 				led@0 {
 					reg = <0>;
+					color = <LED_COLOR_ID_GREEN>;
+					function = LED_FUNCTION_LAN;
+					default-state = "keep";
 				};
+
 				led@1 {
 					reg = <1>;
-				};
-				led@2 {
-					reg = <2>;
+					color = <LED_COLOR_ID_RED>;
+					function = LED_FUNCTION_ACTIVITY;
+					default-state = "keep";
 				};
 			};
 		};
-- 
2.47.2


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

end of thread, other threads:[~2025-04-11 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-11  9:54 [PATCH] ARM: dts: renesas: r9a06g032-rzn1d400-eb: correct LAN LED nodes Wolfram Sang
2025-04-11 10:15 ` Geert Uytterhoeven
2025-04-11 10:35   ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox