Skip to content

Commit

Permalink
mediatek: update status led for Cudy TR3000
Browse files Browse the repository at this point in the history
Use white led when running, consistent with the stock firmware.

Signed-off-by: Chukun Pan <[email protected]>
  • Loading branch information
aiamadeus committed Jan 23, 2025
1 parent 82b69df commit 8763221
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand All @@ -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>;
};
Expand All @@ -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 {
Expand Down

0 comments on commit 8763221

Please sign in to comment.