]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
lantiq: Improve support for LED's fritz736x 18038/head
authorRobert Senderek <robert.senderek@10g.pl>
Wed, 19 Feb 2025 22:24:11 +0000 (23:24 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 22 Apr 2025 19:56:43 +0000 (21:56 +0200)
add support for fon / internet LED
solves: https://github.com/openwrt/openwrt/issues/17787
This LED is marked Internet or Fon depend on version

Tested on fritz7362sl

Signed-off-by: Robert Senderek <robert.senderek@10g.pl>
Link: https://github.com/openwrt/openwrt/pull/18038
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi

index cc0c97da89c01fce875b36e8cf3ddb9a36f6fbff..95340c1983b0644344da58045f9cf3d45e0f0566 100644 (file)
                        default-state = "keep";
                };
 
+               fon {
+                       function = "fon"
+                       color = <LED_COLOR_ID_GREEN>;
+                       gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
+               };
+               
                led_power_red: power_red {
                        function = LED_FUNCTION_POWER;
                        color = <LED_COLOR_ID_RED>;
@@ -62,7 +68,8 @@
                };
 
                led_info_green: info_green {
-                       label = "green:info";
+                       function = "info"
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                info_red {
-                       label = "red:info";
+                       function = "info"
+                       color = <LED_COLOR_ID_RED
                        gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
                };
 
                dect {
-                       label = "green:dect";
+                       function = "dect"
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
                };
        };