led: update LED boot/activity to new property implementation
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 10 Nov 2024 11:50:26 +0000 (12:50 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 6 Dec 2024 19:00:41 +0000 (13:00 -0600)
commit69542d06920bf63ca1a87fa567dd2087e650e52f
tree9a9b873f6359d3b0ad5a8efc73550d0c9b2575a7
parentc2aecfbe2c9abb67f3fcf3d1dac7a300ba1de7fc
led: update LED boot/activity to new property implementation

Update LED boot/activity to reference by phandle instead of label and
add to period property the "-ms" suffix.
This is a followup request by dt-schema maintainers that required LED
node to be referenced by a phandle to the node instead of indirectly by
the LED label and for timevalue to have a suffix.

While at it generalize the LED node label parsing since the logic is
common for generic LED bind and LED activity/boot.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
drivers/led/led-uclass.c