Skip to contentSkip to conversation

TI: Add support for AM62 SoC

PATCH In review Vignesh Raghavendra 4 participants 19 messages May 25, 2022 – Jun 10, 2022

Subsystems (10)
lore
Share & tools
lore

Vignesh Raghavendra

author maintainer
#0 lore raw

v2 cover TI: Add support for AM62 SoC

This adds basic support for TI's new AM62 family of SoCs and AM625 Starter Kit EVM with SD boot and UART boot.

Board support, dts and configs are intentionally kept small to serve as example for future board bringups based on this SoC.

Additional peripheral support will be posted separately

All bindings and DT patches are in linux-next

I have dropped review tags from previous version due to quite a few changes as mentioned below

v2:
* Patch 9,10,11 are trimmed down to bare minimum
* Introduce patch to setup DMA static data for R5 SPL TISCI (patch 7)
* Sync with kernel dts.
* Drop unnecessary header inclusions (<common.h>)

v1: lore.kernel.org/r/[email protected]

Aswath Govindraju (1):
drivers: mmc: am654_sdhci: Add new compatible for AM62 SoC

Nishanth Menon (1):
arm: dts: Add support for AM62-SK

Suman Anna (6):
dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM62
soc: ti: k3-socinfo: Add entry for AM62X SoC family
arm: mach-k3: Introduce the basic files to support AM62
arm: mach-k3: am62: Introduce autogenerated SoC data
arm: dts: Introduce base AM62 SoC dtsi files
board: ti: Introduce the basic files to support AM62 SK board

Vignesh Raghavendra (4):
dma: ti: Add PSIL data for AM62x DMASS
firmware: ti_sci_static_data: add static DMA chan data
configs: Add configs for AM62x SK
doc: ti: Add readme for AM62x SK

 arch/arm/dts/Makefile                         |    3 +
 arch/arm/dts/k3-am62-ddr.dtsi                 |   11 +
 arch/arm/dts/k3-am62-main.dtsi                |  533 ++++
 arch/arm/dts/k3-am62-mcu.dtsi                 |   56 +
 arch/arm/dts/k3-am62-wakeup.dtsi              |   41 +
 arch/arm/dts/k3-am62.dtsi                     |  105 +
 arch/arm/dts/k3-am625-r5-sk.dts               |  140 ++
 arch/arm/dts/k3-am625-sk-u-boot.dtsi          |  100 +
 arch/arm/dts/k3-am625-sk.dts                  |  150 ++
 arch/arm/dts/k3-am625.dtsi                    |  103 +
 arch/arm/dts/k3-am62x-sk-ddr4-1600MTs.dtsi    | 2189 +++++++++++++++++
 arch/arm/mach-k3/Kconfig                      |   10 +-
 arch/arm/mach-k3/Makefile                     |    1 +
 arch/arm/mach-k3/am625_init.c                 |  271 ++
 arch/arm/mach-k3/am62x/Makefile               |    6 +
 arch/arm/mach-k3/am62x/clk-data.c             |  366 +++
 arch/arm/mach-k3/am62x/dev-data.c             |   78 +
 arch/arm/mach-k3/arm64-mmu.c                  |    4 +-
 arch/arm/mach-k3/include/mach/am62_hardware.h |   75 +
 arch/arm/mach-k3/include/mach/am62_spl.h      |   48 +
 arch/arm/mach-k3/include/mach/hardware.h      |    4 +
 arch/arm/mach-k3/include/mach/spl.h           |    5 +
 board/ti/am62x/Kconfig                        |   59 +
 board/ti/am62x/MAINTAINERS                    |    8 +
 board/ti/am62x/Makefile                       |    8 +
 board/ti/am62x/evm.c                          |   39 +
 configs/am62x_evm_a53_defconfig               |   71 +
 configs/am62x_evm_r5_defconfig                |   91 +
 doc/board/ti/am62x_sk.rst                     |  231 ++
 doc/board/ti/index.rst                        |    1 +
 drivers/clk/ti/clk-k3.c                       |    6 +
 drivers/dma/ti/Makefile                       |    1 +
 drivers/dma/ti/k3-psil-am62.c                 |   50 +
 drivers/dma/ti/k3-psil-priv.h                 |    1 +
 drivers/dma/ti/k3-psil.c                      |    2 +
 drivers/firmware/ti_sci_static_data.h         |   13 +
 drivers/mmc/am654_sdhci.c                     |    4 +
 drivers/power/domain/ti-power-domain.c        |    6 +
 drivers/ram/Kconfig                           |    1 +
 drivers/soc/soc_ti_k3.c                       |    4 +
 include/configs/am62x_evm.h                   |  106 +
 include/dt-bindings/pinctrl/k3.h              |    3 +
 include/k3-clk.h                              |    1 +
 include/k3-dev.h                              |    1 +
 44 files changed, 5003 insertions(+), 3 deletions(-)
 create mode 100644 arch/arm/dts/k3-am62-ddr.dtsi
 create mode 100644 arch/arm/dts/k3-am62-main.dtsi
 create mode 100644 arch/arm/dts/k3-am62-mcu.dtsi
 create mode 100644 arch/arm/dts/k3-am62-wakeup.dtsi
 create mode 100644 arch/arm/dts/k3-am62.dtsi
 create mode 100644 arch/arm/dts/k3-am625-r5-sk.dts
 create mode 100644 arch/arm/dts/k3-am625-sk-u-boot.dtsi
 create mode 100644 arch/arm/dts/k3-am625-sk.dts
 create mode 100644 arch/arm/dts/k3-am625.dtsi
 create mode 100644 arch/arm/dts/k3-am62x-sk-ddr4-1600MTs.dtsi
 create mode 100644 arch/arm/mach-k3/am625_init.c
 create mode 100644 arch/arm/mach-k3/am62x/Makefile
 create mode 100644 arch/arm/mach-k3/am62x/clk-data.c
 create mode 100644 arch/arm/mach-k3/am62x/dev-data.c
 create mode 100644 arch/arm/mach-k3/include/mach/am62_hardware.h
 create mode 100644 arch/arm/mach-k3/include/mach/am62_spl.h
 create mode 100644 board/ti/am62x/Kconfig
 create mode 100644 board/ti/am62x/MAINTAINERS
 create mode 100644 board/ti/am62x/Makefile
 create mode 100644 board/ti/am62x/evm.c
 create mode 100644 configs/am62x_evm_a53_defconfig
 create mode 100644 configs/am62x_evm_r5_defconfig
 create mode 100644 doc/board/ti/am62x_sk.rst
 create mode 100644 drivers/dma/ti/k3-psil-am62.c
 create mode 100644 include/configs/am62x_evm.h
Signature · 1 line
2.36.1
author maintainer
#1 lore raw

PATCH v2 1/12 drivers: mmc: am654_sdhci: Add new compatible for AM62 SoC

From: Aswath Govindraju <[email protected]>

The phy used in the 8 bit instance has been changed to the phy used in 4 bit instance on AM62 SoC. This implies the phy configuration required for both the instances of mmc are similar. Therefore, add a new compatible for AM62 SoC using the driver data of am64 4 bit instance.

---
 drivers/mmc/am654_sdhci.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/mmc/am654_sdhci.c +4 -0
index 4305967d78..42a6134364 100644
@@ -670,6 +670,10 @@ static const struct udevice_id am654_sdhci_ids[] = {
 		.compatible = "ti,am64-sdhci-4bit",
 		.data = (ulong)&sdhci_am64_4bit_drvdata,
 	},
+	{
+		.compatible = "ti,am62-sdhci",
+		.data = (ulong)&sdhci_am64_4bit_drvdata,
+	},
 	{ }
 };
 
Signature · 1 line
2.36.1
Reviewed-by on v2 1/12
#2 lore raw

Re: [PATCH v2 01/12] drivers: mmc: am654_sdhci: Add new compatible for AM62 SoC

Quoted 9 lines · Vignesh Raghavendra

From: Aswath Govindraju <[email protected]>

The phy used in the 8 bit instance has been changed to the phy used in 4 bit instance on AM62 SoC. This implies the phy configuration required for both the instances of mmc are similar. Therefore, add a new compatible for AM62 SoC using the driver data of am64 4 bit instance.

Best Regards,
Jaehoon Chung

Quoted 19 lines
---
 drivers/mmc/am654_sdhci.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/mmc/am654_sdhci.c +4 -0
index 4305967d78..42a6134364 100644
@@ -670,6 +670,10 @@ static const struct udevice_id am654_sdhci_ids[] = {
 		.compatible = "ti,am64-sdhci-4bit",
 		.data = (ulong)&sdhci_am64_4bit_drvdata,
 	},
+	{
+		.compatible = "ti,am62-sdhci",
+		.data = (ulong)&sdhci_am64_4bit_drvdata,
+	},
 	{ }
 };
 
#3 lore raw

Re: [PATCH v2 01/12] drivers: mmc: am654_sdhci: Add new compatible for AM62 SoC

In reply to Vignesh Raghavendra
Quoted 10 lines · Vignesh Raghavendra

From: Aswath Govindraju <[email protected]>

The phy used in the 8 bit instance has been changed to the phy used in 4 bit instance on AM62 SoC. This implies the phy configuration required for both the instances of mmc are similar. Therefore, add a new compatible for AM62 SoC using the driver data of am64 4 bit instance.

For the series, applied to u-boot/next, thanks!

Signature · 1 line
Tom
author maintainer
#4 lore raw

PATCH v2 2/12 dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM62

In reply to Vignesh Raghavendra

From: Suman Anna <[email protected]>

Add pinctrl macros for AM62x SoCs. These macro definitions are similar to that of previous platforms, but adding new definitions to avoid any naming confusions in the SoC dts files.

checkpatch insists the following error exists:
ERROR: Macros with complex values should be enclosed in parentheses

However, we do not need parentheses enclosing the values for this macro as we do intend it to generate two separate values as has been
done for other similar platforms.

---
 include/dt-bindings/pinctrl/k3.h | 3 +++
 1 file changed, 3 insertions(+)
include/dt-bindings/pinctrl/k3.h +3 -0
index 63e038e36c..a5204ab91d 100644
@@ -41,4 +41,7 @@
 #define J721S2_IOPAD(pa, val, muxmode)		(((pa) & 0x1fff)) ((val) | (muxmode))
 #define J721S2_WKUP_IOPAD(pa, val, muxmode)	(((pa) & 0x1fff)) ((val) | (muxmode))
 
+#define AM62X_IOPAD(pa, val, muxmode)		(((pa) & 0x1fff)) ((val) | (muxmode))
+#define AM62X_MCU_IOPAD(pa, val, muxmode)	(((pa) & 0x1fff)) ((val) | (muxmode))
+
 #endif
Signature · 1 line
2.36.1
author maintainer
#5 lore raw

PATCH v2 3/12 soc: ti: k3-socinfo: Add entry for AM62X SoC family

In reply to Vignesh Raghavendra

From: Suman Anna <[email protected]>

Add support for AM62x SoC identification.

---
 drivers/soc/soc_ti_k3.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/soc/soc_ti_k3.c +4 -0
index 965728e818..42344145f9 100644
@@ -15,6 +15,7 @@
 #define J7200			0xbb6d
 #define AM64X			0xbb38
 #define J721S2			0xbb75
+#define AM62X			0xbb7e
 
 #define JTAG_ID_VARIANT_SHIFT	28
 #define JTAG_ID_VARIANT_MASK	(0xf << 28)
@@ -49,6 +50,9 @@ static const char *get_family_string(u32 idreg)
 	case J721S2:
 		family = "J721S2";
 		break;
+	case AM62X:
+		family = "AM62X";
+		break;
 	default:
 		family = "Unknown Silicon";
 	};
Signature · 1 line
2.36.1
author maintainer
#7 lore raw

PATCH v2 4/12 arm: mach-k3: Introduce the basic files to support AM62

In reply to Vignesh Raghavendra

From: Suman Anna <[email protected]>

The AM62 SoC family is the follow on AM335x built on K3 Multicore SoC architecture platform, providing ultra-low-power modes, dual display, multi-sensor edge compute, security and other BOM-saving integration. The AM62 SoC targets broad market to enable applications such as Industrial HMI, PLC/CNC/Robot control, Medical Equipment, Building Automation, Appliances and more.

Some highlights of this SoC are:

* Quad-Cortex-A53s (running up to 1.4GHz) in a single cluster. Pin-to-pin compatible options for single and quad core are available.
* Cortex-M4F for general-purpose or safety usage.
* Dual display support, providing 24-bit RBG parallel interface and OLDI/LVDS-4 Lane x2, up to 200MHz pixel clock support for 2K display resolution.
* Selectable GPUsupport, up to 8GFLOPS, providing better user experience in 3D graphic display case and Android.
* PRU(Programmable Realtime Unit) support for customized programmable interfaces/IOs.
* Integrated Giga-bit Ethernet switch supporting up to a total of two external ports (TSN capable).
* 9xUARTs, 5xSPI, 6xI2C, 2xUSB2, 3xCAN-FD, 3x eMMC and SD, GPMC for NAND/FPGA connection, OSPI memory controller, 3xMcASP for audio, 1x CSI-RX-4L for Camera, eCAP/eQEP, ePWM, among other peripherals.
* Dedicated Centralized System Controller for Security, Power, and Resource Management.
* Multiple low power modes support, ex: Deep sleep,Standby, MCU-only, enabling battery powered system design.

AM625 is the first device of the family. Add DT bindings for the same.

More details can be found in the Technical Reference Manual:
https://www.ti.com/lit/pdf/spruiv7

---
 arch/arm/mach-k3/Kconfig                      |   9 +-
 arch/arm/mach-k3/Makefile                     |   1 +
 arch/arm/mach-k3/am625_init.c                 | 271 ++++++++++++++++++
 arch/arm/mach-k3/arm64-mmu.c                  |   4 +-
 arch/arm/mach-k3/include/mach/am62_hardware.h |  75 +++++
 arch/arm/mach-k3/include/mach/am62_spl.h      |  48 ++++
 arch/arm/mach-k3/include/mach/hardware.h      |   4 +
 arch/arm/mach-k3/include/mach/spl.h           |   5 +
 drivers/ram/Kconfig                           |   1 +
 9 files changed, 415 insertions(+), 3 deletions(-)
 create mode 100644 arch/arm/mach-k3/am625_init.c
 create mode 100644 arch/arm/mach-k3/include/mach/am62_hardware.h
 create mode 100644 arch/arm/mach-k3/include/mach/am62_spl.h
arch/arm/mach-k3/Kconfig +8 -1
index a01bf23514..0dc4f44fdd 100644
@@ -16,6 +16,9 @@ config SOC_K3_J721S2
 config SOC_K3_AM642
 	bool "TI's K3 based AM642 SoC Family Support"
 
+config SOC_K3_AM625
+	bool "TI's K3 based AM625 SoC Family Support"
+
 endchoice
 
 config SYS_SOC
@@ -26,6 +29,7 @@ config SYS_K3_NON_SECURE_MSRAM_SIZE
 	default 0x80000 if SOC_K3_AM6
 	default 0x100000 if SOC_K3_J721E || SOC_K3_J721S2
 	default 0x1c0000 if SOC_K3_AM642
+	default 0x3c000 if SOC_K3_AM625
 	help
 	  Describes the total size of the MCU or OCMC MSRAM present on
 	  the SoC in use. This doesn't specify the total size of SPL as
@@ -37,6 +41,7 @@ config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE
 	default 0x58000 if SOC_K3_AM6
 	default 0xc0000 if SOC_K3_J721E || SOC_K3_J721S2
 	default 0x180000 if SOC_K3_AM642
+	default 0x38000 if SOC_K3_AM625
 	help
 	  Describes the maximum size of the image that ROM can download
 	  from any boot media.
@@ -61,6 +66,7 @@ config SYS_K3_BOOT_PARAM_TABLE_INDEX
 	default 0x41cffbfc if SOC_K3_J721E
 	default 0x41cfdbfc if SOC_K3_J721S2
 	default 0x701bebfc if SOC_K3_AM642
+	default 0x43c3f290 if SOC_K3_AM625
 	help
 	  Address at which ROM stores the value which determines if SPL
 	  is booted up by primary boot media or secondary boot media.
@@ -129,6 +135,7 @@ config K3_SYSFW_IMAGE_MMCSD_RAW_MODE_PART
 config K3_SYSFW_IMAGE_SIZE_MAX
 	int "Amount of memory dynamically allocated for loading SYSFW blob"
 	depends on K3_LOAD_SYSFW
+	default 163840 if SOC_K3_AM625
 	default	278000
 	help
 	  Amount of memory (in bytes) reserved through dynamic allocation at
@@ -160,7 +167,7 @@ config K3_ATF_LOAD_ADDR
 
 config K3_DM_FW
 	bool "Separate DM firmware image"
-	depends on SPL && CPU_V7R && (SOC_K3_J721E || SOC_K3_J721S2) && !CLK_TI_SCI && !TI_SCI_POWER_DOMAIN
+	depends on SPL && CPU_V7R && (SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_AM625) && !CLK_TI_SCI && !TI_SCI_POWER_DOMAIN
 	default y
 	help
 	  Enabling this will indicate that the system has separate DM
arch/arm/mach-k3/Makefile +1 -0
index c0a6a9c87d..8459bef93b 100644
@@ -7,6 +7,7 @@ obj-$(CONFIG_SOC_K3_AM6) += am6_init.o
 obj-$(CONFIG_SOC_K3_J721E) += j721e_init.o j721e/ j7200/
 obj-$(CONFIG_SOC_K3_J721S2) += j721s2_init.o j721s2/
 obj-$(CONFIG_SOC_K3_AM642) += am642_init.o
+obj-$(CONFIG_SOC_K3_AM625) += am625_init.o am62x/
 obj-$(CONFIG_ARM64) += arm64-mmu.o
 obj-$(CONFIG_CPU_V7R) += r5_mpu.o lowlevel_init.o
 obj-$(CONFIG_TI_SECURE_DEVICE) += security.o
arch/arm/mach-k3/am625_init.c new file +271 -0

271 lines not on this page · raw message

arch/arm/mach-k3/arm64-mmu.c +2 -2
index 527e664318..12cb89335a 100644
@@ -222,7 +222,7 @@ struct mm_region *mem_map = j721s2_mem_map;
 
 #endif /* CONFIG_SOC_K3_J721S2 */
 
-#ifdef CONFIG_SOC_K3_AM642
+#if (CONFIG_IS_ENABLED(SOC_K3_AM642) || CONFIG_IS_ENABLED(SOC_K3_AM625))
 /* NR_DRAM_BANKS + 32bit IO + 64bit IO + terminator */
 #define NR_MMU_REGIONS	(CONFIG_NR_DRAM_BANKS + 3)
 
@@ -261,4 +261,4 @@ struct mm_region am64_mem_map[NR_MMU_REGIONS] = {
 };
 
 struct mm_region *mem_map = am64_mem_map;
-#endif /* CONFIG_SOC_K3_AM642 */
+#endif /* CONFIG_SOC_K3_AM642 || CONFIG_SOC_K3_AM625 */
arch/arm/mach-k3/include/mach/am62_hardware.h new file +75 -0

75 lines not on this page · raw message

arch/arm/mach-k3/include/mach/am62_spl.h new file +48 -0

48 lines not on this page · raw message

arch/arm/mach-k3/include/mach/hardware.h +4 -0
index 5c1265ffe9..7c6928d5da 100644
@@ -22,6 +22,10 @@
 #include "am64_hardware.h"
 #endif
 
+#ifdef CONFIG_SOC_K3_AM625
+#include "am62_hardware.h"
+#endif
+
 /* Assuming these addresses and definitions stay common across K3 devices */
 #define CTRLMMR_WKUP_JTAG_ID	0x43000014
 #define JTAG_ID_VARIANT_SHIFT	28
arch/arm/mach-k3/include/mach/spl.h +5 -0
index 8a61398529..17996f2938 100644
@@ -21,4 +21,9 @@
 #ifdef CONFIG_SOC_K3_AM642
 #include "am64_spl.h"
 #endif
+
+#ifdef CONFIG_SOC_K3_AM625
+#include "am62_spl.h"
+#endif
+
 #endif /* _ASM_ARCH_SPL_H_ */
drivers/ram/Kconfig +1 -0
index 709c916a2a..a4f9f1aad2 100644
@@ -64,6 +64,7 @@ choice
 
 	default K3_J721E_DDRSS if SOC_K3_J721E || SOC_K3_J721S2
 	default K3_AM64_DDRSS if SOC_K3_AM642
+	default K3_AM64_DDRSS if SOC_K3_AM625
 
 config K3_J721E_DDRSS
 	bool "Enable J721E DDRSS support"
Signature · 1 line
2.36.1
Reviewed-by on v2 4/12
#8 lore raw

Re: [PATCH v2 04/12] arm: mach-k3: Introduce the basic files to support AM62

Quoted 33 lines · Vignesh Raghavendra

From: Suman Anna <[email protected]>

The AM62 SoC family is the follow on AM335x built on K3 Multicore SoC architecture platform, providing ultra-low-power modes, dual display, multi-sensor edge compute, security and other BOM-saving integration. The AM62 SoC targets broad market to enable applications such as Industrial HMI, PLC/CNC/Robot control, Medical Equipment, Building Automation, Appliances and more.

Some highlights of this SoC are:

* Quad-Cortex-A53s (running up to 1.4GHz) in a single cluster. Pin-to-pin compatible options for single and quad core are available.
* Cortex-M4F for general-purpose or safety usage.
* Dual display support, providing 24-bit RBG parallel interface and OLDI/LVDS-4 Lane x2, up to 200MHz pixel clock support for 2K display resolution.
* Selectable GPUsupport, up to 8GFLOPS, providing better user experience in 3D graphic display case and Android.
* PRU(Programmable Realtime Unit) support for customized programmable interfaces/IOs.
* Integrated Giga-bit Ethernet switch supporting up to a total of two external ports (TSN capable).
* 9xUARTs, 5xSPI, 6xI2C, 2xUSB2, 3xCAN-FD, 3x eMMC and SD, GPMC for NAND/FPGA connection, OSPI memory controller, 3xMcASP for audio, 1x CSI-RX-4L for Camera, eCAP/eQEP, ePWM, among other peripherals.
* Dedicated Centralized System Controller for Security, Power, and Resource Management.
* Multiple low power modes support, ex: Deep sleep,Standby, MCU-only, enabling battery powered system design.

AM625 is the first device of the family. Add DT bindings for the same.

Quoted 8 lines

More details can be found in the Technical Reference Manual:
https://www.ti.com/lit/pdf/spruiv7

Signature · 1 line
Tom
author maintainer
#9 lore raw

PATCH v2 5/12 arm: mach-k3: am62: Introduce autogenerated SoC data

In reply to Vignesh Raghavendra

From: Suman Anna <[email protected]>

Introduce autogenerated SoC data support clk and device data for the AM62. Hook it upto to power-domain and clk frameworks of U-Boot.

---
 arch/arm/mach-k3/am62x/Makefile        |   6 +
 arch/arm/mach-k3/am62x/clk-data.c      | 366 +++++++++++++++++++++++++
 arch/arm/mach-k3/am62x/dev-data.c      |  78 ++++++
 drivers/clk/ti/clk-k3.c                |   6 +
 drivers/power/domain/ti-power-domain.c |   6 +
 include/k3-clk.h                       |   1 +
 include/k3-dev.h                       |   1 +
 7 files changed, 464 insertions(+)
 create mode 100644 arch/arm/mach-k3/am62x/Makefile
 create mode 100644 arch/arm/mach-k3/am62x/clk-data.c
 create mode 100644 arch/arm/mach-k3/am62x/dev-data.c
arch/arm/mach-k3/am62x/Makefile new file +6 -0
new file mode 100644
index 0000000000..d6c876df66
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier:	GPL-2.0+
+#
+# Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/
+
+obj-y += clk-data.o
+obj-y += dev-data.o
arch/arm/mach-k3/am62x/clk-data.c new file +366 -0

366 lines not on this page · raw message

arch/arm/mach-k3/am62x/dev-data.c new file +78 -0

78 lines not on this page · raw message

drivers/clk/ti/clk-k3.c +6 -0
index 74beb4d8eb..0dd65934b3 100644
@@ -73,6 +73,12 @@ static const struct soc_attr ti_k3_soc_clk_data[] = {
 		.family = "J721S2",
 		.data = &j721s2_clk_platdata,
 	},
+#endif
+#ifdef CONFIG_SOC_K3_AM625
+	{
+		.family = "AM62X",
+		.data = &am62x_clk_platdata,
+	},
 #endif
 	{ /* sentinel */ }
 };
drivers/power/domain/ti-power-domain.c +6 -0
index 292fff0dfb..a7f64d04f5 100644
@@ -86,6 +86,12 @@ static const struct soc_attr ti_k3_soc_pd_data[] = {
 		.family = "J721S2",
 		.data = &j721s2_pd_platdata,
 	},
+#endif
+#ifdef CONFIG_SOC_K3_AM625
+	{
+		.family = "AM62X",
+		.data = &am62x_pd_platdata,
+	},
 #endif
 	{ /* sentinel */ }
 };
include/k3-clk.h +1 -0
index 31292b59f2..371f077c44 100644
@@ -174,6 +174,7 @@ struct ti_k3_clk_platdata {
 extern const struct ti_k3_clk_platdata j721e_clk_platdata;
 extern const struct ti_k3_clk_platdata j7200_clk_platdata;
 extern const struct ti_k3_clk_platdata j721s2_clk_platdata;
+extern const struct ti_k3_clk_platdata am62x_clk_platdata;
 
 struct clk *clk_register_ti_pll(const char *name, const char *parent_name,
 				void __iomem *reg);
include/k3-dev.h +1 -0
index b46b8c3aab..87e873b9ce 100644
@@ -78,6 +78,7 @@ struct ti_k3_pd_platdata {
 extern const struct ti_k3_pd_platdata j721e_pd_platdata;
 extern const struct ti_k3_pd_platdata j7200_pd_platdata;
 extern const struct ti_k3_pd_platdata j721s2_pd_platdata;
+extern const struct ti_k3_pd_platdata am62x_pd_platdata;
 
 u8 ti_pd_state(struct ti_pd *pd);
 u8 lpsc_get_state(struct ti_lpsc *lpsc);
Signature · 1 line
2.36.1
author maintainer
#10 lore raw

PATCH v2 6/12 dma: ti: Add PSIL data for AM62x DMASS

In reply to Vignesh Raghavendra

Add PSIL data for AM62x SoC.

---
 drivers/dma/ti/Makefile       |  1 +
 drivers/dma/ti/k3-psil-am62.c | 50 +++++++++++++++++++++++++++++++++++
 drivers/dma/ti/k3-psil-priv.h |  1 +
 drivers/dma/ti/k3-psil.c      |  2 ++
 4 files changed, 54 insertions(+)
 create mode 100644 drivers/dma/ti/k3-psil-am62.c
drivers/dma/ti/Makefile +1 -0
index 6a4f4f1365..56f348700d 100644
@@ -7,3 +7,4 @@ k3-psil-data-$(CONFIG_SOC_K3_AM6) += k3-psil-am654.o
 k3-psil-data-$(CONFIG_SOC_K3_J721E) += k3-psil-j721e.o
 k3-psil-data-$(CONFIG_SOC_K3_J721S2) += k3-psil-j721s2.o
 k3-psil-data-$(CONFIG_SOC_K3_AM642) += k3-psil-am64.o
+k3-psil-data-$(CONFIG_SOC_K3_AM625) += k3-psil-am62.o
drivers/dma/ti/k3-psil-am62.c new file +50 -0

50 lines not on this page · raw message

drivers/dma/ti/k3-psil-priv.h +1 -0
index 77acaf2139..28078c6bd8 100644
@@ -41,5 +41,6 @@ extern struct psil_ep_map am654_ep_map;
 extern struct psil_ep_map j721e_ep_map;
 extern struct psil_ep_map j721s2_ep_map;
 extern struct psil_ep_map am64_ep_map;
+extern struct psil_ep_map am62_ep_map;
 
 #endif /* K3_PSIL_PRIV_H_ */
drivers/dma/ti/k3-psil.c +2 -0
index 8b2129d4f5..f1330bf4b0 100644
@@ -24,6 +24,8 @@ struct psil_endpoint_config *psil_get_ep_config(u32 thread_id)
 			soc_ep_map = &j721s2_ep_map;
 		else if (IS_ENABLED(CONFIG_SOC_K3_AM642))
 			soc_ep_map = &am64_ep_map;
+		else if (IS_ENABLED(CONFIG_SOC_K3_AM625))
+			soc_ep_map = &am62_ep_map;
 	}
 
 	if (thread_id & K3_PSIL_DST_THREAD_ID_OFFSET && soc_ep_map->dst) {
Signature · 1 line
2.36.1
author maintainer
#11 lore raw

PATCH v2 7/12 firmware: ti_sci_static_data: add static DMA chan data

In reply to Vignesh Raghavendra

Add range of DMA channels available for R5 SPL usage before DM firmware is loaded.

---
 drivers/firmware/ti_sci_static_data.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/firmware/ti_sci_static_data.h +13 -0
index e6a3b66c03..8529ef2900 100644
@@ -118,6 +118,19 @@ static struct ti_sci_resource_static_data rm_static_data[] = {
 };
 #endif /* CONFIG_TARGET_J721S2_R5_EVM */
 
+#if IS_ENABLED(CONFIG_SOC_K3_AM625)
+static struct ti_sci_resource_static_data rm_static_data[] = {
+	/* BC channels */
+	{
+		.dev_id = 26,
+		.subtype = 32,
+		.range_start = 18,
+		.range_num = 2,
+	},
+	{ },
+};
+#endif /* CONFIG_SOC_K3_AM625 */
+
 #else
 static struct ti_sci_resource_static_data rm_static_data[] = {
 	{ },
Signature · 1 line
2.36.1
author maintainer
#12 lore raw

PATCH v2 8/12 arm: dts: Introduce base AM62 SoC dtsi files

In reply to Vignesh Raghavendra

From: Suman Anna <[email protected]>

Introduce the basic AM62 SoC description dtsi files describing most peripherals as per kernel dts.

---
 arch/arm/dts/k3-am62-ddr.dtsi    |  11 +
 arch/arm/dts/k3-am62-main.dtsi   | 533 +++++++++++++++++++++++++++++++
 arch/arm/dts/k3-am62-mcu.dtsi    |  56 ++++
 arch/arm/dts/k3-am62-wakeup.dtsi |  41 +++
 arch/arm/dts/k3-am62.dtsi        | 105 ++++++
 arch/arm/dts/k3-am625.dtsi       | 103 ++++++
 6 files changed, 849 insertions(+)
 create mode 100644 arch/arm/dts/k3-am62-ddr.dtsi
 create mode 100644 arch/arm/dts/k3-am62-main.dtsi
 create mode 100644 arch/arm/dts/k3-am62-mcu.dtsi
 create mode 100644 arch/arm/dts/k3-am62-wakeup.dtsi
 create mode 100644 arch/arm/dts/k3-am62.dtsi
 create mode 100644 arch/arm/dts/k3-am625.dtsi
arch/arm/dts/k3-am62-ddr.dtsi new file +11 -0
new file mode 100644
index 0000000000..0a8ced8f38
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+#include "k3-am64-ddr.dtsi"
+&memorycontroller {
+	power-domains = <&k3_pds 170 TI_SCI_PD_SHARED>,
+			<&k3_pds 55 TI_SCI_PD_SHARED>;
+	clocks = <&k3_clks 170 0>, <&k3_clks 16 4>;
+};
arch/arm/dts/k3-am62-main.dtsi new file +533 -0

533 lines not on this page · raw message

arch/arm/dts/k3-am62-mcu.dtsi new file +56 -0

56 lines not on this page · raw message

arch/arm/dts/k3-am62-wakeup.dtsi new file +41 -0

41 lines not on this page · raw message

arch/arm/dts/k3-am62.dtsi new file +105 -0

105 lines not on this page · raw message

arch/arm/dts/k3-am625.dtsi new file +103 -0

103 lines not on this page · raw message

Signature · 1 line
2.36.1
author maintainer
#13 lore raw

PATCH v2 9/12 board: ti: Introduce the basic files to support AM62 SK board

In reply to Vignesh Raghavendra

From: Suman Anna <[email protected]>

Add basic support for AM62 SK. This has 2GB DDR.
Note that stack for R5 SPL is in OCRAM @ 0x7000ffff so that is away from BSS and does not step on BSS section

Add only the bare minimum required to support UART and SD.

---
 arch/arm/mach-k3/Kconfig |  1 +
 board/ti/am62x/Kconfig   | 59 ++++++++++++++++++++++++++++++++++++++++
 board/ti/am62x/Makefile  |  8 ++++++
 board/ti/am62x/evm.c     | 39 ++++++++++++++++++++++++++
 4 files changed, 107 insertions(+)
 create mode 100644 board/ti/am62x/Kconfig
 create mode 100644 board/ti/am62x/Makefile
 create mode 100644 board/ti/am62x/evm.c
arch/arm/mach-k3/Kconfig +1 -0
index 0dc4f44fdd..57f693e9a1 100644
@@ -178,6 +178,7 @@ config K3_DM_FW
 
 source "board/ti/am65x/Kconfig"
 source "board/ti/am64x/Kconfig"
+source "board/ti/am62x/Kconfig"
 source "board/ti/j721e/Kconfig"
 source "board/siemens/iot2050/Kconfig"
 source "board/ti/j721s2/Kconfig"
board/ti/am62x/Kconfig new file +59 -0

59 lines not on this page · raw message

board/ti/am62x/Makefile new file +8 -0
new file mode 100644
index 0000000000..f4c35edffa
@@ -0,0 +1,8 @@
+#
+# Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
+#	Suman Anna <[email protected]>
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y	+= evm.o
board/ti/am62x/evm.c new file +39 -0
new file mode 100644
index 0000000000..4dd5e64299
@@ -0,0 +1,39 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Board specific initialization for AM62x platforms
+ *
+ * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
+ *	Suman Anna <[email protected]>
+ *
+ */
+
+#include <asm/io.h>
+#include <spl.h>
+#include <fdt_support.h>
+#include <asm/arch/hardware.h>
+#include <asm/arch/sys_proto.h>
+#include <env.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int board_init(void)
+{
+	return 0;
+}
+
+int dram_init(void)
+{
+	gd->ram_size = 0x80000000;
+
+	return 0;
+}
+
+int dram_init_banksize(void)
+{
+	/* Bank 0 declares the memory available in the DDR low region */
+	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].size = 0x80000000;
+	gd->ram_size = 0x80000000;
+
+	return 0;
+}
Signature · 1 line
2.36.1
Reviewed-by on v2 9/12
#14 lore raw

Re: [PATCH v2 09/12] board: ti: Introduce the basic files to support AM62 SK board

Quoted 6 lines · Vignesh Raghavendra

From: Suman Anna <[email protected]>

Add basic support for AM62 SK. This has 2GB DDR.
Note that stack for R5 SPL is in OCRAM @ 0x7000ffff so that is away from BSS and does not step on BSS section

Quoted 6 lines

Add only the bare minimum required to support UART and SD.

Signature · 1 line
Tom
author maintainer
#15 lore raw

PATCH v2 10/12 arm: dts: Add support for AM62-SK

In reply to Vignesh Raghavendra

From: Nishanth Menon <[email protected]>

AM62 StarterKit (SK) board is a low cost, small form factor board designed for TI’s AM625 SoC. It supports the following interfaces:
* 2 GB DDR4 RAM
* x2 Gigabit Ethernet interfaces capable of working in Switch and MAC mode
* x1 HDMI Port with audio + x1 OLDI/LVDS Display interface for Dual Display
* x1 Headphone Jack
* x1 USB2.0 Hub with two Type A host and x1 USB Type-C DRP Port
* x1 UHS-1 capable µSD card slot
* 2.4/5 GHz WLAN + Bluetooth 4.2 through WL1837
* 512 Mbit OSPI flash
* x4 UART through UART-USB bridge
* XDS110 for onboard JTAG debug using USB
* Temperature sensors, user push buttons and LEDs
* 40-pin User Expansion Connector
* 24-pin header for peripherals in MCU island (I2C, UART, SPI, IO)
* 20-pin header for Programmable Realtime Unit (PRU) IO pins
* 15-pin CSI header

Add basic support for AM62-SK.

To keep the changes to minimum. Only UART And SD are supported at the moment. This should serve as good example for adding new board support based on AM62x SoC

Schematics: https://www.ti.com/lit/zip/sprr448

---
 arch/arm/dts/Makefile                      |    3 +
 arch/arm/dts/k3-am625-r5-sk.dts            |  140 ++
 arch/arm/dts/k3-am625-sk-u-boot.dtsi       |  100 +
 arch/arm/dts/k3-am625-sk.dts               |  150 ++
 arch/arm/dts/k3-am62x-sk-ddr4-1600MTs.dtsi | 2189 ++++++++++++++++++++
 5 files changed, 2582 insertions(+)
 create mode 100644 arch/arm/dts/k3-am625-r5-sk.dts
 create mode 100644 arch/arm/dts/k3-am625-sk-u-boot.dtsi
 create mode 100644 arch/arm/dts/k3-am625-sk.dts
 create mode 100644 arch/arm/dts/k3-am62x-sk-ddr4-1600MTs.dtsi
arch/arm/dts/Makefile +3 -0
index 3ca980aae0..d1df5ae196 100644
@@ -1177,6 +1177,9 @@ dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \
 			      k3-am642-sk.dtb \
 			      k3-am642-r5-sk.dtb
 
+dtb-$(CONFIG_SOC_K3_AM625) += k3-am625-sk.dtb \
+			      k3-am625-r5-sk.dtb
+
 dtb-$(CONFIG_ARCH_MEDIATEK) += \
 	mt7622-rfb.dtb \
 	mt7623a-unielec-u7623-02-emmc.dtb \
arch/arm/dts/k3-am625-r5-sk.dts new file +140 -0

140 lines not on this page · raw message

arch/arm/dts/k3-am625-sk-u-boot.dtsi new file +100 -0

100 lines not on this page · raw message

arch/arm/dts/k3-am625-sk.dts new file +150 -0

150 lines not on this page · raw message

arch/arm/dts/k3-am62x-sk-ddr4-1600MTs.dtsi new file +2189 -0

2,189 lines not on this page · raw message

Signature · 1 line
2.36.1
author maintainer
#16 lore raw

PATCH v2 11/12 configs: Add configs for AM62x SK

In reply to Vignesh Raghavendra

Add am62x_evm_r5_defconfig for R5 SPL and am62x_evm_a53_defconfig for A53 SPL and U-Boot support.

To keep the changes to minimum. Only UART And SD boot related configs are included. This should serve as good starting point for new board bringup with AM62x.

---
 board/ti/am62x/MAINTAINERS      |   8 +++
 configs/am62x_evm_a53_defconfig |  71 +++++++++++++++++++++
 configs/am62x_evm_r5_defconfig  |  91 +++++++++++++++++++++++++++
 include/configs/am62x_evm.h     | 106 ++++++++++++++++++++++++++++++++
 4 files changed, 276 insertions(+)
 create mode 100644 board/ti/am62x/MAINTAINERS
 create mode 100644 configs/am62x_evm_a53_defconfig
 create mode 100644 configs/am62x_evm_r5_defconfig
 create mode 100644 include/configs/am62x_evm.h
board/ti/am62x/MAINTAINERS new file +8 -0
new file mode 100644
index 0000000000..105e741995
@@ -0,0 +1,8 @@
+AM62x BOARD
+M:	Dave Gerlach <[email protected]>
+M:	Tom Rini <[email protected]>
+S:	Maintained
+F:	board/ti/am62x/
+F:	include/configs/am62x_evm.h
+F:	configs/am62x_evm_r5_defconfig
+F:	configs/am62x_evm_a53_defconfig
configs/am62x_evm_a53_defconfig new file +71 -0

71 lines not on this page · raw message

configs/am62x_evm_r5_defconfig new file +91 -0

91 lines not on this page · raw message

include/configs/am62x_evm.h new file +106 -0

106 lines not on this page · raw message

Signature · 1 line
2.36.1
author maintainer
#17 lore raw

PATCH v2 12/12 doc: ti: Add readme for AM62x SK

In reply to Vignesh Raghavendra

Add info of boot flow and build steps for AM62x SK.

---
 doc/board/ti/am62x_sk.rst | 231 ++++++++++++++++++++++++++++++++++++++
 doc/board/ti/index.rst    |   1 +
 2 files changed, 232 insertions(+)
 create mode 100644 doc/board/ti/am62x_sk.rst
doc/board/ti/am62x_sk.rst new file +231 -0
new file mode 100644
index 0000000000..4e68c2018a
@@ -0,0 +1,231 @@
+.. SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
+.. sectionauthor:: Vignesh Raghavendra <[email protected]>
+
+Texas Instruments AM62 Platforms
+================================
+
+Introduction:
+-------------
+The AM62 SoC family is the follow on AM335x built on the K3 Multicore
+SoC architecture platform, providing ultra-low-power modes, dual
+display, multi-sensor edge compute, security and other BOM-saving
+integrations.  The AM62 SoC targets a broad market to enable
+applications such as Industrial HMI, PLC/CNC/Robot control, Medical
+Equipment, Building Automation, Appliances and more.
+
+Some highlights of this SoC are:
+
+* Quad-Cortex-A53s (running up to 1.4GHz) in a single cluster.
+  Pin-to-pin compatible options for single and quad core are available.
+* Cortex-M4F for general-purpose or safety usage.
+* Dual display support, providing 24-bit RBG parallel interface and
+  OLDI/LVDS-4 Lane x2, up to 200MHz pixel clock support for 2K display
+  resolution.
+* Selectable GPU support, up to 8GFLOPS, providing better user experience
+  in 3D graphic display case and Android.
+* PRU(Programmable Realtime Unit) support for customized programmable
+  interfaces/IOs.
+* Integrated Giga-bit Ethernet switch supporting up to a total of two
+  external ports (TSN capable).
+* 9xUARTs, 5xSPI, 6xI2C, 2xUSB2, 3xCAN-FD, 3x eMMC and SD, GPMC for
+  NAND/FPGA connection, OSPI memory controller, 3xMcASP for audio,
+  1x CSI-RX-4L for Camera, eCAP/eQEP, ePWM, among other peripherals.
+* Dedicated Centralized System Controller for Security, Power, and
+  Resource Management.
+* Multiple low power modes support, ex: Deep sleep, Standby, MCU-only,
+  enabling battery powered system design.
+
+More details can be found in the Technical Reference Manual:
+https://www.ti.com/lit/pdf/spruiv7
+
+Boot Flow:
+----------
+Below is the pictorial representation of boot flow:
+
+.. code-block:: text
+
+ +------------------------------------------------------------------------+
+ |        TIFS            |      Main R5          |        A53            |
+ +------------------------------------------------------------------------+
+ |    +--------+          |                       |                       |
+ |    |  Reset |          |                       |                       |
+ |    +--------+          |                       |                       |
+ |         :              |                       |                       |
+ |    +--------+          |   +-----------+       |                       |
+ |    | *ROM*  |----------|-->| Reset rls |       |                       |
+ |    +--------+          |   +-----------+       |                       |
+ |    |        |          |         :             |                       |
+ |    |  ROM   |          |         :             |                       |
+ |    |services|          |         :             |                       |
+ |    |        |          |   +-------------+     |                       |
+ |    |        |          |   |  *R5 ROM*   |     |                       |
+ |    |        |          |   +-------------+     |                       |
+ |    |        |<---------|---|Load and auth|     |                       |
+ |    |        |          |   | tiboot3.bin |     |                       |
+ |    +--------+          |   +-------------+     |                       |
+ |    |        |<---------|---| Load sysfw  |     |                       |
+ |    |        |          |   | part to TIFS|     |                       |
+ |    |        |          |   | core        |     |                       |
+ |    |        |          |   +-------------+     |                       |
+ |    |        |          |         :             |                       |
+ |    |        |          |         :             |                       |
+ |    |        |          |         :             |                       |
+ |    |        |          |   +-------------+     |                       |
+ |    |        |          |   |  *R5 SPL*   |     |                       |
+ |    |        |          |   +-------------+     |                       |
+ |    |        |          |   |    DDR      |     |                       |
+ |    |        |          |   |   config    |     |                       |
+ |    |        |          |   +-------------+     |                       |
+ |    |        |          |   |    Load     |     |                       |
+ |    |        |          |   |  tispl.bin  |     |                       |
+ |    |        |          |   +-------------+     |                       |
+ |    |        |          |   |   Load R5   |     |                       |
+ |    |        |          |   |   firmware  |     |                       |
+ |    |        |          |   +-------------+     |                       |
+ |    |        |<---------|---| Start A53   |     |                       |
+ |    |        |          |   | and jump to |     |                       |
+ |    |        |          |   | DM fw image |     |                       |
+ |    |        |          |   +-------------+     |                       |
+ |    |        |          |                       |     +-----------+     |
+ |    |        |----------|-----------------------|---->| Reset rls |     |
+ |    |        |          |                       |     +-----------+     |
+ |    |  TIFS  |          |                       |          :            |
+ |    |Services|          |                       |     +-----------+     |
+ |    |        |<---------|-----------------------|---->|*ATF/OPTEE*|     |
+ |    |        |          |                       |     +-----------+     |
+ |    |        |          |                       |          :            |
+ |    |        |          |                       |     +-----------+     |
+ |    |        |<---------|-----------------------|---->| *A53 SPL* |     |
+ |    |        |          |                       |     +-----------+     |
+ |    |        |          |                       |     |   Load    |     |
+ |    |        |          |                       |     | u-boot.img|     |
+ |    |        |          |                       |     +-----------+     |
+ |    |        |          |                       |          :            |
+ |    |        |          |                       |     +-----------+     |
+ |    |        |<---------|-----------------------|---->| *U-Boot*  |     |
+ |    |        |          |                       |     +-----------+     |
+ |    |        |          |                       |     |  prompt   |     |
+ |    |        |----------|-----------------------|-----+-----------+-----|
+ |    +--------+          |                       |                       |
+ |                        |                       |                       |
+ +------------------------------------------------------------------------+
+
+- Here TIFS acts as master and provides all the critical services. R5/A53
+  requests TIFS to get these services done as shown in the above diagram.
+
+Sources:
+--------
+1. SYSFW:
+	Tree: git://git.ti.com/k3-image-gen/k3-image-gen.git
+	Branch: master
+
+2. ATF:
+	Tree: https://github.com/ARM-software/arm-trusted-firmware.git
+	Branch: master
+
+3. OPTEE:
+	Tree: https://github.com/OP-TEE/optee_os.git
+	Branch: master
+
+4. U-Boot:
+	Tree: https://source.denx.de/u-boot/u-boot
+	Branch: master
+
+5. TI Linux Firmware:
+	Tree: git://git.ti.com/processor-firmware/ti-linux-firmware.git
+	Branch: ti-linux-firmware
+
+Build procedure:
+----------------
+1. ATF:
+
+.. code-block:: text
+
+ $ make CROSS_COMPILE=aarch64-none-linux-gnu- ARCH=aarch64 PLAT=k3 TARGET_BOARD=lite SPD=opteed
+
+2. OPTEE:
+
+.. code-block:: text
+
+ $ make PLATFORM=k3 CFG_ARM64_core=y CROSS_COMPILE=arm-none-linux-gnueabihf- CROSS_COMPILE64=aarch64-none-linux-gnu-
+
+3. U-Boot:
+
+* 3.1 R5:
+
+.. code-block:: text
+
+ $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- am62x_evm_r5_defconfig O=/tmp/r5
+ $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- O=/tmp/r5
+ $ cd <k3-image-gen>
+ $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- SOC=am62x SBL=/tmp/r5/spl/u-boot-spl.bin SYSFW_PATH=<path to ti-linux-firmware>/ti-sysfw/ti-fs-firmware-am62x-gp.bin
+
+Use the tiboot3.bin generated from last command
+
+* 3.2 A53:
+
+.. code-block:: text
+
+ $ make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- am62x_evm_a53_defconfig O=/tmp/a53
+ $ make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- ATF=<path to ATF dir>/build/k3/lite/release/bl31.bin TEE=<path to OPTEE OS dir>/out/arm-plat-k3/core/tee-pager_v2.bin DM=<path to ti-linux-firmware>/ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f O=/tmp/a53
+
+Target Images
+--------------
+Copy the below images to an SD card and boot:
+ - tiboot3.bin from step 3.1
+ - tispl.bin, u-boot.img from 3.2
+
+Image formats:
+--------------
+
+- tiboot3.bin:
+
+.. code-block:: text
+
+                +-----------------------+
+                |        X.509          |
+                |      Certificate      |
+                | +-------------------+ |
+                | |                   | |
+                | |        R5         | |
+                | |   u-boot-spl.bin  | |
+                | |                   | |
+                | +-------------------+ |
+                | |                   | |
+                | |TIFS with board cfg| |
+                | |                   | |
+                | +-------------------+ |
+                | |                   | |
+                | |                   | |
+                | |     FIT header    | |
+                | | +---------------+ | |
+                | | |               | | |
+                | | |   DTB 1...N   | | |
+                | | +---------------+ | |
+                | +-------------------+ |
+                +-----------------------+
+
+- tispl.bin
+
+.. code-block:: text
+
+                +-----------------------+
+                |                       |
+                |       FIT HEADER      |
+                | +-------------------+ |
+                | |                   | |
+                | |      A53 ATF      | |
+                | +-------------------+ |
+                | |                   | |
+                | |     A53 OPTEE     | |
+                | +-------------------+ |
+                | |                   | |
+                | |      R5 DM FW     | |
+                | +-------------------+ |
+                | |                   | |
+                | |      A53 SPL      | |
+                | +-------------------+ |
+                | |                   | |
+                | |   SPL DTB 1...N   | |
+                | +-------------------+ |
+                +-----------------------+
doc/board/ti/index.rst +1 -0
index 014a097178..250d9242e8 100644
@@ -8,3 +8,4 @@ Texas Instruments
 
    am335x_evm
    j721e_evm
+   am62x_sk
Signature · 1 line
2.36.1