From a11b33eb3fa343d9726a8bfc8cb058f964921925 Mon Sep 17 00:00:00 2001 From: Tomasz Maciej Nowak Date: Thu, 12 Mar 2026 20:46:00 +0100 Subject: [PATCH] ipq40xx: wr-1: wire up switch LEDs This will allow controlling them from sysfs. Signed-off-by: Tomasz Maciej Nowak --- .../linux/ipq40xx/dts/qcom-ipq4018-wr-1.dts | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/target/linux/ipq40xx/dts/qcom-ipq4018-wr-1.dts b/target/linux/ipq40xx/dts/qcom-ipq4018-wr-1.dts index b3fb85714e..6fb90b6627 100644 --- a/target/linux/ipq40xx/dts/qcom-ipq4018-wr-1.dts +++ b/target/linux/ipq40xx/dts/qcom-ipq4018-wr-1.dts @@ -176,6 +176,80 @@ status = "okay"; }; +ðphy0 { + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <4>; + default-state = "keep"; + }; + }; +}; + +ðphy1 { + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <3>; + default-state = "keep"; + }; + }; +}; + +ðphy2 { + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <2>; + default-state = "keep"; + }; + }; +}; + +ðphy3 { + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; + default-state = "keep"; + }; + }; +}; + +ðphy4 { + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_WAN; + default-state = "keep"; + }; + }; +}; + &gmac { status = "okay"; };