Skip to content

Commit

Permalink
dt-bindings: auxdisplay: ht16k33: Document LED subnode
Browse files Browse the repository at this point in the history
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>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
  • Loading branch information
Geert Uytterhoeven authored and Miguel Ojeda committed Oct 21, 2021
1 parent a042872 commit 2904c01
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ properties:
default: 16
description: Initial brightness level

led:
type: object
$ref: /schemas/leds/common.yaml#
unevaluatedProperties: false

required:
- compatible
- reg
Expand All @@ -66,6 +71,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>;
Expand All @@ -87,5 +93,11 @@ 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;
linux,default-trigger = "backlight";
};
};
};

0 comments on commit 2904c01

Please sign in to comment.