]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: lx2162a-clearfog: specify sfp ports led colour and function
authorJosua Mayer <josua@solid-run.com>
Sun, 24 May 2026 14:54:43 +0000 (16:54 +0200)
committerFrank Li <Frank.Li@nxp.com>
Fri, 5 Jun 2026 17:20:03 +0000 (13:20 -0400)
The LX2162A Clearfog board has a green LED on each of four SFP ports.

Describe in device-tree that their colour is green and function "lan".

Signed-off-by: Josua Mayer <josua@solid-run.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
arch/arm64/boot/dts/freescale/fsl-lx2162a-clearfog.dts

index 6fd85a5cac94e40a6ccd195e31be2611020fa85e..99ee2b1c0f13b527e20c7d7df04b8462289c0679 100644 (file)
@@ -6,6 +6,8 @@
 
 /dts-v1/;
 
+#include <dt-bindings/leds/common.h>
+
 #include "fsl-lx2160a-rev2.dtsi"
 #include "fsl-lx2162a-sr-som.dtsi"
 
@@ -38,6 +40,9 @@
                compatible = "gpio-leds";
 
                led_sfp_at: led-sfp-at {
+                       color = <LED_COLOR_ID_GREEN>;
+                       function = LED_FUNCTION_LAN;
+                       function-enumerator = <1>;
                        gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* PROC_IRQ5 */
                        default-state = "off";
                        linux,default-trigger = "netdev";
@@ -45,6 +50,9 @@
                };
 
                led_sfp_ab: led-sfp-ab {
+                       color = <LED_COLOR_ID_GREEN>;
+                       function = LED_FUNCTION_LAN;
+                       function-enumerator = <2>;
                        gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>; /* PROC_IRQ11 */
                        default-state = "off";
                        linux,default-trigger = "netdev";
@@ -52,6 +60,9 @@
                };
 
                led_sfp_bt: led-sfp-bt {
+                       color = <LED_COLOR_ID_GREEN>;
+                       function = LED_FUNCTION_LAN;
+                       function-enumerator = <3>;
                        gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; /* EVT1_B */
                        default-state = "off";
                        linux,default-trigger = "netdev";
@@ -59,6 +70,9 @@
                };
 
                led_sfp_bb: led-sfp-bb {
+                       color = <LED_COLOR_ID_GREEN>;
+                       function = LED_FUNCTION_LAN;
+                       function-enumerator = <4>;
                        gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; /* EVT2_B */
                        default-state = "off";
                        linux,default-trigger = "netdev";