Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Garrett Giordano and committed by
Nishanth Menon
8e558642 1142985a

+25 -1
+25 -1
arch/arm64/boot/dts/ti/k3-am625-phyboard-lyra-rdk.dts
··· 348 348 "GPIO6_ETH1_USER_RESET", "GPIO7_AUDIO_USER_RESET"; 349 349 }; 350 350 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 + 351 369 sii9022: bridge-hdmi@39 { 352 370 compatible = "sil,sii9022"; 353 371 reg = <0x39>; ··· 467 449 }; 468 450 469 451 &usb0 { 470 - dr_mode = "peripheral"; 452 + usb-role-switch; 453 + 454 + port { 455 + typec_hs: endpoint { 456 + remote-endpoint = <&usb_con_hs>; 457 + }; 458 + }; 471 459 }; 472 460 473 461 &usb1 {