[PATCH v2 2/5] dt-bindings: soc: qcom: eud: add the QCM2290 EUD
From: Igor Opaniuk
Date: Mon Nov 23 2026 - 11:43:21 EST
The QCM2290 has the same Embedded USB Debugger as the SC7280: the EUD
CSRs and the mode manager register that the secure world writes on
behalf of the driver.
On QCM2290 the mode manager additionally ignores the enable unless the
TCSR register TCSR_APSS_SPARE_REG1 is set first. The boot firmware does
the same before it enables the EUD, and the register is written through
the same secure IO service.
Add the compatible and a "qcom,tcsr-reg" property that points to that
register in the TCSR syscon. It is required on QCM2290 and not allowed
on the other EUDs.
Signed-off-by: Igor Opaniuk <igor.opaniuk@xxxxxxxxxxxxxxxx>
---
.../devicetree/bindings/soc/qcom/qcom,eud.yaml | 25 ++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml
index 84218636c0d8..bea03468a499 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml
@@ -17,6 +17,7 @@ properties:
compatible:
items:
- enum:
+ - qcom,qcm2290-eud
- qcom,sc7280-eud
- const: qcom,eud
@@ -29,6 +30,17 @@ properties:
description: EUD interrupt
maxItems: 1
+ qcom,tcsr-reg:
+ $ref: /schemas/types.yaml#/definitions/phandle-array
+ items:
+ - items:
+ - description: phandle to the TCSR syscon
+ - description: offset of the register that has to be set before
+ the mode manager accepts the enable
+ description:
+ TCSR register that gates the EUD enable. It is written through the
+ secure world, like the mode manager register.
+
ports:
$ref: /schemas/graph.yaml#/properties/ports
description:
@@ -50,6 +62,19 @@ required:
- reg
- ports
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: qcom,qcm2290-eud
+ then:
+ required:
+ - qcom,tcsr-reg
+ else:
+ properties:
+ qcom,tcsr-reg: false
+
additionalProperties: false
examples:
--
2.53.0