Skip to content

Commit 2b73a24

Browse files
elkablolag-linaro
authored andcommitted
dt-bindings: leds: cznic,turris-omnia-leds: Allow interrupts property
Extend the cznic,turris-omnia-leds binding with interrupts property, specifying the global LED brightness changed by button press interrupt. Signed-off-by: Marek Behún <kabel@kernel.org> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20241111100355.6978-6-kabel@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 5d2f883 commit 2b73a24

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Documentation/devicetree/bindings/leds/cznic,turris-omnia-leds.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ properties:
2323
description: I2C slave address of the microcontroller.
2424
maxItems: 1
2525

26+
interrupts:
27+
description:
28+
Specifier for the global LED brightness changed by front button press
29+
interrupt.
30+
maxItems: 1
31+
2632
"#address-cells":
2733
const: 1
2834

@@ -56,6 +62,7 @@ additionalProperties: false
5662
examples:
5763
- |
5864
65+
#include <dt-bindings/interrupt-controller/irq.h>
5966
#include <dt-bindings/leds/common.h>
6067
6168
i2c {
@@ -65,6 +72,7 @@ examples:
6572
led-controller@2b {
6673
compatible = "cznic,turris-omnia-leds";
6774
reg = <0x2b>;
75+
interrupts-extended = <&mcu 11 IRQ_TYPE_NONE>;
6876
#address-cells = <1>;
6977
#size-cells = <0>;
7078

0 commit comments

Comments
 (0)