* [PATCH v3 0/3] arm64: dts: qcom: QCM2290: add the Embedded USB Debugger
@ 2026-11-24 17:48 Igor Opaniuk
2026-11-24 17:48 ` [PATCH v3 1/3] dt-bindings: soc: qcom: eud: add the QCM2290 EUD Igor Opaniuk
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Igor Opaniuk @ 2026-11-24 17:48 UTC (permalink / raw)
To: Souradeep Chowdhury, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Elson Serrao,
Krzysztof Kozlowski, Igor Opaniuk, Abel Vesa
Describe the Embedded USB Debugger of the QCM2290 and enable it on the
Arduino UNO Q.
These are patches 2/5, 4/5 and 5/5 of the v2 EUD series: the binding
(the "qcom,qcm2290-eud" compatible and the "qcom,tcsr-reg" property) and
the DTS, split from the USB driver patches as Krzysztof asked. The
driver change that writes the register named by "qcom,tcsr-reg" is in
the series "usb: misc: qcom_eud: add the QCM2290 Embedded USB
Debugger", v3 [1].
Testing is described in that series' cover letter: Arduino UNO Q, with
TF-A and with stock QTEE, the host enumerates the EUD and OpenOCD
attaches over SWD.
dt_binding_check and dtbs_check (qrb2210-arduino-imola, qrb2210-rb1)
are clean.
[1] https://lore.kernel.org/r/20261124-qcm2290-eud-v3-0-4f31aef8c1c3@oss.qualcomm.com
---
Changes in v3:
- Split by subsystem (Krzysztof): the binding and the DTS patches form
this series, the USB driver patches are a separate one.
- Collected Reviewed-by tags from Krzysztof (patch 1) and Abel (patches
2 and 3). No patch changed from v2, so no tags were dropped.
- Link to v2: https://lore.kernel.org/r/20261123-qcm2290-eud-v2-0-9bfc432dee07@oss.qualcomm.com
Changes in v2, from the Sashiko review of v1:
- Binding, dtsi: the TCSR register is no longer a third reg entry of
the EUD node. It is a "qcom,tcsr-reg" phandle + offset to the TCSR
syscon, which already covers it.
- Link to v1: https://lore.kernel.org/r/20261114-qcm2290-eud-v1-0-b6157b817377@oss.qualcomm.com
---
Igor Opaniuk (3):
dt-bindings: soc: qcom: eud: add the QCM2290 EUD
arm64: dts: qcom: agatti: add the Embedded USB Debugger
arm64: dts: qcom: qrb2210-arduino-imola: enable the EUD
.../devicetree/bindings/soc/qcom/qcom,eud.yaml | 25 ++++++++++++++++
arch/arm64/boot/dts/qcom/agatti.dtsi | 34 +++++++++++++++++++++-
arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts | 4 +++
3 files changed, 62 insertions(+), 1 deletion(-)
---
base-commit: 84abb955b1015477aa11a96e2f3ac1b938b77f48
change-id: 20261124-qcm2290-eud-dts-d630171f0cab
Best regards,
--
Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3 1/3] dt-bindings: soc: qcom: eud: add the QCM2290 EUD
2026-11-24 17:48 [PATCH v3 0/3] arm64: dts: qcom: QCM2290: add the Embedded USB Debugger Igor Opaniuk
@ 2026-11-24 17:48 ` Igor Opaniuk
2026-11-24 17:48 ` [PATCH v3 2/3] arm64: dts: qcom: agatti: add the Embedded USB Debugger Igor Opaniuk
2026-11-24 17:48 ` [PATCH v3 3/3] arm64: dts: qcom: qrb2210-arduino-imola: enable the EUD Igor Opaniuk
2 siblings, 0 replies; 4+ messages in thread
From: Igor Opaniuk @ 2026-11-24 17:48 UTC (permalink / raw)
To: Souradeep Chowdhury, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Elson Serrao,
Krzysztof Kozlowski, Igor Opaniuk
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.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
---
.../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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3 2/3] arm64: dts: qcom: agatti: add the Embedded USB Debugger
2026-11-24 17:48 [PATCH v3 0/3] arm64: dts: qcom: QCM2290: add the Embedded USB Debugger Igor Opaniuk
2026-11-24 17:48 ` [PATCH v3 1/3] dt-bindings: soc: qcom: eud: add the QCM2290 EUD Igor Opaniuk
@ 2026-11-24 17:48 ` Igor Opaniuk
2026-11-24 17:48 ` [PATCH v3 3/3] arm64: dts: qcom: qrb2210-arduino-imola: enable the EUD Igor Opaniuk
2 siblings, 0 replies; 4+ messages in thread
From: Igor Opaniuk @ 2026-11-24 17:48 UTC (permalink / raw)
To: Souradeep Chowdhury, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Elson Serrao, Abel Vesa,
Igor Opaniuk
Describe the EUD:
- its CSRs at 0x1610000 and the mode manager register at 0x1612000;
- TCSR_APSS_SPARE_REG1 (0x3e5018), as offset 0x25018 into the TCSR
syscon;
- its interrupt (eud_int[1], GIC SPI 189).
Hook its port to a second endpoint of the dwc3 high-speed port so the
driver finds the role switch, while the board keeps the first endpoint
for its connector.
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/agatti.dtsi | 34 +++++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/agatti.dtsi b/arch/arm64/boot/dts/qcom/agatti.dtsi
index ea9b39b1ed43..ac7a653a6f03 100644
--- a/arch/arm64/boot/dts/qcom/agatti.dtsi
+++ b/arch/arm64/boot/dts/qcom/agatti.dtsi
@@ -826,6 +826,30 @@ gcc: clock-controller@1400000 {
#power-domain-cells = <1>;
};
+ eud: eud@1610000 {
+ compatible = "qcom,qcm2290-eud", "qcom,eud";
+ reg = <0x0 0x01610000 0x0 0x2000>,
+ <0x0 0x01612000 0x0 0x1000>;
+ interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
+
+ qcom,tcsr-reg = <&tcsr_regs 0x25018>;
+
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ eud_ep: endpoint {
+ remote-endpoint = <&usb_dwc3_hs_eud>;
+ };
+ };
+ };
+ };
+
usb_hsphy: phy@1613000 {
compatible = "qcom,qcm2290-qusb2-phy";
reg = <0x0 0x01613000 0x0 0x180>;
@@ -1680,8 +1704,16 @@ ports {
port@0 {
reg = <0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
- usb_dwc3_hs: endpoint {
+ usb_dwc3_hs: endpoint@0 {
+ reg = <0>;
+ };
+
+ usb_dwc3_hs_eud: endpoint@1 {
+ reg = <1>;
+ remote-endpoint = <&eud_ep>;
};
};
--
2.53.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3 3/3] arm64: dts: qcom: qrb2210-arduino-imola: enable the EUD
2026-11-24 17:48 [PATCH v3 0/3] arm64: dts: qcom: QCM2290: add the Embedded USB Debugger Igor Opaniuk
2026-11-24 17:48 ` [PATCH v3 1/3] dt-bindings: soc: qcom: eud: add the QCM2290 EUD Igor Opaniuk
2026-11-24 17:48 ` [PATCH v3 2/3] arm64: dts: qcom: agatti: add the Embedded USB Debugger Igor Opaniuk
@ 2026-11-24 17:48 ` Igor Opaniuk
2 siblings, 0 replies; 4+ messages in thread
From: Igor Opaniuk @ 2026-11-24 17:48 UTC (permalink / raw)
To: Souradeep Chowdhury, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Elson Serrao, Abel Vesa,
Igor Opaniuk
The UNO Q exposes the EUD on its USB-C port: with it enabled, a host
sees the EUD hub and its SWD/trace functions, which OpenOCD's EUD
adapter uses to debug the SoC.
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts b/arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts
index e99d2a56dc28..a1af2caa5bfc 100644
--- a/arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts
+++ b/arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts
@@ -226,6 +226,10 @@ vph_pwr: regulator-vph-pwr {
};
};
+&eud {
+ status = "okay";
+};
+
&gpi_dma0 {
status = "okay";
};
--
2.53.0
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-24 17:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 17:48 [PATCH v3 0/3] arm64: dts: qcom: QCM2290: add the Embedded USB Debugger Igor Opaniuk
2026-11-24 17:48 ` [PATCH v3 1/3] dt-bindings: soc: qcom: eud: add the QCM2290 EUD Igor Opaniuk
2026-11-24 17:48 ` [PATCH v3 2/3] arm64: dts: qcom: agatti: add the Embedded USB Debugger Igor Opaniuk
2026-11-24 17:48 ` [PATCH v3 3/3] arm64: dts: qcom: qrb2210-arduino-imola: enable the EUD Igor Opaniuk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®