Skip to content

Commit 20dbf6d

Browse files
rockosovlag-linaro
authored andcommitted
dt-bindings: leds: aw200xx: Introduce optional enable-gpios property
Property 'enable-gpios' is optional, it can be used by the board developer to connect AW200XX LED controller with appropriate 'enable' GPIO pad. Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com> Acked-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20231125200519.1750-4-ddrokosov@salutedevices.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent d882762 commit 20dbf6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ properties:
4141
description:
4242
Leds matrix size
4343

44+
enable-gpios:
45+
maxItems: 1
46+
4447
patternProperties:
4548
"^led@[0-9a-f]$":
4649
type: object
@@ -90,6 +93,7 @@ additionalProperties: false
9093

9194
examples:
9295
- |
96+
#include <dt-bindings/gpio/gpio.h>
9397
#include <dt-bindings/leds/common.h>
9498
9599
i2c {
@@ -102,6 +106,7 @@ examples:
102106
#address-cells = <1>;
103107
#size-cells = <0>;
104108
awinic,display-rows = <3>;
109+
enable-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
105110
106111
led@0 {
107112
reg = <0x0>;

0 commit comments

Comments
 (0)