Skip to content

Commit 2904c01

Browse files
geertuojeda
authored andcommitted
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 <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent a042872 commit 2904c01

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ properties:
4848
default: 16
4949
description: Initial brightness level
5050

51+
led:
52+
type: object
53+
$ref: /schemas/leds/common.yaml#
54+
unevaluatedProperties: false
55+
5156
required:
5257
- compatible
5358
- reg
@@ -66,6 +71,7 @@ examples:
6671
- |
6772
#include <dt-bindings/interrupt-controller/irq.h>
6873
#include <dt-bindings/input/input.h>
74+
#include <dt-bindings/leds/common.h>
6975
i2c1 {
7076
#address-cells = <1>;
7177
#size-cells = <0>;
@@ -87,5 +93,11 @@ examples:
8793
<MATRIX_KEY(4, 1, KEY_F9)>,
8894
<MATRIX_KEY(5, 1, KEY_F3)>,
8995
<MATRIX_KEY(6, 1, KEY_F1)>;
96+
97+
led {
98+
color = <LED_COLOR_ID_RED>;
99+
function = LED_FUNCTION_BACKLIGHT;
100+
linux,default-trigger = "backlight";
101+
};
90102
};
91103
};

0 commit comments

Comments
 (0)