2023-09-22 05:27:33

by Ravi Gunasekaran

[permalink] [raw]
Subject: [PATCH 0/3] AM68 SK: Add support for PCIe and USB

This series adds support for PCIe and USB interfaces.

Sinthu Raja (3):
arm64: dts: ti: Add USB Type C swap defines for J721S2 SoC
arm64: dts: ti: k3-am68-sk: Add DT node for PCIe
arm64: dts: ti: k3-am68-sk: Add DT node for USB

.../boot/dts/ti/k3-am68-sk-base-board.dts | 56 +++++++++++++++++++
arch/arm64/boot/dts/ti/k3-serdes.h | 2 +-
2 files changed, 57 insertions(+), 1 deletion(-)


base-commit: 940fcc189c51032dd0282cbee4497542c982ac59
--
2.17.1


2023-09-22 15:03:48

by Ravi Gunasekaran

[permalink] [raw]
Subject: [PATCH 3/3] arm64: dts: ti: k3-am68-sk: Add DT node for USB

From: Sinthu Raja <[email protected]>

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 <[email protected]>
Signed-off-by: Ravi Gunasekaran <[email protected]>
---
.../boot/dts/ti/k3-am68-sk-base-board.dts | 27 +++++++++++++++++++
1 file changed, 27 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts
index 81c2307c77f9..1e1a82f9d2b8 100644
--- a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts
@@ -573,6 +573,15 @@
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 {
@@ -582,3 +591,21 @@
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";
+};
--
2.17.1

2023-10-03 11:03:20

by Vignesh Raghavendra

[permalink] [raw]
Subject: Re: [PATCH 0/3] AM68 SK: Add support for PCIe and USB

Hi Ravi Gunasekaran,

On Thu, 21 Sep 2023 15:30:36 +0530, Ravi Gunasekaran wrote:
> This series adds support for PCIe and USB interfaces.
>
> Sinthu Raja (3):
> arm64: dts: ti: Add USB Type C swap defines for J721S2 SoC
> arm64: dts: ti: k3-am68-sk: Add DT node for PCIe
> arm64: dts: ti: k3-am68-sk: Add DT node for USB
>
> [...]

I have applied the following to branch ti-k3-dts-next on [1].
Thank you!

[1/3] arm64: dts: ti: Add USB Type C swap defines for J721S2 SoC
commit: 97bc20997109590bb17f96f00dbde15cfda9a4b0
[2/3] arm64: dts: ti: k3-am68-sk: Add DT node for PCIe
commit: 70beb4c1ab8613356ea3d6ae9f7e8a143e1474f0
[3/3] arm64: dts: ti: k3-am68-sk: Add DT node for USB
commit: 562fc2b011e213b5a127cda523110f0698770606

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Vignesh