Skip to content

Commit 8e55864

Browse files
ggiordano32nmenon
authored andcommitted
arm64: dts: ti: k3-am625-phyboard-lyra-rdk: Add USB-C
The USB-C PD manages plug orientation, power delivery, and our endpoint for the USB interface. Add this node and include its endpoint. Configure USB0 for role-switching and wire it to our USB-C PD endpoint. Signed-off-by: Garrett Giordano <ggiordano@phytec.com> Reviewed-by: Wadim Egorov <w.egorov@phytec.de> Link: https://lore.kernel.org/r/20240425152558.485763-1-ggiordano@phytec.com Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent 1142985 commit 8e55864

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

arch/arm64/boot/dts/ti/k3-am625-phyboard-lyra-rdk.dts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,24 @@
348348
"GPIO6_ETH1_USER_RESET", "GPIO7_AUDIO_USER_RESET";
349349
};
350350

351+
usb-pd@22 {
352+
compatible = "ti,tps6598x";
353+
reg = <0x22>;
354+
355+
connector {
356+
compatible = "usb-c-connector";
357+
label = "USB-C";
358+
self-powered;
359+
data-role = "dual";
360+
power-role = "sink";
361+
port {
362+
usb_con_hs: endpoint {
363+
remote-endpoint = <&typec_hs>;
364+
};
365+
};
366+
};
367+
};
368+
351369
sii9022: bridge-hdmi@39 {
352370
compatible = "sil,sii9022";
353371
reg = <0x39>;
@@ -449,7 +467,13 @@
449467
};
450468

451469
&usb0 {
452-
dr_mode = "peripheral";
470+
usb-role-switch;
471+
472+
port {
473+
typec_hs: endpoint {
474+
remote-endpoint = <&usb_con_hs>;
475+
};
476+
};
453477
};
454478

455479
&usb1 {

0 commit comments

Comments
 (0)