arm64: dts: ti: k3-am68-sk: Add DT node for USB
authorSinthu Raja <sinthu.raja@ti.com>
Thu, 21 Sep 2023 10:00:39 +0000 (15:30 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Thu, 5 Oct 2023 15:14:41 +0000 (20:44 +0530)
AM68 Starter kit has a USB3 hub that connects to the SerDes0 Lane 2.
Update the SerDes configuration to support USB3.

Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Link: https://lore.kernel.org/r/20230921100039.19897-4-r-gunasekaran@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts

index 81c2307c77f9c754b76544f4fa496f218402c1e5..1e1a82f9d2b81364e1612dd26172d91b21443444 100644 (file)
                cdns,phy-type = <PHY_TYPE_PCIE>;
                resets = <&serdes_wiz0 1>, <&serdes_wiz0 2>;
        };
+
+       serdes0_usb_link: phy@2 {
+               status = "okay";
+               reg = <2>;
+               cdns,num-lanes = <1>;
+               #phy-cells = <0>;
+               cdns,phy-type = <PHY_TYPE_USB3>;
+               resets = <&serdes_wiz0 3>;
+       };
 };
 
 &pcie1_rc {
        phy-names = "pcie-phy";
        num-lanes = <2>;
 };
+
+&usb_serdes_mux {
+       idle-states = <0>; /* USB0 to SERDES lane 2 */
+};
+
+&usbss0 {
+       status = "okay";
+       pinctrl-0 = <&main_usbss0_pins_default>;
+       pinctrl-names = "default";
+       ti,vbus-divider;
+};
+
+&usb0 {
+       dr_mode = "host";
+       maximum-speed = "super-speed";
+       phys = <&serdes0_usb_link>;
+       phy-names = "cdns3,usb3-phy";
+};