Skip to content

Commit ff7b5e9

Browse files
Dasnavis Sabiyanmenon
authored andcommitted
arm64: dts: ti: k3-am69-sk: Add USB SuperSpeed support
AM69 SK board has two stacked USB3 connectors: 1. USB3 (Stacked TypeA + TypeC) 2. USB3 TypeA Hub interfaced through TUSB8041. The board uses SERDES0 Lane 3 for USB3 IP. So update the SerDes lane info for PCIe and USB. Add the pin mux data and enable USB 3.0 support with its respective SERDES settings. Signed-off-by: Dasnavis Sabiya <[email protected]> Signed-off-by: Enric Balletbo i Serra <[email protected]> Reviewed-by: Roger Quadros <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nishanth Menon <[email protected]>
1 parent eb2008a commit ff7b5e9

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

arch/arm64/boot/dts/ti/k3-am69-sk.dts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,12 @@
484484
>;
485485
};
486486

487+
main_usbss0_pins_default: main-usbss0-default-pins {
488+
pinctrl-single,pins = <
489+
J784S4_IOPAD(0x0ec, PIN_OUTPUT, 6) /* (AN37) TIMER_IO1.USB0_DRVVBUS */
490+
>;
491+
};
492+
487493
};
488494

489495
&wkup_pmx0 {
@@ -1307,6 +1313,14 @@
13071313
cdns,phy-type = <PHY_TYPE_PCIE>;
13081314
resets = <&serdes_wiz0 1>, <&serdes_wiz0 2>, <&serdes_wiz0 3>;
13091315
};
1316+
1317+
serdes0_usb_link: phy@3 {
1318+
reg = <3>;
1319+
cdns,num-lanes = <1>;
1320+
#phy-cells = <0>;
1321+
cdns,phy-type = <PHY_TYPE_USB3>;
1322+
resets = <&serdes_wiz0 4>;
1323+
};
13101324
};
13111325

13121326
&serdes_wiz1 {
@@ -1347,3 +1361,22 @@
13471361
phy-names = "pcie-phy";
13481362
num-lanes = <1>;
13491363
};
1364+
1365+
&usb_serdes_mux {
1366+
idle-states = <0>; /* USB0 to SERDES0 */
1367+
};
1368+
1369+
&usbss0 {
1370+
status = "okay";
1371+
pinctrl-0 = <&main_usbss0_pins_default>;
1372+
pinctrl-names = "default";
1373+
ti,vbus-divider;
1374+
};
1375+
1376+
&usb0 {
1377+
status = "okay";
1378+
dr_mode = "otg";
1379+
maximum-speed = "super-speed";
1380+
phys = <&serdes0_usb_link>;
1381+
phy-names = "cdns3,usb3-phy";
1382+
};

0 commit comments

Comments
 (0)