[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230112145424.3791276-3-etienne.carriere@linaro.org>
Date: Thu, 12 Jan 2023 15:54:23 +0100
From: Etienne Carriere <etienne.carriere@...aro.org>
To: linux-kernel@...r.kernel.org
Cc: Jens Wiklander <jens.wiklander@...aro.org>,
Sumit Garg <sumit.garg@...aro.org>,
Marc Zyngier <maz@...nel.org>,
op-tee@...ts.trustedfirmware.org, devicetree@...r.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Etienne Carriere <etienne.carriere@...aro.org>
Subject: [PATCH 2/3] dt-bindings: arm: optee: add interrupt controller properties
Adds optional interrupt controller properties used when OP-TEE generates
interrupt events optee driver shall notified to its registered
interrupt consumer. The example shows how OP-TEE can trigger a wakeup
interrupt event consumed by a gpio-keys compatible device.
Signed-off-by: Etienne Carriere <etienne.carriere@...aro.org>
---
.../arm/firmware/linaro,optee-tz.yaml | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.yaml b/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.yaml
index d4dc0749f9fd..42874ca21b7e 100644
--- a/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.yaml
+++ b/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.yaml
@@ -40,6 +40,11 @@ properties:
HVC #0, register assignments
register assignments are specified in drivers/tee/optee/optee_smc.h
+ interrupt-controller: true
+
+ "#interrupt-cells":
+ const: 1
+
required:
- compatible
- method
@@ -48,12 +53,24 @@ additionalProperties: false
examples:
- |
+ #include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
firmware {
- optee {
+ optee: optee {
compatible = "linaro,optee-tz";
method = "smc";
interrupts = <GIC_SPI 187 IRQ_TYPE_EDGE_RISING>;
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ };
+ };
+
+ wake_up {
+ compatible = "gpio-keys";
+
+ button {
+ linux,code = <KEY_WAKEUP>;
+ interrupts-extended = <&optee 0>;
};
};
--
2.25.1
Powered by blists - more mailing lists