[PATCH v4 0/7] Add PCIe, SERDES and USB DT support for J722S

From: Siddharth Vadapalli
Date: Sat Jun 01 2024 - 08:16:45 EST


Hello,

This series adds the device-tree support for enabling PCIe and USB
functionality on J722S-EVM.

Since AM62P and J722S SoCs share most of the peripherals, the files have
been renamed to indicate the same. The main domain peripherals on both
SoCs that aren't shared are present in the "soc-main.dtsi" files.
This change has been made based on Roger's feedback at:
https://lore.kernel.org/r/f52d9569-a399-422f-9cf0-b0bf69b64d18@xxxxxxxxxx/

This series has been tested on J722S-EVM for PCIe and USB functionality:
https://gist.github.com/Siddharth-Vadapalli-at-TI/bb20e30a4a9e29e1a6772915c13dd214
Sanity testing on AM62P5-SK with this series:
https://gist.github.com/Siddharth-Vadapalli-at-TI/a8764b3180d20d7e380b167637136676

v3:
https://lore.kernel.org/r/20240524090514.152727-1-s-vadapalli@xxxxxx/
Changes since v3:
- Rebased series on next-20240531.
- Renamed files to indicate that they are shared between AM62P and J722S:
k3-am62p.dtsi => k3-am62p-j722s-common.dtsi
k3-am62p-main.dtsi => k3-am62p-j722s-common-main.dtsi
k3-am62p-mcu.dtsi => k3-am62p-j722s-common-mcu.dtsi
k3-am62p-wakeup.dtsi => k3-am62p-j722s-common-wakeup.dtsi
- Moved AM62P specific USB1 from the shared
k3-am62p-j722s-common-main.dtsi to AM62P specific k3-am62p-main.dtsi
- Updated k3-j722s.dtsi to include k3-am62p-j722s-common.dtsi instead of
including k3-am62p5.dtsi
- Added J722S specific main domain peripherals namely USB1, PCIe and
SERDES in k3-j722s-main.dtsi

Regards,
Siddharth.

Siddharth Vadapalli (7):
arm64: dts: ti: am62p: Rename am62p-{}.dtsi to
am62p-j722s-common-{}.dtsi
arm64: dts: ti: k3-am62p-j722s: Move AM62P specific USB1 to
am62p-main.dtsi
arm64: dts: ti: k3-j722s: Add main domain peripherals specific to
J722S
arm64: dts: ti: k3-j722s: Switch to k3-am62p-j722s-common.dtsi
arm64: dts: ti: k3-serdes: Add SERDES0/SERDES1 lane-muxing macros for
J722S
arm64: dts: ti: k3-j722s-main: Add SERDES and PCIe support
arm64: dts: ti: k3-j722s: Enable PCIe and USB support on J722S-EVM

.../dts/ti/k3-am62p-j722s-common-main.dtsi | 1067 +++++++++++++++++
...cu.dtsi => k3-am62p-j722s-common-mcu.dtsi} | 2 +-
...dtsi => k3-am62p-j722s-common-wakeup.dtsi} | 2 +-
...-am62p.dtsi => k3-am62p-j722s-common.dtsi} | 6 +-
arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 1060 ----------------
arch/arm64/boot/dts/ti/k3-am62p5.dtsi | 3 +-
arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 72 ++
arch/arm64/boot/dts/ti/k3-j722s-main.dtsi | 170 +++
arch/arm64/boot/dts/ti/k3-j722s.dtsi | 97 +-
arch/arm64/boot/dts/ti/k3-serdes.h | 8 +
10 files changed, 1420 insertions(+), 1067 deletions(-)
create mode 100644 arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi
rename arch/arm64/boot/dts/ti/{k3-am62p-mcu.dtsi => k3-am62p-j722s-common-mcu.dtsi} (98%)
rename arch/arm64/boot/dts/ti/{k3-am62p-wakeup.dtsi => k3-am62p-j722s-common-wakeup.dtsi} (97%)
rename arch/arm64/boot/dts/ti/{k3-am62p.dtsi => k3-am62p-j722s-common.dtsi} (97%)
create mode 100644 arch/arm64/boot/dts/ti/k3-j722s-main.dtsi

--
2.40.1