Re: Are LED functions strings or uint32 in Documentation/devicetree/bindings/leds/common.yaml

From: Jacek Anaszewski
Date: Wed Jul 16 2025 - 06:19:15 EST


Hello,

On 7/16/25 05:19, E Shattow wrote:
Hello,

Documentation/devicetree/bindings/leds/common.yaml [1] describes a
uint32 but the $ref is for a string, for "function". What's going on

In which line function is described as uint32?

there? Also what is the reasoning for that sort ordering [2] in the
examples, are we saying that gpios is like a register and function or
default-state is a kind of status?

1:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/leds/common.yaml

2:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/leds/leds-gpio.yaml

-E Shattow



--
Best regards,
Jacek Anaszewski