Message ID | 20210714151130.2531831-19-geert@linux-m68k.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | auxdisplay: ht16k33: Add character display support | expand |
On Wed, 14 Jul 2021 17:11:29 +0200, Geert Uytterhoeven wrote: > 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 <geert@linux-m68k.org> > --- > v3: > - New. > --- > .../bindings/auxdisplay/holtek,ht16k33.yaml | 11 +++++++++++ > 1 file changed, 11 insertions(+) > Reviewed-by: Rob Herring <robh@kernel.org>
diff --git a/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml b/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml index 2a58f883a08cb199..c750c1a915bdbecb 100644 --- a/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml +++ b/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml @@ -50,6 +50,11 @@ properties: default: 16 description: Initial brightness level + led: + type: object + $ref: /schemas/leds/common.yaml# + unevaluatedProperties: false + required: - compatible - reg @@ -68,6 +73,7 @@ examples: - | #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/input/input.h> + #include <dt-bindings/leds/common.h> i2c1 { #address-cells = <1>; #size-cells = <0>; @@ -89,5 +95,10 @@ examples: <MATRIX_KEY(4, 1, KEY_F9)>, <MATRIX_KEY(5, 1, KEY_F3)>, <MATRIX_KEY(6, 1, KEY_F1)>; + + led { + color = <LED_COLOR_ID_RED>; + function = LED_FUNCTION_BACKLIGHT; + }; }; };
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 <geert@linux-m68k.org> --- v3: - New. --- .../bindings/auxdisplay/holtek,ht16k33.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+)