INAGAKI Hiroshi f7275dedd4 qualcommax: ipq807x: fix LEDs on Buffalo WXR-5950AX12
On Buffalo WXR-5590AX12, some 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.: "white:"/"red:") will be appeared as LED names
and renamed to "<color>:_<num>" ("ex.: "white:_1", "green:_2", ...) by
kernel.

logs:

[    5.372863] leds-gpio leds: Led white: renamed to white:_1 due to name collision
[    5.375796] leds-gpio leds: Led red: renamed to red:_1 due to name collision

/sys/class/leds:

root@OpenWrt:/# ls /sys/class/leds/
red:         red:power    white:       white:power
red:_1       red:wlan     white:_1     white:wlan

Fix this issue by adding missing "function" property to LEDs on Buffalo
WXR-5950AX12.
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
..
2024-01-19 21:24:44 +01:00
2024-03-07 19:30:54 +01:00
2024-03-11 21:51:37 +01:00
2024-01-06 10:53:39 +01:00
2024-03-07 19:30:54 +01:00
2024-03-05 00:23:59 +01:00
2024-01-06 12:52:49 +01:00
2024-02-24 19:25:02 +01:00
2024-03-11 21:51:37 +01:00
2024-02-23 18:05:09 +01:00
2024-03-14 14:24:16 +01:00
2024-03-07 19:30:54 +01:00
2024-02-13 19:05:48 +01:00
2024-01-01 02:34:48 +01:00
2024-03-12 10:27:38 +01:00