[PATCH 1/2] dt-bindings: input: gpio-keys: Allow optional dedicated wakeirq
From: Tony Lindgren
Date: Fri Aug 11 2023 - 07:04:42 EST
Allow configuring optional dedicated wakeirq that some SoCs have.
Let's use the interrupt naming "irq" and "wakeup" that we already have
in use for some drivers and subsystems like i2c.
Signed-off-by: Tony Lindgren <tony@xxxxxxxxxxx>
---
.../devicetree/bindings/input/gpio-keys.yaml | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/input/gpio-keys.yaml b/Documentation/devicetree/bindings/input/gpio-keys.yaml
--- a/Documentation/devicetree/bindings/input/gpio-keys.yaml
+++ b/Documentation/devicetree/bindings/input/gpio-keys.yaml
@@ -31,7 +31,17 @@ patternProperties:
maxItems: 1
interrupts:
- maxItems: 1
+ description:
+ Optional interrupts if different from the gpio interrupt
+ maxItems: 2
+
+ interrupt-names:
+ description:
+ Optional interrupt names, can be used to specify a separate
+ dedicated wake-up interrupt
+ items:
+ -const: irq
+ -const: wakeup
label:
description: Descriptive name of the key.
@@ -130,6 +140,9 @@ examples:
label = "GPIO Key UP";
linux,code = <103>;
gpios = <&gpio1 0 1>;
+ interrupts-extended = <&intc_wakeup 0 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "wakeup";
+ wakeup-source;
};
key-down {
--
2.41.0