Skip to content

Commit 9422bcf

Browse files
stephan-ghlag-linaro
authored andcommitted
dt-bindings: leds: aw2013: Document interrupt
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]>
1 parent a916d72 commit 9422bcf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/devicetree/bindings/leds/leds-aw2013.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ properties:
2020
reg:
2121
maxItems: 1
2222

23+
interrupts:
24+
maxItems: 1
25+
description: Open-drain, low active interrupt pin "INTN".
26+
Used to report completion of operations (power up, LED breath effects).
27+
2328
vcc-supply:
2429
description: Regulator providing power to the "VCC" pin.
2530

@@ -52,6 +57,7 @@ additionalProperties: false
5257
examples:
5358
- |
5459
#include <dt-bindings/gpio/gpio.h>
60+
#include <dt-bindings/interrupt-controller/irq.h>
5561
#include <dt-bindings/leds/common.h>
5662
5763
i2c {
@@ -61,6 +67,7 @@ examples:
6167
led-controller@45 {
6268
compatible = "awinic,aw2013";
6369
reg = <0x45>;
70+
interrupts = <42 IRQ_TYPE_LEVEL_LOW>;
6471
#address-cells = <1>;
6572
#size-cells = <0>;
6673

0 commit comments

Comments
 (0)