All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V0 0/2] DT changes for Embedded USB Debugger(EUD)
@ 2022-04-06  9:33 Souradeep Chowdhury
  2022-04-06  9:33 ` [PATCH V0 1/2] arm64: dts: qcom: sc7280: Add EUD dt node and dwc3 connector Souradeep Chowdhury
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Souradeep Chowdhury @ 2022-04-06  9:33 UTC (permalink / raw)
  To: linux-arm-msm, linux-usb, devicetree, pure.logic,
	bjorn.andersson, greg, robh
  Cc: linux-kernel, quic_rjendra, quic_saipraka, Souradeep Chowdhury

This patch contains the DT changes for EUD from the QCOM tree.
The DT changes have been reverted from USB tree to avoid
conflicts. The DT changes for EUD should go through the QCOM
tree.

Souradeep Chowdhury (2):
  arm64: dts: qcom: sc7280: Add EUD dt node and dwc3 connector
  arm64: dts: qcom: sc7280: Set the default dr_mode for usb2

 arch/arm64/boot/dts/qcom/sc7280-idp.dts |  2 +-
 arch/arm64/boot/dts/qcom/sc7280.dtsi    | 36 +++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 1 deletion(-)

--
2.7.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH V0 1/2] arm64: dts: qcom: sc7280: Add EUD dt node and dwc3 connector
  2022-04-06  9:33 [PATCH V0 0/2] DT changes for Embedded USB Debugger(EUD) Souradeep Chowdhury
@ 2022-04-06  9:33 ` Souradeep Chowdhury
  2022-04-06  9:33 ` [PATCH V0 2/2] arm64: dts: qcom: sc7280: Set the default dr_mode for usb2 Souradeep Chowdhury
  2022-04-08 13:37 ` [PATCH V0 0/2] DT changes for Embedded USB Debugger(EUD) patchwork-bot+linux-arm-msm
  2 siblings, 0 replies; 4+ messages in thread
From: Souradeep Chowdhury @ 2022-04-06  9:33 UTC (permalink / raw)
  To: linux-arm-msm, linux-usb, devicetree, pure.logic,
	bjorn.andersson, greg, robh
  Cc: linux-kernel, quic_rjendra, quic_saipraka, Souradeep Chowdhury

Add the Embedded USB Debugger(EUD) device tree node. The
node contains EUD base register region and EUD mode
manager register regions along with the interrupt entry.
Also add the typec connector node for EUD which is attached to
EUD node via port. EUD is also attached to DWC3 node via port.
Also add the role-switch property to dwc3 node.

Signed-off-by: Souradeep Chowdhury <quic_schowdhu@quicinc.com>
---
 arch/arm64/boot/dts/qcom/sc7280.dtsi | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
index 3572399..baf1653 100644
--- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
@@ -2592,6 +2592,12 @@
 				phys = <&usb_2_hsphy>;
 				phy-names = "usb2-phy";
 				maximum-speed = "high-speed";
+				usb-role-switch;
+				port {
+					usb2_role_switch: endpoint {
+						remote-endpoint = <&eud_ep>;
+					};
+				};
 			};
 		};
 
@@ -2633,6 +2639,36 @@
 			interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
+		eud: eud@88e0000 {
+			compatible = "qcom,sc7280-eud","qcom,eud";
+			reg = <0 0x88e0000 0 0x2000>,
+			      <0 0x88e2000 0 0x1000>;
+			interrupts-extended = <&pdc 11 IRQ_TYPE_LEVEL_HIGH>;
+			ports {
+				port@0 {
+					eud_ep: endpoint {
+						remote-endpoint = <&usb2_role_switch>;
+					};
+				};
+				port@1 {
+					eud_con: endpoint {
+						remote-endpoint = <&con_eud>;
+					};
+				};
+			};
+		};
+
+		eud_typec: connector {
+			compatible = "usb-c-connector";
+			ports {
+				port@0 {
+					con_eud: endpoint {
+						remote-endpoint = <&eud_con>;
+					};
+				};
+			};
+		};
+
 		nsp_noc: interconnect@a0c0000 {
 			reg = <0 0x0a0c0000 0 0x10000>;
 			compatible = "qcom,sc7280-nsp-noc";
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH V0 2/2] arm64: dts: qcom: sc7280: Set the default dr_mode for usb2
  2022-04-06  9:33 [PATCH V0 0/2] DT changes for Embedded USB Debugger(EUD) Souradeep Chowdhury
  2022-04-06  9:33 ` [PATCH V0 1/2] arm64: dts: qcom: sc7280: Add EUD dt node and dwc3 connector Souradeep Chowdhury
@ 2022-04-06  9:33 ` Souradeep Chowdhury
  2022-04-08 13:37 ` [PATCH V0 0/2] DT changes for Embedded USB Debugger(EUD) patchwork-bot+linux-arm-msm
  2 siblings, 0 replies; 4+ messages in thread
From: Souradeep Chowdhury @ 2022-04-06  9:33 UTC (permalink / raw)
  To: linux-arm-msm, linux-usb, devicetree, pure.logic,
	bjorn.andersson, greg, robh
  Cc: linux-kernel, quic_rjendra, quic_saipraka, Souradeep Chowdhury

Set the default dr_mode for usb2 node to "otg" to enable
role-switch for EUD(Embedded USB Debugger) connector node.

Signed-off-by: Souradeep Chowdhury <quic_schowdhu@quicinc.com>
---
 arch/arm64/boot/dts/qcom/sc7280-idp.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dts b/arch/arm64/boot/dts/qcom/sc7280-idp.dts
index a7be133..6d3ff80 100644
--- a/arch/arm64/boot/dts/qcom/sc7280-idp.dts
+++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dts
@@ -90,7 +90,7 @@
 };
 
 &usb_2_dwc3 {
-	dr_mode = "host";
+	dr_mode = "otg";
 };
 
 &usb_2_hsphy {
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH V0 0/2] DT changes for Embedded USB Debugger(EUD)
  2022-04-06  9:33 [PATCH V0 0/2] DT changes for Embedded USB Debugger(EUD) Souradeep Chowdhury
  2022-04-06  9:33 ` [PATCH V0 1/2] arm64: dts: qcom: sc7280: Add EUD dt node and dwc3 connector Souradeep Chowdhury
  2022-04-06  9:33 ` [PATCH V0 2/2] arm64: dts: qcom: sc7280: Set the default dr_mode for usb2 Souradeep Chowdhury
@ 2022-04-08 13:37 ` patchwork-bot+linux-arm-msm
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2022-04-08 13:37 UTC (permalink / raw)
  To: Souradeep Chowdhury; +Cc: linux-arm-msm

Hello:

This series was applied to qcom/linux.git (for-next)
by Greg Kroah-Hartman <gregkh@linuxfoundation.org>:

On Wed, 6 Apr 2022 15:03:46 +0530 you wrote:
> This patch contains the DT changes for EUD from the QCOM tree.
> The DT changes have been reverted from USB tree to avoid
> conflicts. The DT changes for EUD should go through the QCOM
> tree.
> 
> Souradeep Chowdhury (2):
>   arm64: dts: qcom: sc7280: Add EUD dt node and dwc3 connector
>   arm64: dts: qcom: sc7280: Set the default dr_mode for usb2
> 
> [...]

Here is the summary with links:
  - [V0,1/2] arm64: dts: qcom: sc7280: Add EUD dt node and dwc3 connector
    https://git.kernel.org/qcom/c/a0c68e493007
  - [V0,2/2] arm64: dts: qcom: sc7280: Set the default dr_mode for usb2
    (no matching commit)

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-08 13:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06  9:33 [PATCH V0 0/2] DT changes for Embedded USB Debugger(EUD) Souradeep Chowdhury
2022-04-06  9:33 ` [PATCH V0 1/2] arm64: dts: qcom: sc7280: Add EUD dt node and dwc3 connector Souradeep Chowdhury
2022-04-06  9:33 ` [PATCH V0 2/2] arm64: dts: qcom: sc7280: Set the default dr_mode for usb2 Souradeep Chowdhury
2022-04-08 13:37 ` [PATCH V0 0/2] DT changes for Embedded USB Debugger(EUD) patchwork-bot+linux-arm-msm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.