openwrt/target/linux
INAGAKI Hiroshi 5c1c823c4a qualcommax: ipq807x: fix LEDs on QNAP QHora-301W
On QNAP QHora-301W, all LEDs don't have "function" property and only
"color" property is available for the newer binding of LED on Linux
Kernel.
2e659930d3 ("qualcommax: drop redundant label with new LED
color/function format") removes "label" property from LEDs, then,
multiple "<color>:" (ex.: "amber:"/"green:"/"red:") will be appeared as
LED names and renamed to "<color>:_<num>" ("ex.: "green:_1", "green:_2",
...) by kernel.

logs:

[    4.246494] leds-gpio leds: Led green: renamed to green:_1 due to name collision
[    4.248978] leds-gpio leds: Led green: renamed to green:_2 due to name collision
[    4.256345] leds-gpio leds: Led green: renamed to green:_3 due to name collision
[    4.263770] leds-gpio leds: Led green: renamed to green:_4 due to name collision
[    4.271105] leds-gpio leds: Led amber: renamed to amber:_1 due to name collision
[    4.278487] leds-gpio leds: Led green: renamed to green:_5 due to name collision
[    4.285856] leds-gpio leds: Led amber: renamed to amber:_2 due to name collision
[    4.293257] leds-gpio leds: Led green: renamed to green:_6 due to name collision
[    4.300616] leds-gpio leds: Led amber: renamed to amber:_3 due to name collision
[    4.308002] leds-gpio leds: Led green: renamed to green:_7 due to name collision
[    4.315384] leds-gpio leds: Led amber: renamed to amber:_4 due to name collision
[    4.322760] leds-gpio leds: Led green: renamed to green:_8 due to name collision
[    4.330135] leds-gpio leds: Led amber: renamed to amber:_5 due to name collision

/sys/class/leds:

amber:          amber:_4        green:_2        green:_6
amber:_1        green:_5        green:_3        green:_7
amber:_2        green:          green:_4        green:_8
amber:_3        green:_1        green:_5        red:

Fix this issue by adding missing "function" (and "function-enumerator")
property to LEDs on QNAP QHora-301W.
Note: there are no appropriate functions in dt-bindings/leds/common.h
for some LEDs, so use the hardcoded strings for them instead.

Fixes: 2e659930d3 ("qualcommax: drop redundant label with new LED color/function format")
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2024-03-17 17:31:02 +01:00
..
airoha airoha: dts: fix pcie ranges properties 2024-02-26 13:19:26 +01:00
apm821xx apm821xx: MBL DUO-only: enable USB-Storage for boot from USB support 2024-03-02 14:08:07 +01:00
archs38 archs38: add 6.1 as testing kernel 2024-03-17 17:28:44 +01:00
armsr kernel: bump 6.1 to 6.1.72 2024-01-19 21:24:44 +01:00
at91 kernel: bump 5.15 to 5.15.150 2024-03-07 19:30:54 +01:00
ath79 ath79: add missing kernel config symbols 2024-03-13 13:48:42 +01:00
bcm27xx kernel: bump 6.1 to 6.1.81 2024-03-11 21:51:37 +01:00
bcm47xx kernel: bump 5.15 to 5.15.146 2024-01-06 10:53:39 +01:00
bcm53xx kernel: bump 5.15 to 5.15.150 2024-03-07 19:30:54 +01:00
bcm4908 kernel: bump 5.15 to 5.15.137 2023-10-27 19:43:06 +01:00
bmips bmips: add support for SmartRG SR505n 2024-03-10 20:26:07 +01:00
d1 kernel: bump 6.1 to 6.1.80 2024-03-05 00:23:59 +01:00
gemini kernel: bump 6.1 to 6.1.71 2024-01-06 12:52:49 +01:00
generic kernel: xt_FLOWOFFLOAD: fix use of uninitialized dir variable 2024-03-16 15:30:03 +08:00
imx kernel: bump 6.1 to 6.1.79 2024-02-24 19:25:02 +01:00
ipq40xx kernel: bump 6.1 to 6.1.81 2024-03-11 21:51:37 +01:00
ipq806x ipq806x: refresh Kconfig 2024-02-23 18:05:09 +01:00
ixp4xx ixp4xx: add Generic subtarget definition 2023-12-09 14:45:50 +01:00
kirkwood kirkwood: add support for Netgear Stora (MS2000/2110) NAS 2024-03-17 00:19:22 +01:00
lantiq lantiq: Fix build after kernel 5.15.150 2024-03-08 14:49:09 +01:00
layerscape layerscape: remove 5.15 kernel support 2024-03-01 18:29:09 +01:00
malta malta: Remove kernel 5.15 configuration 2024-02-03 04:35:25 +00:00
mediatek mediatek: mt7622: simplify 02_network 2024-03-16 15:27:17 +08:00
mpc85xx mpc85xx: p1020: convert Aerohive AP330/AP350 to simpleImage 2024-03-08 17:24:14 +01:00
mvebu mvebu: add support for SolidRun ClearFog Pro 2024-03-02 14:21:20 +01:00
mxs mxs: switch default kernel to 6.1 2024-03-14 14:24:16 +01:00
octeon octeon: convert to new LED color/function format where possible 2024-02-07 14:48:41 +01:00
octeontx kernel: bump 5.15 to 5.15.149 2024-03-07 19:30:54 +01:00
omap omap: drop kernel 5.15 2024-02-13 19:05:48 +01:00
oxnas oxnas: do not use pcie-controller 2024-01-01 02:34:48 +01:00
pistachio kernel: fix mtd/NVMEM regression affecting U-Boot env NVMEM driver 2023-10-31 17:33:28 +01:00
qoriq qoriq: pad rootfs with zeros 2023-12-02 14:06:56 +02:00
qualcommax qualcommax: ipq807x: fix LEDs on QNAP QHora-301W 2024-03-17 17:31:02 +01:00
ramips ramips: 5.15: delete remaining files 2024-03-13 23:51:23 +01:00
realtek realtek: fix Netgear GS110TPP OEM install 2024-02-18 09:56:45 +01:00
rockchip rockchip: fix device packages for nanopi r4s enterprise edition 2024-02-25 12:36:02 +08:00
sifiveu kernel: remove CONFIG_DEVTMPFS_SAFE from target config 2023-11-19 16:46:24 +01:00
starfive starfive: refresh patches 2024-03-12 10:27:38 +01:00
sunxi sunxi: mark upstreamed patches as such 2023-12-19 16:02:05 +01:00
tegra treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
uml kernel: bump 6.1 to 6.1.53 2023-09-23 13:10:28 +02:00
x86 kernel: config: add symbol introduced with 6.1.81 2024-03-11 21:51:37 +01:00
zynq generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
Makefile linux: add dtb makefile target to targets list 2024-02-08 23:04:55 +01:00