From: Pawel Dembicki Date: Thu, 22 Aug 2024 12:49:31 +0000 (+0200) Subject: mpc85xx: Add QCA8327 LED nodes to tl-wdr4900-v1 dts X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cf765b1be685d316ac6ad914008ca4c166d13a6a;p=openwrt%2Fstaging%2Fxback.git mpc85xx: Add QCA8327 LED nodes to tl-wdr4900-v1 dts This commit introduces led nodes in tl-wdr4900-v1 dts. It allows to configure switch leds from userspace. Signed-off-by: Pawel Dembicki Link: https://github.com/openwrt/openwrt/pull/16226 Signed-off-by: Robert Marko --- diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts index b55fd2e7e7..4fd9767d2d 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts @@ -185,30 +185,90 @@ nvmem-cells = <&macaddr_uboot_4fc00 1>; nvmem-cell-names = "mac-address"; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_WAN; + default-state = "keep"; + }; + }; }; port@2 { reg = <2>; label = "lan1"; phy-handle = <&phy_port2>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; }; port@3 { reg = <3>; label = "lan2"; phy-handle = <&phy_port3>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; }; port@4 { reg = <4>; label = "lan3"; phy-handle = <&phy_port4>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; }; port@5 { reg = <5>; label = "lan4"; phy-handle = <&phy_port5>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + default-state = "keep"; + }; + }; }; }; };