diff mbox series

[V0,5/7] arm64: dts: qcom: sc7280: Add EUD connector node

Message ID 172cb86e7a05d967ebf061033d47e4c5e95af503.1633343547.git.schowdhu@codeaurora.org (mailing list archive)
State Superseded
Headers show
Series Add Embedded USB Debugger (EUD) driver | expand

Commit Message

Souradeep Chowdhury Oct. 4, 2021, 11:16 a.m. UTC
Add the Embedded USB Debugger(EUD) connector node
as the child of dwc3 node under usb2. The node contains
EUD base register region and EUD mode manager register
regions along with the interrupt entry.

Signed-off-by: Souradeep Chowdhury <schowdhu@codeaurora.org>
---
 arch/arm64/boot/dts/qcom/sc7280.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
index 53a21d0..21b16da 100644
--- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
@@ -1308,6 +1308,9 @@ 
 			usb_2_dwc3: usb@8c00000 {
 				compatible = "snps,dwc3";
 				reg = <0 0x08c00000 0 0xe000>;
+				#address-cells = <2>;
+				#size-cells = <2>;
+				ranges;
 				interrupts = <GIC_SPI 242 IRQ_TYPE_LEVEL_HIGH>;
 				iommus = <&apps_smmu 0xa0 0x0>;
 				snps,dis_u2_susphy_quirk;
@@ -1315,6 +1318,15 @@ 
 				phys = <&usb_2_hsphy>;
 				phy-names = "usb2-phy";
 				maximum-speed = "high-speed";
+				usb-role-switch;
+				usb_con: eud_usb_connector {
+					compatible = "qcom,usb-connector-eud", "usb-c-connector",
+						     "qcom,sc7280-usb-connector-eud";
+					reg = <0 0x88e0000 0 0x2000>,
+					      <0 0x88e2000 0 0x1000>;
+					interrupt-parent = <&pdc>;
+					interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
+				};
 			};
 		};