Thread (14 messages) 14 messages, 4 authors, 2025-09-05

Re: [PATCH v2 1/4] dt-bindings: leds: add generic LED consumer documentation

From: Konrad Dybcio <hidden>
Date: 2025-09-05 10:20:23
Also in: dri-devel, linux-arm-msm, linux-leds, linux-media, lkml

On 9/5/25 9:59 AM, Aleksandrs Vinarskis wrote:
Introduce common generic led consumer binding, where consumer defines
led(s) by phandle, as opposed to trigger-source binding where the
trigger source is defined in led itself.

Add already used in some schemas 'leds' parameter which expects
phandle-array. Additionally, introduce 'led-names' which could be used
by consumers to map LED devices to their respective functions.

Signed-off-by: Aleksandrs Vinarskis <redacted>
---
[...]
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      camera@36 {
+        compatible = "ovti,ov02c10";
+        reg = <0x36>;
+
+        reset-gpios = <&tlmm 237 GPIO_ACTIVE_LOW>;
+        pinctrl-names = "default";
+        pinctrl-0 = <&cam_rgb_default>;
+
+        led-names = "privacy-led";
+        leds = <&privacy_led>;
property
property-names

is a common pattern

I know this is just an example, but people will copypaste it

Konrad
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help