mediatek: adjust LED behaviour on Redmi AX6000

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit bcf91ea360)
This commit is contained in:
Tianling Shen
2023-08-18 10:34:46 +08:00
parent d7a782e09d
commit 909e420237
3 changed files with 4 additions and 1 deletions

View File

@@ -201,12 +201,14 @@
reg = <0>;
label = "rgb:status";
color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
color-intensity = <0 255 0>; /* GREEN */
};
led_network_rgb: led@1 {
reg = <1>;
label = "rgb:network";
color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
color-intensity = <0 0 255>; /* BLUE */
};
};
};

View File

@@ -39,7 +39,7 @@ xiaomi,mi-router-wr30u-ubootmod)
xiaomi,redmi-router-ax6000|\
xiaomi,redmi-router-ax6000-stock|\
xiaomi,redmi-router-ax6000-ubootmod)
ucidef_set_led_netdev "wan" "wan" "rgb:network" "wan"
ucidef_set_led_netdev "wan" "wan" "rgb:network" "wan" "link"
;;
esac

View File

@@ -572,6 +572,7 @@ define Device/xiaomi_redmi-router-ax6000
BLOCKSIZE := 128k
PAGESIZE := 2048
KERNEL_IN_UBI := 1
IMAGES += factory.bin
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
endef