]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: lx2162a-clearfog: set sfp connector leds function and source
authorJosua Mayer <josua@solid-run.com>
Tue, 24 Mar 2026 12:41:04 +0000 (13:41 +0100)
committerFrank Li <Frank.Li@nxp.com>
Fri, 27 Mar 2026 13:53:31 +0000 (09:53 -0400)
LX2162A Clearfog has four LEDs attached physically to the 4-port SFP
connector. They are intended to show information relating to network
interface status.

Select "netdev" as default trigger for each LED, and link each one to
the respective dpmac instance as trigger-source.

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 8920326a067351b3ad4705fa26c3867562b3ac71..9d50d3e2761da50afc37545e767c5bb9c53405a6 100644 (file)
                led_sfp_at: led-sfp-at {
                        gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* PROC_IRQ5 */
                        default-state = "off";
+                       linux,default-trigger = "netdev";
+                       trigger-sources = <&dpmac3>;
                };
 
                led_sfp_ab: led-sfp-ab {
                        gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>; /* PROC_IRQ11 */
                        default-state = "off";
+                       linux,default-trigger = "netdev";
+                       trigger-sources = <&dpmac4>;
                };
 
                led_sfp_bt: led-sfp-bt {
                        gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; /* EVT1_B */
                        default-state = "off";
+                       linux,default-trigger = "netdev";
+                       trigger-sources = <&dpmac5>;
                };
 
                led_sfp_bb: led-sfp-bb {
                        gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; /* EVT2_B */
                        default-state = "off";
+                       linux,default-trigger = "netdev";
+                       trigger-sources = <&dpmac6>;
                };
        };