lkml.org 
[lkml]   [2023]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1 2/2] dt-bindings: leds: aw200xx: add 'interrupts' property
Date
Added support for interrupt to the LED controller driver, which
indicates the finished of the auto-breath pattern.

Signed-off-by: Martin Kurbanov <mmkurbanov@salutedevices.com>
---
Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml b/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml
index 54d6d1f08e24..7ab35b7a3fe6 100644
--- a/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml
+++ b/Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml
@@ -44,6 +44,9 @@ properties:
enable-gpios:
maxItems: 1

+ interrupts:
+ maxItems: 1
+
patternProperties:
"^led@[0-9a-f]+$":
type: object
@@ -137,6 +140,7 @@ additionalProperties: false
examples:
- |
#include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>

i2c {
@@ -149,6 +153,8 @@ examples:
#address-cells = <1>;
#size-cells = <0>;
enable-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
+ interrupt-parent = <&gpio_intc>;
+ interrupts = <13 IRQ_TYPE_LEVEL_LOW>;

led@0 {
reg = <0x0>;
--
2.40.0
\
 
 \ /
  Last update: 2023-12-07 14:01    [W:0.158 / U:1.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site