From: Geert Uytterhoeven Date: Tue, 19 Oct 2021 14:45:18 +0000 (+0200) Subject: dt-bindings: auxdisplay: ht16k33: Document LED subnode X-Git-Tag: v6.6.17~8892^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2904c01428e7e372bcfa4723a891669b2c55f1fb;p=platform%2Fkernel%2Flinux-rpi.git dt-bindings: auxdisplay: ht16k33: Document LED subnode Extend the Holtek HT16K33 LED controller Device Tree bindings with an LED subnode, conforming to the standard LED bindings. This allows the user to exert more control, like specifying LED color, function, and/or trigger, to extend LED functionality beyond a simple display backlight. Signed-off-by: Geert Uytterhoeven Reviewed-by: Rob Herring Signed-off-by: Miguel Ojeda --- diff --git a/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml b/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml index 6baf120..fc4873d 100644 --- a/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml +++ b/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml @@ -48,6 +48,11 @@ properties: default: 16 description: Initial brightness level + led: + type: object + $ref: /schemas/leds/common.yaml# + unevaluatedProperties: false + required: - compatible - reg @@ -66,6 +71,7 @@ examples: - | #include #include + #include i2c1 { #address-cells = <1>; #size-cells = <0>; @@ -87,5 +93,11 @@ examples: , , ; + + led { + color = ; + function = LED_FUNCTION_BACKLIGHT; + linux,default-trigger = "backlight"; + }; }; };