ath79: teltonika-rut230: add 4G LED
authorLech Perczak <lech.perczak@gmail.com>
Sat, 7 Dec 2024 03:27:18 +0000 (04:27 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 12 Jan 2025 20:36:04 +0000 (21:36 +0100)
Teltonika RUT240 has an extra 4G status LED on GPIO21. Otherwise the
hardware is fully compatible with RUT230 line. Attach the LED inside
device tree.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17503
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts

index 73a6cc52ca59cdbd59c00a66c48562fcbae603b4..aa8a2204700a9f1e82b7fcde79c719698e8f9b71 100644 (file)
                        gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
                };
 
+               4g {
+                       label = "green:4g";
+                       gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
+               };
+
                lan {
                        function = LED_FUNCTION_LAN;
                        color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        /* GPIO 14 - ACTIVE HIGH for hwrev 0 */
                };
-
-               /* 4G LED - GPIO21 ACTIVE_HIGH for RUT240 */
        };
 
        reg_usb_vbus: reg_usb_vbus {