dt-bindings: firmware: qcom,scm: Add optional interrupt
authorGuru Das Srinagesh <quic_gurus@quicinc.com>
Fri, 13 Jan 2023 16:11:13 +0000 (21:41 +0530)
committerBjorn Andersson <andersson@kernel.org>
Thu, 19 Jan 2023 03:14:40 +0000 (21:14 -0600)
Add an interrupt specification to the bindings to support the wait-queue
feature on SM8450 SoCs.

Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230113161114.22607-2-quic_sibis@quicinc.com
Documentation/devicetree/bindings/firmware/qcom,scm.yaml

index 9312a0953ea8bf47775dc42e8399f6ad0bd59772..4193492ba73e0880c654a9e45c4582cc0f962830 100644 (file)
@@ -74,6 +74,12 @@ properties:
   '#reset-cells':
     const: 1
 
+  interrupts:
+    description:
+      The wait-queue interrupt that firmware raises as part of handshake
+      protocol to handle sleeping SCM calls.
+    maxItems: 1
+
   qcom,dload-mode:
     $ref: /schemas/types.yaml#/definitions/phandle-array
     items:
@@ -163,6 +169,18 @@ allOf:
       properties:
         interconnects: false
 
+  # Interrupts
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - qcom,scm-sm8450
+    then:
+      properties:
+        interrupts: false
+
 required:
   - compatible