From: Tomasz Maciej Nowak Date: Thu, 12 Mar 2026 19:46:00 +0000 (+0100) Subject: ipq40xx: wr-1: wire up switch LEDs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a11b33eb3fa343d9726a8bfc8cb058f964921925;p=thirdparty%2Fopenwrt.git ipq40xx: wr-1: wire up switch LEDs This will allow controlling them from sysfs. Signed-off-by: Tomasz Maciej Nowak --- diff --git a/target/linux/ipq40xx/dts/qcom-ipq4018-wr-1.dts b/target/linux/ipq40xx/dts/qcom-ipq4018-wr-1.dts index b3fb85714e3..6fb90b66273 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"; };