Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipq806x: rt4230w-rev6: fix status reporting via the LEDs #15440

Merged
merged 1 commit into from
May 14, 2024

Conversation

Lanchon
Copy link
Contributor

@Lanchon Lanchon commented May 10, 2024

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.


FYI, i documented the modes provided by the led controller here:
https://openwrt.org/inbox/toh/askey/rt4230w_rev6#leds


videos

these videos show the bootloader, failsafe wait, and normal boot phases of openwrt boot.

  • current behavior:
    • chaotic flashing during failsafe wait and normal boot (and also during sysupgrade, not shown).
    • after boot, the device breaths in blue (solid blue was not possible with a single GPIO).
old.mp4
  • with this change:
    • correct flashing during all stages, including sysupgrade (but flashing must be done in red).
    • after boot, the device is solid blue.
new.mp4

@github-actions github-actions bot added the target/ipq806x pull request/issue for ipq806x target label May 10, 2024
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>
@openwrt-bot openwrt-bot merged commit 0868268 into openwrt:main May 14, 2024
3 checks passed
Lanchon added a commit to Lanchon/openwrt that referenced this pull request May 15, 2024
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>
(cherry picked from commit 0868268)
@Lanchon
Copy link
Contributor Author

Lanchon commented May 15, 2024

thank you @Ansuel !

Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request May 18, 2024
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>
hauke pushed a commit to Lanchon/openwrt that referenced this pull request May 23, 2024
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>
(cherry picked from commit 0868268)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target/ipq806x pull request/issue for ipq806x target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants