sunxi: fixes led for nanopi boards
authorChukun Pan <amadeus@jmu.edu.cn>
Sun, 15 Oct 2023 15:18:27 +0000 (23:18 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 30 Oct 2023 23:44:03 +0000 (00:44 +0100)
Kernel 5.15 already supports the NanoPi R1 and NanoPi R1S H5,
and they use new LED bindings that do not match the existing
settings in 01_leds. Update led settings to fixes that.

List the led node on NanoPi R1S H5:
root@OpenWrt:~# ls /sys/class/leds/
green:lan   green:wan   red:status

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
(cherry picked from commit b25c7548e07ad8775f8511ba8276bf3ecb4409ba)

target/linux/sunxi/base-files/etc/board.d/01_leds

index 60783363dee98adc41a9ee27159a9ccbaf0620f1..da94e403737c8f14ccc7490a6bc6205838976fbb 100644 (file)
@@ -9,8 +9,8 @@ board_config_update
 case $board in
 friendlyarm,nanopi-r1|\
 friendlyarm,nanopi-r1s-h5)
-       ucidef_set_led_netdev "wan" "WAN" "nanopi:green:wan" "eth0"
-       ucidef_set_led_netdev "lan" "LAN" "nanopi:green:lan" "eth1"
+       ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
+       ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
        ;;
 esac