Skip to content

Commit a43212e

Browse files
Josua-SRnxpfrankli
authored andcommitted
arm64: dts: lx2162a-clearfog: set sfp connector leds function and source
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>
1 parent fcf67ca commit a43212e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

arch/arm64/boot/dts/freescale/fsl-lx2162a-clearfog.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,29 @@
4141
led_sfp_at: led-sfp-at {
4242
gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* PROC_IRQ5 */
4343
default-state = "off";
44+
linux,default-trigger = "netdev";
45+
trigger-sources = <&dpmac3>;
4446
};
4547

4648
led_sfp_ab: led-sfp-ab {
4749
gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>; /* PROC_IRQ11 */
4850
default-state = "off";
51+
linux,default-trigger = "netdev";
52+
trigger-sources = <&dpmac4>;
4953
};
5054

5155
led_sfp_bt: led-sfp-bt {
5256
gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; /* EVT1_B */
5357
default-state = "off";
58+
linux,default-trigger = "netdev";
59+
trigger-sources = <&dpmac5>;
5460
};
5561

5662
led_sfp_bb: led-sfp-bb {
5763
gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; /* EVT2_B */
5864
default-state = "off";
65+
linux,default-trigger = "netdev";
66+
trigger-sources = <&dpmac6>;
5967
};
6068
};
6169

0 commit comments

Comments
 (0)