aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Rokosov <[email protected]>2023-11-25 23:05:11 +0300
committerLee Jones <[email protected]>2023-12-13 11:28:55 +0000
commit20dbf6d4a19c5bb5d2521c4993d4373fbe05f1bc (patch)
tree3d2df99f0f9a42877ba7920f744ab581c1904c2f
parentd882762f7950c3dfd56c786a35d1518397773947 (diff)
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 <[email protected]> Acked-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
-rw-r--r--Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml b/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml
index feb5febaf361..3da3633a242c 100644
--- a/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml
+++ b/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml
@@ -41,6 +41,9 @@ properties:
description:
Leds matrix size
+ enable-gpios:
+ maxItems: 1
+
patternProperties:
"^led@[0-9a-f]$":
type: object
@@ -90,6 +93,7 @@ additionalProperties: false
examples:
- |
+ #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
i2c {
@@ -102,6 +106,7 @@ examples:
#address-cells = <1>;
#size-cells = <0>;
awinic,display-rows = <3>;
+ enable-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
led@0 {
reg = <0x0>;