diff options
author | Furong Xu <xfr@outlook.com> | 2022-12-16 21:21:33 +0800 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2022-12-16 21:42:02 +0800 |
commit | d9e13625810edf7ca8353ec5c23b47fb59606a3d (patch) | |
tree | 021c6a771f04d62e4179e7ed0f439a0c05428858 /target/linux/mediatek/filogic | |
parent | 335c1e7cfdfd477a1106ca05c96ff8949ecd953f (diff) | |
download | upstream-d9e13625810edf7ca8353ec5c23b47fb59606a3d.tar.gz upstream-d9e13625810edf7ca8353ec5c23b47fb59606a3d.tar.bz2 upstream-d9e13625810edf7ca8353ec5c23b47fb59606a3d.zip |
mediatek: add LED support for Xiaomi Redmi AX6000
add DT nodes and default package for the LEDs on Redmi AX6000
Signed-off-by: Furong Xu <xfr@outlook.com>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/mediatek/filogic')
-rw-r--r-- | target/linux/mediatek/filogic/base-files/etc/board.d/01_leds | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds new file mode 100644 index 0000000000..f851c7ed54 --- /dev/null +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds @@ -0,0 +1,16 @@ +. /lib/functions/leds.sh +. /lib/functions/uci-defaults.sh + +board=$(board_name) + +board_config_update + +case $board in +xiaomi,redmi-router-ax6000) + ucidef_set_led_netdev "wan" "wan" "rgb:network" "wan" + ;; +esac + +board_config_flush + +exit 0 |