arm64: dts: ti: k3-am625-phyboard-lyra-rdk: Add USB-C
authorGarrett Giordano <ggiordano@phytec.com>
Thu, 25 Apr 2024 15:25:58 +0000 (08:25 -0700)
committerNishanth Menon <nm@ti.com>
Mon, 29 Apr 2024 19:35:29 +0000 (14:35 -0500)
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>
arch/arm64/boot/dts/ti/k3-am625-phyboard-lyra-rdk.dts

index d7b8aa607c8cd3b55035fa2f5c295cfa72951b5c..50d2573c840ee9bb553d778e07b4e0aad279ef55 100644 (file)
                                  "GPIO6_ETH1_USER_RESET", "GPIO7_AUDIO_USER_RESET";
        };
 
+       usb-pd@22 {
+               compatible = "ti,tps6598x";
+               reg = <0x22>;
+
+               connector {
+                       compatible = "usb-c-connector";
+                       label = "USB-C";
+                       self-powered;
+                       data-role = "dual";
+                       power-role = "sink";
+                       port {
+                               usb_con_hs: endpoint {
+                                       remote-endpoint = <&typec_hs>;
+                               };
+                       };
+               };
+       };
+
        sii9022: bridge-hdmi@39 {
                compatible = "sil,sii9022";
                reg = <0x39>;
 };
 
 &usb0 {
-       dr_mode = "peripheral";
+       usb-role-switch;
+
+       port {
+               typec_hs: endpoint {
+                       remote-endpoint = <&usb_con_hs>;
+               };
+       };
 };
 
 &usb1 {