[openwrt/openwrt] mediatek: convert LED color/function format for Xiaomi Redmi AX6000
LEDE Commits
lede-commits at lists.infradead.org
Thu Mar 7 23:29:02 PST 2024
981213 pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/1493e8f8cbe2d410227e77f761f5d0123a9117d4
commit 1493e8f8cbe2d410227e77f761f5d0123a9117d4
Author: Furong Xu <xfr at outlook.com>
AuthorDate: Mon Mar 4 20:54:44 2024 +0800
mediatek: convert LED color/function format for Xiaomi Redmi AX6000
Commit 2d63d42f5e2f ("mediatek: convert to new LED color/function
format where possible") leaves Xiaomi Redmi AX6000 un-converted,
the two LEDs become dead.
Now, LEDs are alive again.
Fixes: 2d63d42f5e2f ("mediatek: convert to new LED color/function
format where possible")
Signed-off-by: Furong Xu <xfr at outlook.com>
---
target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi b/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi
index 30571965bc..4d58fbd2cf 100644
--- a/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi
+++ b/target/linux/mediatek/dts/mt7986a-xiaomi-redmi-router-ax6000.dtsi
@@ -2,6 +2,7 @@
/dts-v1/;
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
@@ -202,11 +203,18 @@
led_status_rgb: led at 0 {
reg = <0>;
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RGB>;
color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
};
led_network_rgb: led at 1 {
reg = <1>;
+
+ /* Hardcoding here for backward compatibility */
+ function = "network";
+
+ color = <LED_COLOR_ID_RGB>;
color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
};
};
More information about the lede-commits
mailing list