]> Git Repo - J-linux.git/commitdiff
dt-bindings: leds: aw2013: Document interrupt
authorStephan Gerhold <[email protected]>
Tue, 15 Aug 2023 17:21:04 +0000 (19:21 +0200)
committerLee Jones <[email protected]>
Fri, 18 Aug 2023 15:47:21 +0000 (16:47 +0100)
AW2013 has an optional interrupt pin "INTN" which is used to report
completion of started operations (e.g. power up or LED breath effects).
The driver does not use it (yet) but it should be described for
completeness inside the DT schema.

Signed-off-by: Stephan Gerhold <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Nikita Travkin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Documentation/devicetree/bindings/leds/leds-aw2013.yaml

index 08f3e1cfc1b1be21f9b0f1bd64fdbaf7fb196afa..a0a0dabcfbf3160749d529fb4077b716e08a47f6 100644 (file)
@@ -20,6 +20,11 @@ properties:
   reg:
     maxItems: 1
 
+  interrupts:
+    maxItems: 1
+    description: Open-drain, low active interrupt pin "INTN".
+      Used to report completion of operations (power up, LED breath effects).
+
   vcc-supply:
     description: Regulator providing power to the "VCC" pin.
 
@@ -52,6 +57,7 @@ additionalProperties: false
 examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
     #include <dt-bindings/leds/common.h>
 
     i2c {
@@ -61,6 +67,7 @@ examples:
         led-controller@45 {
             compatible = "awinic,aw2013";
             reg = <0x45>;
+            interrupts = <42 IRQ_TYPE_LEVEL_LOW>;
             #address-cells = <1>;
             #size-cells = <0>;
 
This page took 0.047647 seconds and 4 git commands to generate.