Commit 20dbf6d4 authored by Dmitry Rokosov's avatar Dmitry Rokosov Committed by Lee Jones

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: default avatarDmitry Rokosov <ddrokosov@salutedevices.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231125200519.1750-4-ddrokosov@salutedevices.comSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent d882762f
...@@ -41,6 +41,9 @@ properties: ...@@ -41,6 +41,9 @@ properties:
description: description:
Leds matrix size Leds matrix size
enable-gpios:
maxItems: 1
patternProperties: patternProperties:
"^led@[0-9a-f]$": "^led@[0-9a-f]$":
type: object type: object
...@@ -90,6 +93,7 @@ additionalProperties: false ...@@ -90,6 +93,7 @@ additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h> #include <dt-bindings/leds/common.h>
i2c { i2c {
...@@ -102,6 +106,7 @@ examples: ...@@ -102,6 +106,7 @@ examples:
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
awinic,display-rows = <3>; awinic,display-rows = <3>;
enable-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
led@0 { led@0 {
reg = <0x0>; reg = <0x0>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment