
Hi Tom,
TI has one SDK release per SoC. If we go this way we will have to release multiple SDK release for each board. It doesn't seem feasible to release different SDK based on same SoC as we have other boards based on AM62x SoC which we planning to add upstream support in future. In past, we followed similar for jacinto platforms.
The Xilinx way you have mentioned won't work for TI as Xilinx has only one platform for upstream support.
I can evm.c changes to different files under board detection macro "CONFIG_TI_I2C_BOARD_DETECT" in different file to keep board code clean and easy to follow.
Regards, Nitin
On 4/26/2023 3:08 PM, Nitin Yadav wrote:
This series adds support of AM62x LP SK. The AM62x LP SK board is similar to AM62x SK but has some significant changes that requires different set of device tree at each stage of bootloader.
First 5 patches add support and sync device tree with linus master. Next 3 patches perform board detection and select correct dtb based on board ID. The last 2 patches enable config to support for building multiple dtb.
Nitin Yadav (10): arm: dts: Makefile: Add AM62x LP SK device tree arm: dts: Add support for AM62x LP SK arm: dts: Sync DT to add support of AM62x LP SK arm: dts: Add support for AM62x LP SK at R5 SPL stage arm: dts: k3-am625-generic: Add generic DT for pre R5 SPL board: ti: am62x: am62x_env: Update env to select correct dtb arm: mach-k3: am625_init: Update board specific API name to K3 generic API's board: ti: am62x: Add support for detecting multiple device trees configs: am62x_lpsk_a53_defconfig: Enable support for building multiple dtbs into FIT configs: am62x_evm_r5_defconfig: Enable support for building multiple dtbs at R5 SPL
arch/arm/dts/Makefile | 7 +- arch/arm/dts/k3-am62-lp-sk-u-boot.dtsi | 7 + arch/arm/dts/k3-am62-lp-sk.dts | 232 ++ arch/arm/dts/k3-am62-main.dtsi | 368 ++- arch/arm/dts/k3-am62-r5-lp-sk.dts | 12 + arch/arm/dts/k3-am625-generic.dts | 70 + arch/arm/dts/k3-am625-sk-u-boot.dtsi | 8 + arch/arm/dts/k3-am625-sk.dts | 5 +- arch/arm/dts/k3-am62x-ddr-lp4-50-800-800.dtsi | 2190 +++++++++++++++++ arch/arm/dts/k3-am62x-r5-sk-common.dtsi | 86 + arch/arm/dts/k3-am62x-sk-common-u-boot.dtsi | 194 ++ arch/arm/dts/k3-am62x-sk-common.dtsi | 430 ++++ arch/arm/mach-k3/am625_init.c | 34 +- arch/arm/mach-k3/include/mach/sys_proto.h | 1 + board/ti/am62x/am62x.env | 4 + board/ti/am62x/evm.c | 159 ++ configs/am62x_evm_a53_defconfig | 10 + configs/am62x_evm_r5_defconfig | 8 +- 18 files changed, 3783 insertions(+), 42 deletions(-) create mode 100644 arch/arm/dts/k3-am62-lp-sk-u-boot.dtsi create mode 100644 arch/arm/dts/k3-am62-lp-sk.dts create mode 100644 arch/arm/dts/k3-am62-r5-lp-sk.dts create mode 100644 arch/arm/dts/k3-am625-generic.dts create mode 100644 arch/arm/dts/k3-am62x-ddr-lp4-50-800-800.dtsi create mode 100644 arch/arm/dts/k3-am62x-r5-sk-common.dtsi create mode 100644 arch/arm/dts/k3-am62x-sk-common-u-boot.dtsi create mode 100644 arch/arm/dts/k3-am62x-sk-common.dtsi