[openwrt/openwrt] mediatek: update status led for Cudy TR3000
LEDE Commits
lede-commits at lists.infradead.org
Fri Jan 24 13:45:02 PST 2025
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/95dffe39f8df7cc3685d8779426e666d5cc6e3d1
commit 95dffe39f8df7cc3685d8779426e666d5cc6e3d1
Author: Chukun Pan <amadeus at jmu.edu.cn>
AuthorDate: Wed Dec 4 23:26:28 2024 +0800
mediatek: update status led for Cudy TR3000
Use white led when running, consistent with the stock firmware.
Signed-off-by: Chukun Pan <amadeus at jmu.edu.cn>
(cherry picked from commit 87632219d4b8f0c96ea053e375f6f324fab0806f)
---
target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts
index 2591de8520..ff3c83a12d 100644
--- a/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts
+++ b/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts
@@ -12,10 +12,10 @@
aliases {
label-mac-device = &gmac1;
- led-boot = &led_status;
- led-failsafe = &led_status;
- led-running = &led_status;
- led-upgrade = &led_status;
+ led-boot = &led_sys_red;
+ led-failsafe = &led_sys_red;
+ led-running = &led_sys_white;
+ led-upgrade = &led_sys_white;
serial0 = &uart0;
};
@@ -34,8 +34,8 @@
mode {
label = "mode";
- linux,input-type = <EV_SW>;
linux,code = <BTN_0>;
+ linux,input-type = <EV_SW>;
gpios = <&pio 0 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
@@ -44,18 +44,17 @@
leds {
compatible = "gpio-leds";
- led_status: led_0 {
+ led_sys_red: led-0 {
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pio 11 GPIO_ACTIVE_LOW>;
};
- led_1 {
+ led_sys_white: led-1 {
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_WHITE>;
gpios = <&pio 10 GPIO_ACTIVE_LOW>;
};
-
};
usb_vbus: regulator-usb {
More information about the lede-commits
mailing list