ipq806x: rt4230w-rev6: fix status reporting via the LEDs
authorRodrigo Balerdi <lanchon@gmail.com>
Fri, 10 May 2024 06:35:43 +0000 (03:35 -0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 23 May 2024 20:15:33 +0000 (22:15 +0200)
commit08becaf62f4232f6bc60d899271529d66300d6ae
treedc5a40c8a26305054cc880199761bbdefcba301d
parent968d9430c687beada3eea768ed1bcd973d07f407
ipq806x: rt4230w-rev6: fix status reporting via the LEDs

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: https://github.com/openwrt/openwrt/pull/15440
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 0868268c9fd4397411e9629eedda35b1547e798e)
target/linux/ipq806x/files-5.15/arch/arm/boot/dts/qcom-ipq8065-rt4230w-rev6.dts