public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] arm64: dts: ti: k3-am62a7-sk: Enable dual role support for Type-C port
@ 2023-07-25 10:36 Ravi Gunasekaran
  2023-08-05 18:57 ` Roger Quadros
  2023-08-05 19:12 ` Nishanth Menon
  0 siblings, 2 replies; 3+ messages in thread
From: Ravi Gunasekaran @ 2023-07-25 10:36 UTC (permalink / raw)
  To: nm, vigneshr, kristo, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	rogerq
  Cc: linux-arm-kernel, devicetree, linux-kernel, srk, r-gunasekaran

USB0 is interfaced with a Type-C DRP connector and is managed via a
USB PD controller. Add support for the Type-C port with dual data
and power sink role.

Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
---
Changes since v1:
* Added space between node name and ":"
* Changed the node name from "tps6598x" to "usb-power-controller"

v1: https://lore.kernel.org/all/20230724115133.2226-1-r-gunasekaran@ti.com/

arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 33 +++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts
index d2cca6182738..cff283c75f8e 100644
--- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts
@@ -226,6 +226,24 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&main_i2c0_pins_default>;
 	clock-frequency = <400000>;
+
+	typec_pd0: usb-power-controller@3f {
+		compatible = "ti,tps6598x";
+		reg = <0x3f>;
+
+		connector {
+			compatible = "usb-c-connector";
+			label = "USB-C";
+			self-powered;
+			data-role = "dual";
+			power-role = "sink";
+			port {
+				usb_con_hs: endpoint {
+					remote-endpoint = <&usb0_hs_ep>;
+				};
+			};
+		};
+	};
 };
 
 &main_i2c1 {
@@ -290,6 +308,21 @@
 	status = "reserved";
 };
 
+&usbss0 {
+	status = "okay";
+	ti,vbus-divider;
+};
+
+&usb0 {
+	usb-role-switch;
+
+	port {
+		usb0_hs_ep: endpoint {
+			remote-endpoint = <&usb_con_hs>;
+		};
+	};
+};
+
 &usbss1 {
 	status = "okay";
 };

base-commit: 1e25dd7772483f477f79986d956028e9f47f990a
-- 
2.17.1


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

* Re: [PATCH v2] arm64: dts: ti: k3-am62a7-sk: Enable dual role support for Type-C port
  2023-07-25 10:36 [PATCH v2] arm64: dts: ti: k3-am62a7-sk: Enable dual role support for Type-C port Ravi Gunasekaran
@ 2023-08-05 18:57 ` Roger Quadros
  2023-08-05 19:12 ` Nishanth Menon
  1 sibling, 0 replies; 3+ messages in thread
From: Roger Quadros @ 2023-08-05 18:57 UTC (permalink / raw)
  To: Ravi Gunasekaran, nm, vigneshr, kristo, robh+dt,
	krzysztof.kozlowski+dt, conor+dt
  Cc: linux-arm-kernel, devicetree, linux-kernel, srk



On 25/07/2023 13:36, Ravi Gunasekaran wrote:
> USB0 is interfaced with a Type-C DRP connector and is managed via a
> USB PD controller. Add support for the Type-C port with dual data
> and power sink role.
> 
> Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>

Reviewed-by: Roger Quadros <rogerq@kernel.org>

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

* Re: [PATCH v2] arm64: dts: ti: k3-am62a7-sk: Enable dual role support for Type-C port
  2023-07-25 10:36 [PATCH v2] arm64: dts: ti: k3-am62a7-sk: Enable dual role support for Type-C port Ravi Gunasekaran
  2023-08-05 18:57 ` Roger Quadros
@ 2023-08-05 19:12 ` Nishanth Menon
  1 sibling, 0 replies; 3+ messages in thread
From: Nishanth Menon @ 2023-08-05 19:12 UTC (permalink / raw)
  To: vigneshr, kristo, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	rogerq, Ravi Gunasekaran
  Cc: Nishanth Menon, linux-arm-kernel, devicetree, linux-kernel, srk

Hi Ravi Gunasekaran,

On Tue, 25 Jul 2023 16:06:51 +0530, Ravi Gunasekaran wrote:
> USB0 is interfaced with a Type-C DRP connector and is managed via a
> USB PD controller. Add support for the Type-C port with dual data
> and power sink role.
> 
> 

I have applied the following to branch ti-k3-dts-next on [1].
Thank you!

[1/1] arm64: dts: ti: k3-am62a7-sk: Enable dual role support for Type-C port
      commit: 5a5cf3bdda04fe72440aa837c9451410d62ffa2f

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D


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

end of thread, other threads:[~2023-08-05 19:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-25 10:36 [PATCH v2] arm64: dts: ti: k3-am62a7-sk: Enable dual role support for Type-C port Ravi Gunasekaran
2023-08-05 18:57 ` Roger Quadros
2023-08-05 19:12 ` Nishanth Menon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox