Skip to content

Commit

Permalink
ipq806x: rt4230w-rev6: fix status reporting via the LEDs
Browse files Browse the repository at this point in the history
There is a custom LED controller between the 3 SoC GPIO outputs and
the red and blue LEDs of the device. It implements a strange mapping
that includes fixed, flashing, and breathing modes.

The current DTS configuration causes OpenWrt to flash the LEDs over
the controller's own flashing, resulting in chaotic output in boot,
failsafe, and upgrade modes.

This change fixes the LEDs in the best way possible as long as each
OpenWrt running state is limited to be signaled by a single led.

Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
Link: openwrt#15440
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
  • Loading branch information
Lanchon authored and Ansuel committed May 14, 2024
1 parent 5ac8cf1 commit 0868268
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
};

aliases {
led-boot = &ledctrl3;
led-boot = &ledctrl1;
led-failsafe = &ledctrl1;
led-running = &ledctrl2;
led-upgrade = &ledctrl3;
led-running = &ledctrl3;
led-upgrade = &ledctrl1;
};

chosen {
Expand Down Expand Up @@ -55,6 +55,7 @@
ledctrl2: ledctrl2 {
label = "ledctrl2";
gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-on";
};

ledctrl3: ledctrl3 {
Expand Down

0 comments on commit 0868268

Please sign in to comment.