Skip to content
Snippets Groups Projects
Commit 9422bcf1 authored by Stephan Gerhold's avatar Stephan Gerhold Committed by Lee Jones
Browse files

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: default avatarStephan Gerhold <stephan@gerhold.net>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarNikita Travkin <nikita@trvn.ru>
Link: https://lore.kernel.org/r/20230815-aw2013-vio-v3-1-2505296b0856@gerhold.net


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent a916d720
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,11 @@ properties: ...@@ -20,6 +20,11 @@ properties:
reg: reg:
maxItems: 1 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: vcc-supply:
description: Regulator providing power to the "VCC" pin. description: Regulator providing power to the "VCC" pin.
...@@ -52,6 +57,7 @@ additionalProperties: false ...@@ -52,6 +57,7 @@ additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h> #include <dt-bindings/leds/common.h>
i2c { i2c {
...@@ -61,6 +67,7 @@ examples: ...@@ -61,6 +67,7 @@ examples:
led-controller@45 { led-controller@45 {
compatible = "awinic,aw2013"; compatible = "awinic,aw2013";
reg = <0x45>; reg = <0x45>;
interrupts = <42 IRQ_TYPE_LEVEL_LOW>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment