Skip to contentSkip to conversation

arm: mach-k3: Initial Support for Texas Instruments AM642 Platform

PATCH New Dave Gerlach 3 participants 23 messages Apr 23, 2021 – May 12, 2021

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

cover arm: mach-k3: Initial Support for Texas Instruments AM642 Platform

Hi,

This series adds initial support for the latest new SoC, AM642, from Texas Instruments.

Additional detail can be found in the patch descriptions, also see AM64X Technical Reference Manual (SPRUIM2, Revised Jan 2021) for further details: https://www.ti.com/lit/pdf/spruim2

Regards,
Dave

Dave Gerlach (14):
arm: mach-k3: Add basic support for AM642 SoC definition
arm: mach-k3: am642: Unlock all applicable control MMR registers
arm: mach-k3: am642: Store boot info from ROM
arm: mach-k3: am642: Load SYSFW binary and config from boot media
arm: mach-k3: am642: Use mmc start and stop callbacks
mmc: sdhci_am654: Add Support for TI's AM642 SoC
mailbox: k3-sec-proxy: Extend valid thread IDs
board: ti: am64x: Add board support for am64x evm
dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM64
arm: dts: ti: Add Support for AM642 SoC
arm: dts: k3-am642: Add initial support for EVM
arm: dts: k3-am642: Add r5 specific dt support
configs: am64x_evm_r5: Add Initial support
configs: am64x_evm_a53: Add Initial support

Keerthy (2):
arm: mach-k3: am642: Add support for boot device detection
armv8: mach-k3: am642: Add custom MMU support

Suman Anna (1):
arm: mach-k3: am642: Shut down R5 core after ATF startup on A53

 arch/arm/dts/Makefile                         |   2 +
 arch/arm/dts/k3-am64-main.dtsi                | 405 ++++++++++++++++++
 arch/arm/dts/k3-am64-mcu.dtsi                 |  76 ++++
 arch/arm/dts/k3-am64.dtsi                     | 103 +++++
 arch/arm/dts/k3-am642-evm-u-boot.dtsi         |  58 +++
 arch/arm/dts/k3-am642-evm.dts                 | 246 +++++++++++
 arch/arm/dts/k3-am642-r5-evm.dts              | 169 ++++++++
 arch/arm/dts/k3-am642.dtsi                    |  65 +++
 arch/arm/mach-k3/Kconfig                      |  15 +-
 arch/arm/mach-k3/Makefile                     |   1 +
 arch/arm/mach-k3/am642_init.c                 | 283 ++++++++++++
 arch/arm/mach-k3/arm64-mmu.c                  |  41 ++
 arch/arm/mach-k3/include/mach/am64_hardware.h |  52 +++
 arch/arm/mach-k3/include/mach/am64_spl.h      |  44 ++
 arch/arm/mach-k3/include/mach/hardware.h      |   4 +
 arch/arm/mach-k3/include/mach/spl.h           |   4 +
 board/ti/am64x/Kconfig                        |  53 +++
 board/ti/am64x/Makefile                       |   8 +
 board/ti/am64x/evm.c                          |  48 +++
 configs/am64x_evm_a53_defconfig               |  96 +++++
 configs/am64x_evm_r5_defconfig                |  91 ++++
 drivers/mailbox/k3-sec-proxy.c                |  10 +-
 drivers/mmc/am654_sdhci.c                     |  18 +
 include/configs/am64x_evm.h                   | 105 +++++
 include/dt-bindings/pinctrl/k3.h              |   5 +-
 25 files changed, 1988 insertions(+), 14 deletions(-)
 create mode 100644 arch/arm/dts/k3-am64-main.dtsi
 create mode 100644 arch/arm/dts/k3-am64-mcu.dtsi
 create mode 100644 arch/arm/dts/k3-am64.dtsi
 create mode 100644 arch/arm/dts/k3-am642-evm-u-boot.dtsi
 create mode 100644 arch/arm/dts/k3-am642-evm.dts
 create mode 100644 arch/arm/dts/k3-am642-r5-evm.dts
 create mode 100644 arch/arm/dts/k3-am642.dtsi
 create mode 100644 arch/arm/mach-k3/am642_init.c
 create mode 100644 arch/arm/mach-k3/include/mach/am64_hardware.h
 create mode 100644 arch/arm/mach-k3/include/mach/am64_spl.h
 create mode 100644 board/ti/am64x/Kconfig
 create mode 100644 board/ti/am64x/Makefile
 create mode 100644 board/ti/am64x/evm.c
 create mode 100644 configs/am64x_evm_a53_defconfig
 create mode 100644 configs/am64x_evm_r5_defconfig
 create mode 100644 include/configs/am64x_evm.h
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/17 arm: mach-k3: Add basic support for AM642 SoC definition

The AM642 SoC belongs to the K3 Multicore SoC architecture platform, providing advanced system integration to enable applications such as Motor Drives, PLC, Remote IO and IoT Gateways.

Some highlights of this SoC are:
* Dual Cortex-A53s in a single cluster, two clusters of dual Cortex-R5F MCUs, and a single Cortex-M4F.
* Two Gigabit Industrial Communication Subsystems (ICSSG).
* Integrated Ethernet switch supporting up to a total of two external ports.
* PCIe-GEN2x1L, USB3/USB2, 2xCAN-FD, eMMC and SD, UFS, OSPI memory controller, QSPI, I2C, eCAP/eQEP, ePWM, ADC, among other peripherals.
* Centralized System Controller for Security, Power, and Resource Management (DMSC).

See AM64X Technical Reference Manual (SPRUIM2, Nov 2020) for further details: https://www.ti.com/lit/pdf/spruim2

---
 arch/arm/mach-k3/Kconfig      | 14 ++++++++++----
 arch/arm/mach-k3/Makefile     |  1 +
 arch/arm/mach-k3/am642_init.c | 28 ++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm/mach-k3/am642_init.c
arch/arm/mach-k3/Kconfig +10 -4
index c7d186149ba5..35edc6d8eeb8 100644
@@ -10,6 +10,9 @@ config SOC_K3_AM6
 config SOC_K3_J721E
 	bool "TI's K3 based J721E SoC Family Support"
 
+config SOC_K3_AM642
+	bool "TI's K3 based AM642 SoC Family Support"
+
 endchoice
 
 config SYS_SOC
@@ -19,16 +22,18 @@ config SYS_K3_NON_SECURE_MSRAM_SIZE
 	hex
 	default 0x80000 if SOC_K3_AM6
 	default 0x100000 if SOC_K3_J721E
+	default 0x1c0000 if SOC_K3_AM642
 	help
-	  Describes the total size of the MCU MSRAM. This doesn't
-	  specify the total size of SPL as ROM can use some part
-	  of this RAM. Once ROM gives control to SPL then this
-	  complete size can be usable.
+	  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
+	  ROM can use some part of this RAM. Once ROM gives control to
+	  SPL then this complete size can be usable.
 
 config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE
 	hex
 	default 0x58000 if SOC_K3_AM6
 	default 0xc0000 if SOC_K3_J721E
+	default 0x180000 if SOC_K3_AM642
 	help
 	  Describes the maximum size of the image that ROM can download
 	  from any boot media.
@@ -51,6 +56,7 @@ config SYS_K3_BOOT_PARAM_TABLE_INDEX
 	hex
 	default 0x41c7fbfc if SOC_K3_AM6
 	default 0x41cffbfc if SOC_K3_J721E
+	default 0x701bebfc if SOC_K3_AM642
 	help
 	  Address at which ROM stores the value which determines if SPL
 	  is booted up by primary boot media or secondary boot media.
arch/arm/mach-k3/Makefile +1 -0
index 7572f56925cd..890d1498d0c8 100644
@@ -5,6 +5,7 @@
 
 obj-$(CONFIG_SOC_K3_AM6) += am6_init.o
 obj-$(CONFIG_SOC_K3_J721E) += j721e_init.o
+obj-$(CONFIG_SOC_K3_AM642) += am642_init.o
 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/am642_init.c new file +28 -0
new file mode 100644
index 000000000000..e73450da41da
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * AM642: SoC specific initialization
+ *
+ * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
+ *	Keerthy <[email protected]>
+ *	Dave Gerlach <[email protected]>
+ */
+
+#include <common.h>
+#include <spl.h>
+#include <asm/io.h>
+#include "common.h"
+
+#if defined(CONFIG_SPL_BUILD)
+
+void board_init_f(ulong dummy)
+{
+#if defined(CONFIG_CPU_V7R)
+	setup_k3_mpu_regions();
+#endif
+
+	/* Init DM early */
+	spl_early_init();
+
+	preloader_console_init();
+}
+#endif
Signature · 1 line
2.28.0
#2 lore raw

PATCH 2/17 arm: mach-k3: am642: Add support for boot device detection

In reply to Dave Gerlach

From: Keerthy <[email protected]>

AM642 allows for booting from primary or backup boot media. Both media can be chosen individually based on switch settings. ROM looks for a valid image in primary boot media, if not found then looks in backup boot media. In order to pass this boot media information to boot loader, ROM stores a value at a particular address. Add support for reading this information and determining the boot media correctly.

---
 arch/arm/mach-k3/am642_init.c                 | 98 +++++++++++++++++++
 arch/arm/mach-k3/include/mach/am64_hardware.h | 48 +++++++++
 arch/arm/mach-k3/include/mach/am64_spl.h      | 44 +++++++++
 arch/arm/mach-k3/include/mach/hardware.h      |  4 +
 arch/arm/mach-k3/include/mach/spl.h           |  4 +
 5 files changed, 198 insertions(+)
 create mode 100644 arch/arm/mach-k3/include/mach/am64_hardware.h
 create mode 100644 arch/arm/mach-k3/include/mach/am64_spl.h
arch/arm/mach-k3/am642_init.c +98 -0
index e73450da41da..e63275ccc68f 100644
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <spl.h>
 #include <asm/io.h>
+#include <asm/arch/hardware.h>
 #include "common.h"
 
 #if defined(CONFIG_SPL_BUILD)
@@ -25,4 +26,101 @@ void board_init_f(ulong dummy)
 
 	preloader_console_init();
 }
+
+u32 spl_boot_mode(const u32 boot_device)
+{
+	switch (boot_device) {
+	case BOOT_DEVICE_MMC1:
+		return MMCSD_MODE_EMMCBOOT;
+
+	case BOOT_DEVICE_MMC2:
+		return MMCSD_MODE_FS;
+
+	default:
+		return MMCSD_MODE_RAW;
+	}
+}
+
+static u32 __get_backup_bootmedia(u32 main_devstat)
+{
+	u32 bkup_bootmode =
+	    (main_devstat & MAIN_DEVSTAT_BACKUP_BOOTMODE_MASK) >>
+	    MAIN_DEVSTAT_BACKUP_BOOTMODE_SHIFT;
+	u32 bkup_bootmode_cfg =
+	    (main_devstat & MAIN_DEVSTAT_BACKUP_BOOTMODE_CFG_MASK) >>
+	    MAIN_DEVSTAT_BACKUP_BOOTMODE_CFG_SHIFT;
+
+	switch (bkup_bootmode) {
+	case BACKUP_BOOT_DEVICE_UART:
+		return BOOT_DEVICE_UART;
+
+	case BACKUP_BOOT_DEVICE_USB:
+		return BOOT_DEVICE_USB;
+
+	case BACKUP_BOOT_DEVICE_ETHERNET:
+		return BOOT_DEVICE_ETHERNET;
+
+	case BACKUP_BOOT_DEVICE_MMC:
+		if (bkup_bootmode_cfg)
+			return BOOT_DEVICE_MMC2;
+		return BOOT_DEVICE_MMC1;
+
+	case BACKUP_BOOT_DEVICE_SPI:
+		return BOOT_DEVICE_SPI;
+
+	case BACKUP_BOOT_DEVICE_I2C:
+		return BOOT_DEVICE_I2C;
+	};
+
+	return BOOT_DEVICE_RAM;
+}
+
+static u32 __get_primary_bootmedia(u32 main_devstat)
+{
+	u32 bootmode = (main_devstat & MAIN_DEVSTAT_PRIMARY_BOOTMODE_MASK) >>
+	    MAIN_DEVSTAT_PRIMARY_BOOTMODE_SHIFT;
+	u32 bootmode_cfg =
+	    (main_devstat & MAIN_DEVSTAT_PRIMARY_BOOTMODE_CFG_MASK) >>
+	    MAIN_DEVSTAT_PRIMARY_BOOTMODE_CFG_SHIFT;
+
+	switch (bootmode) {
+	case BOOT_DEVICE_OSPI:
+		fallthrough;
+	case BOOT_DEVICE_QSPI:
+		fallthrough;
+	case BOOT_DEVICE_XSPI:
+		fallthrough;
+	case BOOT_DEVICE_SPI:
+		return BOOT_DEVICE_SPI;
+
+	case BOOT_DEVICE_ETHERNET_RGMII:
+		fallthrough;
+	case BOOT_DEVICE_ETHERNET_RMII:
+		return BOOT_DEVICE_ETHERNET;
+
+	case BOOT_DEVICE_EMMC:
+		return BOOT_DEVICE_MMC1;
+
+	case BOOT_DEVICE_MMC:
+		if ((bootmode_cfg & MAIN_DEVSTAT_PRIMARY_MMC_PORT_MASK) >>
+		     MAIN_DEVSTAT_PRIMARY_MMC_PORT_SHIFT)
+			return BOOT_DEVICE_MMC2;
+		return BOOT_DEVICE_MMC1;
+
+	case BOOT_DEVICE_NOBOOT:
+		return BOOT_DEVICE_RAM;
+	}
+
+	return bootmode;
+}
+
+u32 spl_boot_device(void)
+{
+	u32 devstat = readl(CTRLMMR_MAIN_DEVSTAT);
+
+	if (bootindex == K3_PRIMARY_BOOTMODE)
+		return __get_primary_bootmedia(devstat);
+	else
+		return __get_backup_bootmedia(devstat);
+}
 #endif
arch/arm/mach-k3/include/mach/am64_hardware.h new file +48 -0

48 lines not on this page · raw message

arch/arm/mach-k3/include/mach/am64_spl.h new file +44 -0

44 lines not on this page · raw message

arch/arm/mach-k3/include/mach/hardware.h +4 -0
index 02b3df0e1b78..8725e7d51a5b 100644
@@ -14,6 +14,10 @@
 #include "j721e_hardware.h"
 #endif
 
+#ifdef CONFIG_SOC_K3_AM642
+#include "am64_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 +4 -0
index a26c8ecdd5bd..ef1c3fb8cae6 100644
@@ -13,4 +13,8 @@
 #ifdef CONFIG_SOC_K3_J721E
 #include "j721e_spl.h"
 #endif
+
+#ifdef CONFIG_SOC_K3_AM642
+#include "am64_spl.h"
+#endif
 #endif /* _ASM_ARCH_SPL_H_ */
Signature · 1 line
2.28.0
#3 lore raw

PATCH 3/17 arm: mach-k3: am642: Unlock all applicable control MMR registers

In reply to Dave Gerlach

To access various control MMR functionality the registers need to be unlocked. Do that for all control MMR regions in the MAIN domain.

---
 arch/arm/mach-k3/am642_init.c                 | 16 ++++++++++++++++
 arch/arm/mach-k3/include/mach/am64_hardware.h | 10 ++++++----
 2 files changed, 22 insertions(+), 4 deletions(-)
arch/arm/mach-k3/am642_init.c +16 -0
index e63275ccc68f..5ab2904c5e0c 100644
@@ -15,12 +15,28 @@
 
 #if defined(CONFIG_SPL_BUILD)
 
+static void ctrl_mmr_unlock(void)
+{
+	/* Unlock all PADCFG_MMR1 module registers */
+	mmr_unlock(PADCFG_MMR1_BASE, 1);
+
+	/* Unlock all CTRL_MMR0 module registers */
+	mmr_unlock(CTRL_MMR0_BASE, 0);
+	mmr_unlock(CTRL_MMR0_BASE, 1);
+	mmr_unlock(CTRL_MMR0_BASE, 2);
+	mmr_unlock(CTRL_MMR0_BASE, 3);
+	mmr_unlock(CTRL_MMR0_BASE, 5);
+	mmr_unlock(CTRL_MMR0_BASE, 6);
+}
+
 void board_init_f(ulong dummy)
 {
 #if defined(CONFIG_CPU_V7R)
 	setup_k3_mpu_regions();
 #endif
 
+	ctrl_mmr_unlock();
+
 	/* Init DM early */
 	spl_early_init();
 
arch/arm/mach-k3/include/mach/am64_hardware.h +6 -4
index 8136585bde6f..ec5387025b98 100644
@@ -12,6 +12,8 @@
 #define CTRL_MMR0_BASE					0x43000000
 #define CTRLMMR_MAIN_DEVSTAT				(CTRL_MMR0_BASE + 0x30)
 
+#define PADCFG_MMR1_BASE				0xf0000
+
 #define MAIN_DEVSTAT_PRIMARY_BOOTMODE_MASK		0x00000078
 #define MAIN_DEVSTAT_PRIMARY_BOOTMODE_SHIFT		3
 
@@ -29,14 +31,14 @@
 #define MAIN_DEVSTAT_PRIMARY_MMC_PORT_MASK		0x04
 
 /*
- * The CTRL_MMR memory space is divided into several equally-spaced
- * partitions, so defining the partition size allows us to determine
- * register addresses common to those partitions.
+ * The CTRL_MMR and PADCFG_MMR memory space is divided into several
+ * equally-spaced partitions, so defining the partition size allows us to
+ * determine register addresses common to those partitions.
  */
 #define CTRL_MMR0_PARTITION_SIZE			0x4000
 
 /*
- * CTRL_MMR lock/kick-mechanism shared register definitions.
+ * CTRL_MMR and PADCFG_MMR lock/kick-mechanism shared register definitions.
  */
 #define CTRLMMR_LOCK_KICK0				0x01008
 #define CTRLMMR_LOCK_KICK0_UNLOCK_VAL			0x68ef3490
Signature · 1 line
2.28.0
#4 lore raw

PATCH 4/17 arm: mach-k3: am642: Store boot info from ROM

In reply to Dave Gerlach

For AM642, ROM supports loading system firmware directly from boot image. ROM passes information about the number of images that are loaded to bootloader at a specific address that is temporary. Add support for storing this information somewhere permanent before it gets corrupted.

---
 arch/arm/mach-k3/am642_init.c                 | 21 +++++++++++++++++++
 arch/arm/mach-k3/include/mach/am64_hardware.h |  2 ++
 2 files changed, 23 insertions(+)
arch/arm/mach-k3/am642_init.c +21 -0
index 5ab2904c5e0c..7ebe5b56cd1f 100644
@@ -29,12 +29,33 @@ static void ctrl_mmr_unlock(void)
 	mmr_unlock(CTRL_MMR0_BASE, 6);
 }
 
+/*
+ * This uninitialized global variable would normal end up in the .bss section,
+ * but the .bss is cleared between writing and reading this variable, so move
+ * it to the .data section.
+ */
+u32 bootindex __section(".data");
+static struct rom_extended_boot_data bootdata __section(.data);
+
+static void store_boot_info_from_rom(void)
+{
+	bootindex = *(u32 *)(CONFIG_SYS_K3_BOOT_PARAM_TABLE_INDEX);
+	memcpy(&bootdata, (uintptr_t *)ROM_ENTENDED_BOOT_DATA_INFO,
+	       sizeof(struct rom_extended_boot_data));
+}
+
 void board_init_f(ulong dummy)
 {
 #if defined(CONFIG_CPU_V7R)
 	setup_k3_mpu_regions();
 #endif
 
+	/*
+	 * Cannot delay this further as there is a chance that
+	 * K3_BOOT_PARAM_TABLE_INDEX can be over written by SPL MALLOC section.
+	 */
+	store_boot_info_from_rom();
+
 	ctrl_mmr_unlock();
 
 	/* Init DM early */
arch/arm/mach-k3/include/mach/am64_hardware.h +2 -0
index ec5387025b98..c440685e608f 100644
@@ -47,4 +47,6 @@
 #define CTRLMMR_LOCK_KICK1				0x0100c
 #define CTRLMMR_LOCK_KICK1_UNLOCK_VAL			0xd172bc5a
 
+#define ROM_ENTENDED_BOOT_DATA_INFO			0x701beb00
+
 #endif /* __ASM_ARCH_DRA8_HARDWARE_H */
Signature · 1 line
2.28.0
#5 lore raw

PATCH 5/17 arm: mach-k3: am642: Load SYSFW binary and config from boot media

In reply to Dave Gerlach

Use the System Firmware (SYSFW) loader framework to load and start the SYSFW as part of the AM642 early initialization sequence. Also make use of existing logic to detect if ROM has already loaded sysfw and avoided attempting to reload and instead just prepare to use already running firmware.

While at it also initialize the MAIN_UART1 pinmux as it is used by SYSFW to print diagnostic messages.

---
 arch/arm/mach-k3/am642_init.c | 37 +++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
arch/arm/mach-k3/am642_init.c +37 -0
index 7ebe5b56cd1f..db2a8d4d6013 100644
@@ -11,7 +11,14 @@
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
+#include <asm/arch/sysfw-loader.h>
+#include <asm/arch/sys_proto.h>
 #include "common.h"
+#include <asm/arch/sys_proto.h>
+#include <linux/soc/ti/ti_sci_protocol.h>
+#include <dm.h>
+#include <dm/uclass-internal.h>
+#include <dm/pinctrl.h>
 
 #if defined(CONFIG_SPL_BUILD)
 
@@ -46,6 +53,11 @@ static void store_boot_info_from_rom(void)
 
 void board_init_f(ulong dummy)
 {
+#if defined(CONFIG_K3_LOAD_SYSFW)
+	struct udevice *dev;
+	int ret;
+#endif
+
 #if defined(CONFIG_CPU_V7R)
 	setup_k3_mpu_regions();
 #endif
@@ -62,6 +74,31 @@ void board_init_f(ulong dummy)
 	spl_early_init();
 
 	preloader_console_init();
+
+#if defined(CONFIG_K3_LOAD_SYSFW)
+	/*
+	 * Process pinctrl for serial3 a.k.a. MAIN UART1 module and continue
+	 * regardless of the result of pinctrl. Do this without probing the
+	 * device, but instead by searching the device that would request the
+	 * given sequence number if probed. The UART will be used by the system
+	 * firmware (SYSFW) image for various purposes and SYSFW depends on us
+	 * to initialize its pin settings.
+	 */
+	ret = uclass_find_device_by_seq(UCLASS_SERIAL, 3, &dev);
+	if (!ret)
+		pinctrl_select_state(dev, "default");
+
+	/*
+	 * Load, start up, and configure system controller firmware.
+	 * This will determine whether or not ROM has already loaded
+	 * system firmware and if so, will only perform needed config
+	 * and not attempt to load firmware again.
+	 */
+	k3_sysfw_loader(is_rom_loaded_sysfw(&bootdata), NULL, NULL);
+#endif
+
+	/* Output System Firmware version info */
+	k3_sysfw_print_ver();
 }
 
 u32 spl_boot_mode(const u32 boot_device)
Signature · 1 line
2.28.0
#6 lore raw

PATCH 6/17 arm: mach-k3: am642: Use mmc start and stop callbacks

In reply to Dave Gerlach

To avoid any glitches on MMC clock line, make use of pm per and post callbacks when loading sysfw.

---
 arch/arm/mach-k3/am642_init.c | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)
arch/arm/mach-k3/am642_init.c +33 -1
index db2a8d4d6013..adae9fbbb8cc 100644
@@ -19,6 +19,7 @@
 #include <dm.h>
 #include <dm/uclass-internal.h>
 #include <dm/pinctrl.h>
+#include <mmc.h>
 
 #if defined(CONFIG_SPL_BUILD)
 
@@ -51,6 +52,36 @@ static void store_boot_info_from_rom(void)
 	       sizeof(struct rom_extended_boot_data));
 }
 
+#if defined(CONFIG_K3_LOAD_SYSFW) && CONFIG_IS_ENABLED(DM_MMC)
+void k3_mmc_stop_clock(void)
+{
+	if (spl_boot_device() == BOOT_DEVICE_MMC1) {
+		struct mmc *mmc = find_mmc_device(0);
+
+		if (!mmc)
+			return;
+
+		mmc->saved_clock = mmc->clock;
+		mmc_set_clock(mmc, 0, true);
+	}
+}
+
+void k3_mmc_restart_clock(void)
+{
+	if (spl_boot_device() == BOOT_DEVICE_MMC1) {
+		struct mmc *mmc = find_mmc_device(0);
+
+		if (!mmc)
+			return;
+
+		mmc_set_clock(mmc, mmc->saved_clock, false);
+	}
+}
+#else
+void k3_mmc_stop_clock(void) {}
+void k3_mmc_restart_clock(void) {}
+#endif
+
 void board_init_f(ulong dummy)
 {
 #if defined(CONFIG_K3_LOAD_SYSFW)
@@ -94,7 +125,8 @@ void board_init_f(ulong dummy)
 	 * system firmware and if so, will only perform needed config
 	 * and not attempt to load firmware again.
 	 */
-	k3_sysfw_loader(is_rom_loaded_sysfw(&bootdata), NULL, NULL);
+	k3_sysfw_loader(is_rom_loaded_sysfw(&bootdata), k3_mmc_stop_clock,
+			k3_mmc_restart_clock);
 #endif
 
 	/* Output System Firmware version info */
Signature · 1 line
2.28.0
#7 lore raw

PATCH 7/17 arm: mach-k3: am642: Shut down R5 core after ATF startup on A53

In reply to Dave Gerlach

From: Suman Anna <[email protected]>

The AM642 SoCs use the Main R5FSS0 as a boot processor, and runs the R5 SPL that performs the initialization of the System Controller processor and starting the Arm Trusted Firmware (ATF) on the Arm Cortex A53 cluster. The Core0 serves as this boot processor and is parked in WFE after all the initialization. Core1 does not directly participate in the boot flow, and is simply parked in a WFI.

Power down these R5 cores (and the associated RTI timer resources that were indirectly powered up) after starting up ATF on A53 by using the appropriate SYSFW API in release_resources_for_core_shutdown(). This allows these Main R5F cores to be further controlled from the A53 to run regular applications.

---
 arch/arm/mach-k3/am642_init.c | 51 +++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
arch/arm/mach-k3/am642_init.c +51 -0
index adae9fbbb8cc..8931aaabf2f9 100644
@@ -230,3 +230,54 @@ u32 spl_boot_device(void)
 		return __get_backup_bootmedia(devstat);
 }
 #endif
+
+#if defined(CONFIG_SYS_K3_SPL_ATF)
+
+#define AM64X_DEV_RTI8			127
+#define AM64X_DEV_RTI9			128
+#define AM64X_DEV_R5FSS0_CORE0		121
+#define AM64X_DEV_R5FSS0_CORE1		122
+
+void release_resources_for_core_shutdown(void)
+{
+	struct ti_sci_handle *ti_sci = get_ti_sci_handle();
+	struct ti_sci_dev_ops *dev_ops = &ti_sci->ops.dev_ops;
+	struct ti_sci_proc_ops *proc_ops = &ti_sci->ops.proc_ops;
+	int ret;
+	u32 i;
+
+	const u32 put_device_ids[] = {
+		AM64X_DEV_RTI9,
+		AM64X_DEV_RTI8,
+	};
+
+	/* Iterate through list of devices to put (shutdown) */
+	for (i = 0; i < ARRAY_SIZE(put_device_ids); i++) {
+		u32 id = put_device_ids[i];
+
+		ret = dev_ops->put_device(ti_sci, id);
+		if (ret)
+			panic("Failed to put device %u (%d)\n", id, ret);
+	}
+
+	const u32 put_core_ids[] = {
+		AM64X_DEV_R5FSS0_CORE1,
+		AM64X_DEV_R5FSS0_CORE0, /* Handle CPU0 after CPU1 */
+	};
+
+	/* Iterate through list of cores to put (shutdown) */
+	for (i = 0; i < ARRAY_SIZE(put_core_ids); i++) {
+		u32 id = put_core_ids[i];
+
+		/*
+		 * Queue up the core shutdown request. Note that this call
+		 * needs to be followed up by an actual invocation of an WFE
+		 * or WFI CPU instruction.
+		 */
+		ret = proc_ops->proc_shutdown_no_wait(ti_sci, id);
+		if (ret)
+			panic("Failed sending core %u shutdown message (%d)\n",
+			      id, ret);
+	}
+}
+#endif
Signature · 1 line
2.28.0
#8 lore raw

PATCH 8/17 armv8: mach-k3: am642: Add custom MMU support

In reply to Dave Gerlach

From: Keerthy <[email protected]>

Change the memory attributes for the DDR regions used by the remote processors on AM65x so that the cores can see and execute the proper code.

A separate table based on the previous K3 SoCs is introduced since the number of remote processors and their DDR usage is different between the SoC families.

---
 arch/arm/mach-k3/arm64-mmu.c | 41 ++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
arch/arm/mach-k3/arm64-mmu.c +41 -0
index a0da3df59388..94242e1e5cc3 100644
@@ -180,3 +180,44 @@ struct mm_region *mem_map = j7200_mem_map;
 #endif /* CONFIG_TARGET_J7200_A72_EVM */
 
 #endif /* CONFIG_SOC_K3_J721E */
+
+#ifdef CONFIG_SOC_K3_AM642
+/* NR_DRAM_BANKS + 32bit IO + 64bit IO + terminator */
+#define NR_MMU_REGIONS	(CONFIG_NR_DRAM_BANKS + 3)
+
+/* ToDo: Add 64bit IO */
+struct mm_region am64_mem_map[NR_MMU_REGIONS] = {
+	{
+		.virt = 0x0UL,
+		.phys = 0x0UL,
+		.size = 0x80000000UL,
+		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+			 PTE_BLOCK_NON_SHARE |
+			 PTE_BLOCK_PXN | PTE_BLOCK_UXN
+	}, {
+		.virt = 0x80000000UL,
+		.phys = 0x80000000UL,
+		.size = 0x80000000UL,
+		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+			 PTE_BLOCK_INNER_SHARE
+	}, {
+		.virt = 0x880000000UL,
+		.phys = 0x880000000UL,
+		.size = 0x80000000UL,
+		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+			 PTE_BLOCK_INNER_SHARE
+	}, {
+		.virt = 0x500000000UL,
+		.phys = 0x500000000UL,
+		.size = 0x400000000UL,
+		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+			 PTE_BLOCK_NON_SHARE |
+			 PTE_BLOCK_PXN | PTE_BLOCK_UXN
+	}, {
+		/* List terminator */
+		0,
+	}
+};
+
+struct mm_region *mem_map = am64_mem_map;
+#endif /* CONFIG_SOC_K3_AM642 */
Signature · 1 line
2.28.0
#9 lore raw

PATCH 9/17 mmc: sdhci_am654: Add Support for TI's AM642 SoC

In reply to Dave Gerlach

Add support for the controller present on the AM642 SoC.

There are instances:
sdhci0: 8bit bus width, max 400 MBps
sdhci1: 4bit bus width, max 100 MBps

---
 drivers/mmc/am654_sdhci.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
drivers/mmc/am654_sdhci.c +18 -0
index 11dcde134c5f..a86d96aacd2b 100644
@@ -470,6 +470,16 @@ const struct am654_driver_data j721e_4bit_drv_data = {
 	.flags = IOMUX_PRESENT,
 };
 
+static const struct am654_driver_data sdhci_am64_8bit_drvdata = {
+	.ops = &am654_sdhci_ops,
+	.flags = DLL_PRESENT | DLL_CALIB,
+};
+
+static const struct am654_driver_data sdhci_am64_4bit_drvdata = {
+	.ops = &j721e_4bit_sdhci_ops,
+	.flags = IOMUX_PRESENT,
+};
+
 const struct soc_attr am654_sdhci_soc_attr[] = {
 	{ .family = "AM65X", .revision = "SR1.0", .data = &am654_sr1_drv_data},
 	{/* sentinel */}
@@ -651,6 +661,14 @@ static const struct udevice_id am654_sdhci_ids[] = {
 		.compatible = "ti,j721e-sdhci-4bit",
 		.data = (ulong)&j721e_4bit_drv_data,
 	},
+	{
+		.compatible = "ti,am64-sdhci-8bit",
+		.data = (ulong)&sdhci_am64_8bit_drvdata,
+	},
+	{
+		.compatible = "ti,am64-sdhci-4bit",
+		.data = (ulong)&sdhci_am64_4bit_drvdata,
+	},
 	{ }
 };
 
Signature · 1 line
2.28.0
#10 lore raw

PATCH 10/17 mailbox: k3-sec-proxy: Extend valid thread IDs

In reply to Dave Gerlach

AM64x uses a different thread mapping that existing K3 SoCs, so update the valid thread ID list to include those used for AM64x.

Also remove the comment identifying the purpose of each thread ID. The purpose of the thread ID is specified when describing the threads in the device tree and the same ID can mean different things on different SoCs, so the comment is not useful.

---
 drivers/mailbox/k3-sec-proxy.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
drivers/mailbox/k3-sec-proxy.c +1 -9
index ff21a08388a9..88f320515aec 100644
@@ -409,15 +409,7 @@ static int k3_sec_proxy_remove(struct udevice *dev)
 	return 0;
 }
 
-/*
- * Thread ID #4: ROM request
- * Thread ID #5: ROM response, SYSFW notify
- * Thread ID #6: SYSFW request response
- * Thread ID #7: SYSFW request high priority
- * Thread ID #8: SYSFW request low priority
- * Thread ID #9: SYSFW notify response
- */
-static const u32 am6x_valid_threads[] = { 4, 5, 6, 7, 8, 9, 11, 13 };
+static const u32 am6x_valid_threads[] = { 0, 1, 4, 5, 6, 7, 8, 9, 11, 12, 13 };
 
 static const struct k3_sec_proxy_desc am654_desc = {
 	.thread_count = 90,
Signature · 1 line
2.28.0
#11 lore raw

PATCH 11/17 board: ti: am64x: Add board support for am64x evm

In reply to Dave Gerlach

Add board specific initialization for am64x based boards.

---
 arch/arm/mach-k3/Kconfig    |   1 +
 board/ti/am64x/Kconfig      |  53 ++++++++++++++++++
 board/ti/am64x/Makefile     |   8 +++
 board/ti/am64x/evm.c        |  48 +++++++++++++++++
 include/configs/am64x_evm.h | 105 ++++++++++++++++++++++++++++++++++++
 5 files changed, 215 insertions(+)
 create mode 100644 board/ti/am64x/Kconfig
 create mode 100644 board/ti/am64x/Makefile
 create mode 100644 board/ti/am64x/evm.c
 create mode 100644 include/configs/am64x_evm.h
arch/arm/mach-k3/Kconfig +1 -0
index 35edc6d8eeb8..bfbce44bfa59 100644
@@ -148,5 +148,6 @@ config SYS_K3_SPL_ATF
 	  after SPL from R5.
 
 source "board/ti/am65x/Kconfig"
+source "board/ti/am64x/Kconfig"
 source "board/ti/j721e/Kconfig"
 endif
board/ti/am64x/Kconfig new file +53 -0

53 lines not on this page · raw message

board/ti/am64x/Makefile new file +8 -0
new file mode 100644
index 000000000000..71bdca7d9592
@@ -0,0 +1,8 @@
+#
+# Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
+#	Keerthy <[email protected]>
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y	+= evm.o
board/ti/am64x/evm.c new file +48 -0

48 lines not on this page · raw message

include/configs/am64x_evm.h new file +105 -0

105 lines not on this page · raw message

Signature · 1 line
2.28.0
#12 lore raw

PATCH 12/17 dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM64

In reply to Dave Gerlach

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

---
 include/dt-bindings/pinctrl/k3.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/dt-bindings/pinctrl/k3.h +4 -1
index ce0cd38f56e4..52df47298e03 100644
@@ -2,7 +2,7 @@
 /*
  * This header provides constants for TI K3-AM65 pinctrl bindings.
  *
- * Copyright (C) 2018 Texas Instruments
+ * Copyright (C) 2018-2021 Texas Instruments
  */
 #ifndef _DT_BINDINGS_PINCTRL_TI_K3_AM65_H
 #define _DT_BINDINGS_PINCTRL_TI_K3_AM65_H
@@ -38,4 +38,7 @@
 #define J721E_IOPAD(pa, val, muxmode)		(((pa) & 0x1fff)) ((val) | (muxmode))
 #define J721E_WKUP_IOPAD(pa, val, muxmode)	(((pa) & 0x1fff)) ((val) | (muxmode))
 
+#define AM64X_IOPAD(pa, val, muxmode)		(((pa) & 0x1fff)) ((val) | (muxmode))
+#define AM64X_MCU_IOPAD(pa, val, muxmode)	(((pa) & 0x1fff)) ((val) | (muxmode))
+
 #endif
Signature · 1 line
2.28.0
#13 lore raw

PATCH 13/17 arm: dts: ti: Add Support for AM642 SoC

In reply to Dave Gerlach

The AM642 SoC belongs to the K3 Multicore SoC architecture platform, providing advanced system integration to enable applications such as Motor Drives, PLC, Remote IO and IoT Gateways.

Some highlights of this SoC are:
* Dual Cortex-A53s in a single cluster, two clusters of dual Cortex-R5F MCUs, and a single Cortex-M4F.
* Two Gigabit Industrial Communication Subsystems (ICSSG).
* Integrated Ethernet switch supporting up to a total of two external ports.
* PCIe-GEN2x1L, USB3/USB2, 2xCAN-FD, eMMC and SD, UFS, OSPI memory controller, QSPI, I2C, eCAP/eQEP, ePWM, ADC, among other peripherals.
* Centralized System Controller for Security, Power, and Resource Management (DMSC).

See AM64X Technical Reference Manual (SPRUIM2, Nov 2020) for further details: https://www.ti.com/lit/pdf/spruim2

Introduce basic support for the AM642 SoC to enable SD/MMC boot. Introduce a limited set of MAIN domain peripherals under cbass_main and a set of MCU domain peripherals under cbass_mcu.

---
 arch/arm/dts/k3-am64-main.dtsi | 405 +++++++++++++++++++++++++++++++++
 arch/arm/dts/k3-am64-mcu.dtsi  |  76 +++++++
 arch/arm/dts/k3-am64.dtsi      | 103 +++++++++
 arch/arm/dts/k3-am642.dtsi     |  65 ++++++
 4 files changed, 649 insertions(+)
 create mode 100644 arch/arm/dts/k3-am64-main.dtsi
 create mode 100644 arch/arm/dts/k3-am64-mcu.dtsi
 create mode 100644 arch/arm/dts/k3-am64.dtsi
 create mode 100644 arch/arm/dts/k3-am642.dtsi
arch/arm/dts/k3-am64-main.dtsi new file +405 -0
new file mode 100644
index 000000000000..5f85950daef7
@@ -0,0 +1,405 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree Source for AM642 SoC Family Main Domain peripherals
+ *
+ * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+&cbass_main {
+	oc_sram: sram at 70000000 {
+		compatible = "mmio-sram";
+		reg = <0x00 0x70000000 0x00 0x200000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x0 0x00 0x70000000 0x200000>;
+
+		atf-sram at 0 {
+			reg = <0x0 0x1a000>;
+		};
+	};
+
+	gic500: interrupt-controller at 1800000 {
+		compatible = "arm,gic-v3";
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+		#interrupt-cells = <3>;
+		interrupt-controller;
+		reg = <0x00 0x01800000 0x00 0x10000>,	/* GICD */
+		      <0x00 0x01840000 0x00 0xC0000>;	/* GICR */
+		/*
+		 * vcpumntirq:
+		 * virtual CPU interface maintenance interrupt
+		 */
+		interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
+
+		gic_its: msi-controller at 1820000 {
+			compatible = "arm,gic-v3-its";
+			reg = <0x00 0x01820000 0x00 0x10000>;
+			socionext,synquacer-pre-its = <0x1000000 0x400000>;
+			msi-controller;
+			#msi-cells = <1>;
+		};
+	};
+
+	dmss: dmss {
+		compatible = "simple-mfd";
+		#address-cells = <2>;
+		#size-cells = <2>;
+		dma-ranges;
+		ranges;
+
+		ti,sci-dev-id = <25>;
+
+		secure_proxy_main: mailbox at 4d000000 {
+			compatible = "ti,am654-secure-proxy";
+			#mbox-cells = <1>;
+			reg-names = "target_data", "rt", "scfg";
+			reg = <0x00 0x4d000000 0x00 0x80000>,
+			      <0x00 0x4a600000 0x00 0x80000>,
+			      <0x00 0x4a400000 0x00 0x80000>;
+			interrupt-names = "rx_012";
+			interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
+		};
+
+		inta_main_dmss: interrupt-controller at 48000000 {
+			compatible = "ti,sci-inta";
+			reg = <0x00 0x48000000 0x00 0x100000>;
+			#interrupt-cells = <0>;
+			interrupt-controller;
+			interrupt-parent = <&gic500>;
+			msi-controller;
+			ti,sci = <&dmsc>;
+			ti,sci-dev-id = <28>;
+			ti,interrupt-ranges = <4 68 36>;
+			ti,unmapped-event-sources = <&main_bcdma>, <&main_pktdma>;
+		};
+
+		main_bcdma: dma-controller at 485c0100 {
+			compatible = "ti,am64-dmss-bcdma";
+			reg = <0x00 0x485c0100 0x00 0x100>,
+			      <0x00 0x4c000000 0x00 0x20000>,
+			      <0x00 0x4a820000 0x00 0x20000>,
+			      <0x00 0x4aa40000 0x00 0x20000>,
+			      <0x00 0x4bc00000 0x00 0x100000>;
+			reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt";
+			msi-parent = <&inta_main_dmss>;
+			#dma-cells = <3>;
+
+			ti,sci = <&dmsc>;
+			ti,sci-dev-id = <26>;
+			ti,sci-rm-range-bchan = <0x20>; /* BLOCK_COPY_CHAN */
+			ti,sci-rm-range-rchan = <0x21>; /* SPLIT_TR_RX_CHAN */
+			ti,sci-rm-range-tchan = <0x22>; /* SPLIT_TR_TX_CHAN */
+		};
+
+		main_pktdma: dma-controller at 485c0000 {
+			compatible = "ti,am64-dmss-pktdma";
+			reg = <0x00 0x485c0000 0x00 0x100>,
+			      <0x00 0x4a800000 0x00 0x20000>,
+			      <0x00 0x4aa00000 0x00 0x40000>,
+			      <0x00 0x4b800000 0x00 0x400000>;
+			reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt";
+			msi-parent = <&inta_main_dmss>;
+			#dma-cells = <2>;
+
+			ti,sci = <&dmsc>;
+			ti,sci-dev-id = <30>;
+			ti,sci-rm-range-tchan = <0x23>, /* UNMAPPED_TX_CHAN */
+						<0x24>, /* CPSW_TX_CHAN */
+						<0x25>, /* SAUL_TX_0_CHAN */
+						<0x26>, /* SAUL_TX_1_CHAN */
+						<0x27>, /* ICSSG_0_TX_CHAN */
+						<0x28>; /* ICSSG_1_TX_CHAN */
+			ti,sci-rm-range-tflow = <0x10>, /* RING_UNMAPPED_TX_CHAN */
+						<0x11>, /* RING_CPSW_TX_CHAN */
+						<0x12>, /* RING_SAUL_TX_0_CHAN */
+						<0x13>, /* RING_SAUL_TX_1_CHAN */
+						<0x14>, /* RING_ICSSG_0_TX_CHAN */
+						<0x15>; /* RING_ICSSG_1_TX_CHAN */
+			ti,sci-rm-range-rchan = <0x29>, /* UNMAPPED_RX_CHAN */
+						<0x2b>, /* CPSW_RX_CHAN */
+						<0x2d>, /* SAUL_RX_0_CHAN */
+						<0x2f>, /* SAUL_RX_1_CHAN */
+						<0x31>, /* SAUL_RX_2_CHAN */
+						<0x33>, /* SAUL_RX_3_CHAN */
+						<0x35>, /* ICSSG_0_RX_CHAN */
+						<0x37>; /* ICSSG_1_RX_CHAN */
+			ti,sci-rm-range-rflow = <0x2a>, /* FLOW_UNMAPPED_RX_CHAN */
+						<0x2c>, /* FLOW_CPSW_RX_CHAN */
+						<0x2e>, /* FLOW_SAUL_RX_0/1_CHAN */
+						<0x32>, /* FLOW_SAUL_RX_2/3_CHAN */
+						<0x36>, /* FLOW_ICSSG_0_RX_CHAN */
+						<0x38>; /* FLOW_ICSSG_1_RX_CHAN */
+		};
+	};
+
+	dmsc: dmsc at 44043000 {
+		compatible = "ti,k2g-sci";
+		ti,host-id = <12>;
+		mbox-names = "rx", "tx";
+		mboxes= <&secure_proxy_main 12>,
+			<&secure_proxy_main 13>;
+		reg-names = "debug_messages";
+		reg = <0x00 0x44043000 0x00 0xfe0>;
+
+		k3_pds: power-controller {
+			compatible = "ti,sci-pm-domain";
+			#power-domain-cells = <2>;
+		};
+
+		k3_clks: clocks {
+			compatible = "ti,k2g-sci-clk";
+			#clock-cells = <2>;
+		};
+
+		k3_reset: reset-controller {
+			compatible = "ti,sci-reset";
+			#reset-cells = <2>;
+		};
+	};
+
+	main_pmx0: pinctrl at f4000 {
+		compatible = "pinctrl-single";
+		reg = <0x00 0xf4000 0x00 0x2d0>;
+		#pinctrl-cells = <1>;
+		pinctrl-single,register-width = <32>;
+		pinctrl-single,function-mask = <0xffffffff>;
+	};
+
+	main_conf: syscon at 43000000 {
+		compatible = "syscon", "simple-mfd";
+		reg = <0x00 0x43000000 0x00 0x20000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x00 0x00 0x43000000 0x20000>;
+
+		chipid at 14 {
+			compatible = "ti,am654-chipid";
+			reg = <0x00000014 0x4>;
+		};
+	};
+
+	main_uart0: serial at 2800000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02800000 0x00 0x100>;
+		reg-shift = <2>;
+		reg-io-width = <4>;
+		interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
+		clock-frequency = <48000000>;
+		current-speed = <115200>;
+		power-domains = <&k3_pds 146 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 146 0>;
+		clock-names = "fclk";
+	};
+
+	main_uart1: serial at 2810000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02810000 0x00 0x100>;
+		reg-shift = <2>;
+		reg-io-width = <4>;
+		interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>;
+		clock-frequency = <48000000>;
+		current-speed = <115200>;
+		power-domains = <&k3_pds 152 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 152 0>;
+		clock-names = "fclk";
+	};
+
+	main_uart2: serial at 2820000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02820000 0x00 0x100>;
+		reg-shift = <2>;
+		reg-io-width = <4>;
+		interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>;
+		clock-frequency = <48000000>;
+		current-speed = <115200>;
+		power-domains = <&k3_pds 153 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 153 0>;
+		clock-names = "fclk";
+	};
+
+	main_uart3: serial at 2830000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02830000 0x00 0x100>;
+		reg-shift = <2>;
+		reg-io-width = <4>;
+		interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH>;
+		clock-frequency = <48000000>;
+		current-speed = <115200>;
+		power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 154 0>;
+		clock-names = "fclk";
+	};
+
+	main_uart4: serial at 2840000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02840000 0x00 0x100>;
+		reg-shift = <2>;
+		reg-io-width = <4>;
+		interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>;
+		clock-frequency = <48000000>;
+		current-speed = <115200>;
+		power-domains = <&k3_pds 155 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 155 0>;
+		clock-names = "fclk";
+	};
+
+	main_uart5: serial at 2850000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02850000 0x00 0x100>;
+		reg-shift = <2>;
+		reg-io-width = <4>;
+		interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>;
+		clock-frequency = <48000000>;
+		current-speed = <115200>;
+		power-domains = <&k3_pds 156 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 156 0>;
+		clock-names = "fclk";
+	};
+
+	main_uart6: serial at 2860000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02860000 0x00 0x100>;
+		reg-shift = <2>;
+		reg-io-width = <4>;
+		interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
+		clock-frequency = <48000000>;
+		current-speed = <115200>;
+		power-domains = <&k3_pds 158 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 158 0>;
+		clock-names = "fclk";
+	};
+
+	main_i2c0: i2c at 20000000 {
+		compatible = "ti,am64-i2c", "ti,omap4-i2c";
+		reg = <0x00 0x20000000 0x00 0x100>;
+		interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 102 2>;
+		clock-names = "fck";
+	};
+
+	main_i2c1: i2c at 20010000 {
+		compatible = "ti,am64-i2c", "ti,omap4-i2c";
+		reg = <0x00 0x20010000 0x00 0x100>;
+		interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 103 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 103 2>;
+		clock-names = "fck";
+	};
+
+	main_i2c2: i2c at 20020000 {
+		compatible = "ti,am64-i2c", "ti,omap4-i2c";
+		reg = <0x00 0x20020000 0x00 0x100>;
+		interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 104 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 104 2>;
+		clock-names = "fck";
+	};
+
+	main_i2c3: i2c at 20030000 {
+		compatible = "ti,am64-i2c", "ti,omap4-i2c";
+		reg = <0x00 0x20030000 0x00 0x100>;
+		interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 105 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 105 2>;
+		clock-names = "fck";
+	};
+
+	main_spi0: spi at 20100000 {
+		compatible = "ti,am654-mcspi", "ti,omap4-mcspi";
+		reg = <0x00 0x20100000 0x00 0x400>;
+		interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 141 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 141 0>;
+		dmas = <&main_pktdma 0xc300 0>, <&main_pktdma 0x4300 0>;
+		dma-names = "tx0", "rx0";
+	};
+
+	main_spi1: spi at 20110000 {
+		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
+		reg = <0x00 0x20110000 0x00 0x400>;
+		interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 142 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 142 0>;
+	};
+
+	main_spi2: spi at 20120000 {
+		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
+		reg = <0x00 0x20120000 0x00 0x400>;
+		interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 143 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 143 0>;
+	};
+
+	main_spi3: spi at 20130000 {
+		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
+		reg = <0x00 0x20130000 0x00 0x400>;
+		interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 144 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 144 0>;
+	};
+
+	main_spi4: spi at 20140000 {
+		compatible = "ti,am654-mcspi","ti,omap4-mcspi";
+		reg = <0x00 0x20140000 0x00 0x400>;
+		interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 145 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 145 0>;
+	};
+
+	sdhci0: mmc at fa10000 {
+		compatible = "ti,am64-sdhci-8bit";
+		reg = <0x00 0xfa10000 0x00 0x260>, <0x00 0xfa18000 0x00 0x134>;
+		interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
+		power-domains = <&k3_pds 57 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 57 0>, <&k3_clks 57 1>;
+		clock-names = "clk_ahb", "clk_xin";
+		mmc-ddr-1_8v;
+		mmc-hs200-1_8v;
+		mmc-hs400-1_8v;
+		ti,trm-icp = <0x2>;
+		ti,otap-del-sel-legacy = <0x0>;
+		ti,otap-del-sel-mmc-hs = <0x0>;
+		ti,otap-del-sel-ddr52 = <0x6>;
+		ti,otap-del-sel-hs200 = <0x7>;
+		ti,otap-del-sel-hs400 = <0x4>;
+	};
+
+	sdhci1: mmc at fa00000 {
+		compatible = "ti,am64-sdhci-4bit";
+		reg = <0x00 0xfa00000 0x00 0x260>, <0x00 0xfa08000 0x00 0x134>;
+		interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
+		power-domains = <&k3_pds 58 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 58 3>, <&k3_clks 58 4>;
+		clock-names = "clk_ahb", "clk_xin";
+		ti,trm-icp = <0x2>;
+		ti,otap-del-sel-legacy = <0x0>;
+		ti,otap-del-sel-sd-hs = <0xf>;
+		ti,otap-del-sel-sdr12 = <0xf>;
+		ti,otap-del-sel-sdr25 = <0xf>;
+		ti,otap-del-sel-sdr50 = <0xc>;
+		ti,otap-del-sel-sdr104 = <0x6>;
+		ti,otap-del-sel-ddr50 = <0x9>;
+		ti,clkbuf-sel = <0x7>;
+	};
+};
arch/arm/dts/k3-am64-mcu.dtsi new file +76 -0

76 lines not on this page · raw message

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

103 lines not on this page · raw message

arch/arm/dts/k3-am642.dtsi new file +65 -0

65 lines not on this page · raw message

Signature · 1 line
2.28.0
#14 lore raw

PATCH 14/17 arm: dts: k3-am642: Add initial support for EVM

In reply to Dave Gerlach

The AM642 EValuation Module (EVM) is a board that provides access to various peripherals available on the AM642 SoC, such as PCIe, USB 2.0, CPSW Ethernet, ADC, and more.

Add basic support.

---
 arch/arm/dts/Makefile         |   1 +
 arch/arm/dts/k3-am642-evm.dts | 246 ++++++++++++++++++++++++++++++++++
 2 files changed, 247 insertions(+)
 create mode 100644 arch/arm/dts/k3-am642-evm.dts
arch/arm/dts/Makefile +1 -0
index c6710826a0ae..70ba1414fb01 100644
@@ -1002,6 +1002,7 @@ dtb-$(CONFIG_SOC_K3_J721E) += k3-j721e-common-proc-board.dtb \
 			      k3-j721e-r5-common-proc-board.dtb \
 			      k3-j7200-common-proc-board.dtb \
 			      k3-j7200-r5-common-proc-board.dtb
+dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb
 
 dtb-$(CONFIG_ARCH_MEDIATEK) += \
 	mt7622-rfb.dtb \
arch/arm/dts/k3-am642-evm.dts new file +246 -0

246 lines not on this page · raw message

Signature · 1 line
2.28.0
#15 lore raw

PATCH 15/17 arm: dts: k3-am642: Add r5 specific dt support

In reply to Dave Gerlach

Add initial support for dt that runs on r5.

---
 arch/arm/dts/Makefile                 |   3 +-
 arch/arm/dts/k3-am642-evm-u-boot.dtsi |  58 +++++++++
 arch/arm/dts/k3-am642-r5-evm.dts      | 169 ++++++++++++++++++++++++++
 3 files changed, 229 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/k3-am642-evm-u-boot.dtsi
 create mode 100644 arch/arm/dts/k3-am642-r5-evm.dts
arch/arm/dts/Makefile +2 -1
index 70ba1414fb01..b500e4059383 100644
@@ -1002,7 +1002,8 @@ dtb-$(CONFIG_SOC_K3_J721E) += k3-j721e-common-proc-board.dtb \
 			      k3-j721e-r5-common-proc-board.dtb \
 			      k3-j7200-common-proc-board.dtb \
 			      k3-j7200-r5-common-proc-board.dtb
-dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb
+dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \
+			      k3-am642-r5-evm.dtb
 
 dtb-$(CONFIG_ARCH_MEDIATEK) += \
 	mt7622-rfb.dtb \
arch/arm/dts/k3-am642-evm-u-boot.dtsi new file +58 -0

58 lines not on this page · raw message

arch/arm/dts/k3-am642-r5-evm.dts new file +169 -0

169 lines not on this page · raw message

Signature · 1 line
2.28.0
#16 lore raw

PATCH 16/17 configs: am64x_evm_r5: Add Initial support

In reply to Dave Gerlach

Add initial R5 defconfig support for AM64x SoCs.

---
 configs/am64x_evm_r5_defconfig | 91 ++++++++++++++++++++++++++++++++++
 1 file changed, 91 insertions(+)
 create mode 100644 configs/am64x_evm_r5_defconfig
configs/am64x_evm_r5_defconfig new file +91 -0
new file mode 100644
index 000000000000..0fa4ae90b59b
@@ -0,0 +1,91 @@
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_SYS_MALLOC_F_LEN=0x80000
+CONFIG_SOC_K3_AM642=y
+CONFIG_TARGET_AM642_R5_EVM=y
+CONFIG_ENV_SIZE=0x20000
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x80000
+CONFIG_SPL_DM_SPI=y
+CONFIG_SPL_TEXT_BASE=0x70020000
+CONFIG_SPL_MMC_SUPPORT=y
+CONFIG_SPL_SERIAL_SUPPORT=y
+CONFIG_SPL_DRIVERS_MISC_SUPPORT=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SPL_FS_FAT=y
+CONFIG_SPL_LIBDISK_SUPPORT=y
+CONFIG_SPL_SPI_FLASH_SUPPORT=y
+CONFIG_SPL_SPI_SUPPORT=y
+CONFIG_DEFAULT_DEVICE_TREE="k3-am642-r5-evm"
+CONFIG_SPL_LOAD_FIT=y
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_STACK_R=y
+CONFIG_SPL_SEPARATE_BSS=y
+CONFIG_SPL_EARLY_BSS=y
+CONFIG_SPL_I2C_SUPPORT=y
+CONFIG_SPL_DM_MAILBOX=y
+CONFIG_SPL_DM_SPI_FLASH=y
+CONFIG_SPL_DM_RESET=y
+CONFIG_SPL_POWER_DOMAIN=y
+CONFIG_SPL_REMOTEPROC=y
+CONFIG_SPL_SPI_LOAD=y
+CONFIG_SPL_YMODEM_SUPPORT=y
+CONFIG_HUSH_PARSER=y
+CONFIG_CMD_ASKENV=y
+CONFIG_CMD_MMC=y
+CONFIG_CMD_REMOTEPROC=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_TIME=y
+CONFIG_CMD_FAT=y
+CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
+CONFIG_SPL_MULTI_DTB_FIT=y
+CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
+CONFIG_ENV_IS_IN_FAT=y
+CONFIG_ENV_FAT_DEVICE_AND_PART="1:1"
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_DM=y
+CONFIG_SPL_DM=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_REGMAP=y
+CONFIG_SPL_REGMAP=y
+CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_CLK=y
+CONFIG_SPL_CLK=y
+CONFIG_CLK_TI_SCI=y
+CONFIG_TI_SCI_PROTOCOL=y
+CONFIG_DM_MAILBOX=y
+CONFIG_K3_SEC_PROXY=y
+CONFIG_DM_MMC=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_ADMA=y
+CONFIG_SPL_MMC_SDHCI_ADMA=y
+CONFIG_MMC_SDHCI_AM654=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SF_DEFAULT_MODE=0
+CONFIG_SPI_FLASH_SPANSION=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PINCTRL=y
+# CONFIG_PINCTRL_GENERIC is not set
+CONFIG_SPL_PINCTRL=y
+# CONFIG_SPL_PINCTRL_GENERIC is not set
+CONFIG_PINCTRL_SINGLE=y
+CONFIG_POWER_DOMAIN=y
+CONFIG_TI_SCI_POWER_DOMAIN=y
+CONFIG_RAM=y
+CONFIG_SPL_RAM=y
+CONFIG_K3_SYSTEM_CONTROLLER=y
+CONFIG_REMOTEPROC_TI_K3_ARM64=y
+CONFIG_DM_RESET=y
+CONFIG_RESET_TI_SCI=y
+CONFIG_SPECIFY_CONSOLE_INDEX=y
+CONFIG_DM_SERIAL=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_CADENCE_QSPI=y
+CONFIG_TIMER=y
+CONFIG_SPL_TIMER=y
+CONFIG_OMAP_TIMER=y
+CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
Signature · 1 line
2.28.0
#17 lore raw

PATCH 17/17 configs: am64x_evm_a53: Add Initial support

In reply to Dave Gerlach

Add initial A53 defconfig support for AM64x SoCs.

---
 configs/am64x_evm_a53_defconfig | 96 +++++++++++++++++++++++++++++++++
 1 file changed, 96 insertions(+)
 create mode 100644 configs/am64x_evm_a53_defconfig
configs/am64x_evm_a53_defconfig new file +96 -0
new file mode 100644
index 000000000000..5aa4ad3022fc
@@ -0,0 +1,96 @@
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_SYS_MALLOC_F_LEN=0x8000
+CONFIG_NR_DRAM_BANKS=2
+CONFIG_SOC_K3_AM642=y
+CONFIG_TARGET_AM642_A53_EVM=y
+CONFIG_ENV_SIZE=0x20000
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x280000
+CONFIG_SPL_DM_SPI=y
+CONFIG_SPL_TEXT_BASE=0x80080000
+CONFIG_SPL_MMC_SUPPORT=y
+CONFIG_SPL_SERIAL_SUPPORT=y
+CONFIG_SPL_DRIVERS_MISC_SUPPORT=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SPL_FS_FAT=y
+CONFIG_SPL_LIBDISK_SUPPORT=y
+CONFIG_SPL_SPI_FLASH_SUPPORT=y
+CONFIG_SPL_SPI_SUPPORT=y
+CONFIG_DEFAULT_DEVICE_TREE="k3-am642-evm"
+CONFIG_DISTRO_DEFAULTS=y
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_SPL_LOAD_FIT=y
+CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run get_kern_${boot}; run get_fdt_${boot}; run run_kern"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_STACK_R=y
+CONFIG_SPL_SEPARATE_BSS=y
+CONFIG_SPL_DMA=y
+CONFIG_SPL_DM_MAILBOX=y
+CONFIG_SPL_DM_SPI_FLASH=y
+CONFIG_SPL_POWER_DOMAIN=y
+CONFIG_SPL_RAM_SUPPORT=y
+CONFIG_SPL_RAM_DEVICE=y
+CONFIG_SPL_SPI_LOAD=y
+CONFIG_SPL_YMODEM_SUPPORT=y
+CONFIG_CMD_ASKENV=y
+CONFIG_CMD_MMC=y
+CONFIG_CMD_TIME=y
+CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
+CONFIG_SPL_MULTI_DTB_FIT=y
+CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
+CONFIG_ENV_IS_NOWHERE=y
+CONFIG_ENV_IS_IN_FAT=y
+CONFIG_ENV_FAT_DEVICE_AND_PART="1:1"
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_DM=y
+CONFIG_SPL_DM=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_REGMAP=y
+CONFIG_SPL_REGMAP=y
+CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_CLK=y
+CONFIG_SPL_CLK=y
+CONFIG_CLK_TI_SCI=y
+CONFIG_DMA_CHANNELS=y
+CONFIG_TI_K3_NAVSS_UDMA=y
+CONFIG_TI_SCI_PROTOCOL=y
+CONFIG_DM_MAILBOX=y
+CONFIG_K3_SEC_PROXY=y
+CONFIG_DM_MMC=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_ADMA=y
+CONFIG_SPL_MMC_SDHCI_ADMA=y
+CONFIG_MMC_SDHCI_AM654=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SF_DEFAULT_MODE=0
+CONFIG_SPI_FLASH_SPANSION=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHY_TI=y
+CONFIG_PHY_FIXED=y
+CONFIG_DM_ETH=y
+CONFIG_TI_AM65_CPSW_NUSS=y
+CONFIG_PINCTRL=y
+CONFIG_SPL_PINCTRL=y
+CONFIG_PINCTRL_SINGLE=y
+CONFIG_POWER_DOMAIN=y
+CONFIG_TI_SCI_POWER_DOMAIN=y
+CONFIG_K3_SYSTEM_CONTROLLER=y
+CONFIG_REMOTEPROC_TI_K3_ARM64=y
+CONFIG_DM_RESET=y
+CONFIG_RESET_TI_SCI=y
+CONFIG_DM_SERIAL=y
+CONFIG_SOC_TI=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_CADENCE_QSPI=y
+CONFIG_SYSRESET=y
+CONFIG_SPL_SYSRESET=y
+CONFIG_SYSRESET_TI_SCI=y
+CONFIG_TIMER=y
+CONFIG_SPL_TIMER=y
+CONFIG_OMAP_TIMER=y
+CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
Signature · 1 line
2.28.0
#18 lore raw

PATCH 17/17 configs: am64x_evm_a53: Add Initial support

Quoted 14 lines · Dave Gerlach

Add initial A53 defconfig support for AM64x SoCs.

---
 configs/am64x_evm_a53_defconfig | 96 +++++++++++++++++++++++++++++++++
 1 file changed, 96 insertions(+)
 create mode 100644 configs/am64x_evm_a53_defconfig
configs/am64x_evm_a53_defconfig new file +0 -0
new file mode 100644
index 000000000000..5aa4ad3022fc
@@ -0,0 +1,96 @@

[...]

configs/am64x_evm_a53_defconfig line 72

Quoted 8 lines
configs/am64x_evm_a53_defconfig new file +8 -0
+CONFIG_MMC_SDHCI_ADMA=y
+CONFIG_SPL_MMC_SDHCI_ADMA=y
+CONFIG_MMC_SDHCI_AM654=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SF_DEFAULT_MODE=0
+CONFIG_SPI_FLASH_SPANSION=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHY_TI=y

CONFIG does not exist.. Please replace with:

CONFIG_PHY_TI_DP83867=y

#19 lore raw

PATCH 17/17 configs: am64x_evm_a53: Add Initial support

Quoted 18 lines · Vignesh Raghavendra
Quoted 14 lines · Dave Gerlach

Add initial A53 defconfig support for AM64x SoCs.

---
 configs/am64x_evm_a53_defconfig | 96 +++++++++++++++++++++++++++++++++
 1 file changed, 96 insertions(+)
 create mode 100644 configs/am64x_evm_a53_defconfig
configs/am64x_evm_a53_defconfig new file +0 -0
new file mode 100644
index 000000000000..5aa4ad3022fc
@@ -0,0 +1,96 @@

[...]

Quoted 11 lines

configs/am64x_evm_a53_defconfig line 72

Quoted 8 lines
configs/am64x_evm_a53_defconfig new file +8 -0
+CONFIG_MMC_SDHCI_ADMA=y
+CONFIG_SPL_MMC_SDHCI_ADMA=y
+CONFIG_MMC_SDHCI_AM654=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SF_DEFAULT_MODE=0
+CONFIG_SPI_FLASH_SPANSION=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHY_TI=y

CONFIG does not exist.. Please replace with:

Sorry, I meant the meaning has changed for CONFIG_PHY_TI. It now just allows to register any of the TI PHYs and is selected by CONFIG_PHY_TI_DP83867 implicitly.

Quoted 3 lines

CONFIG_PHY_TI_DP83867=y

Also drop

+CONFIG_PHY_FIXED=y

#20 lore raw

cover arm: mach-k3: Initial Support for Texas Instruments AM642 Platform

In reply to Dave Gerlach
Quoted 12 lines · Dave Gerlach

Hi,

This series adds initial support for the latest new SoC, AM642, from Texas Instruments.

Additional detail can be found in the patch descriptions, also see AM64X Technical Reference Manual (SPRUIM2, Revised Jan 2021) for further details: https://www.ti.com/lit/pdf/spruim2

Regards,
Dave

Quoted 15 lines

Dave Gerlach (14):
arm: mach-k3: Add basic support for AM642 SoC definition
arm: mach-k3: am642: Unlock all applicable control MMR registers
arm: mach-k3: am642: Store boot info from ROM
arm: mach-k3: am642: Load SYSFW binary and config from boot media
arm: mach-k3: am642: Use mmc start and stop callbacks
mmc: sdhci_am654: Add Support for TI's AM642 SoC
mailbox: k3-sec-proxy: Extend valid thread IDs
board: ti: am64x: Add board support for am64x evm
dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM64
arm: dts: ti: Add Support for AM642 SoC
arm: dts: k3-am642: Add initial support for EVM
arm: dts: k3-am642: Add r5 specific dt support
configs: am64x_evm_r5: Add Initial support
configs: am64x_evm_a53: Add Initial support

You need to add MAINTAINERS file under board/ti/am64x. Else few testes are failing.

https://source.denx.de/u-boot/custodians/u-boot-ti/-/pipelines/7397

Thanks and regards,
Lokesh

#21 lore raw

cover arm: mach-k3: Initial Support for Texas Instruments AM642 Platform

Quoted 31 lines · Lokesh Vutla
Quoted 12 lines · Dave Gerlach

Hi,

This series adds initial support for the latest new SoC, AM642, from Texas Instruments.

Additional detail can be found in the patch descriptions, also see AM64X Technical Reference Manual (SPRUIM2, Revised Jan 2021) for further details: https://www.ti.com/lit/pdf/spruim2

Regards,
Dave

Quoted 15 lines

Dave Gerlach (14):
arm: mach-k3: Add basic support for AM642 SoC definition
arm: mach-k3: am642: Unlock all applicable control MMR registers
arm: mach-k3: am642: Store boot info from ROM
arm: mach-k3: am642: Load SYSFW binary and config from boot media
arm: mach-k3: am642: Use mmc start and stop callbacks
mmc: sdhci_am654: Add Support for TI's AM642 SoC
mailbox: k3-sec-proxy: Extend valid thread IDs
board: ti: am64x: Add board support for am64x evm
dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM64
arm: dts: ti: Add Support for AM642 SoC
arm: dts: k3-am642: Add initial support for EVM
arm: dts: k3-am642: Add r5 specific dt support
configs: am64x_evm_r5: Add Initial support
configs: am64x_evm_a53: Add Initial support

Quoted 3 lines

You need to add MAINTAINERS file under board/ti/am64x. Else few testes are failing.

https://source.denx.de/u-boot/custodians/u-boot-ti/-/pipelines/7397

I have updated locally and pushed the change:
https://source.denx.de/u-boot/custodians/u-boot-ti/-/commit/140fde6a6d7835095be2e5aa4316fe03e3bc28e9
https://source.denx.de/u-boot/custodians/u-boot-ti/-/commit/465bee1469a30a675bc7ff34229536dcc5af14f8

Please see if it looks good.

Thanks and regards,
Lokesh

Quoted 4 lines

Thanks and regards,
Lokesh

#22 lore raw

cover arm: mach-k3: Initial Support for Texas Instruments AM642 Platform

In reply to Dave Gerlach
Quoted 8 lines · Dave Gerlach

Hi,

This series adds initial support for the latest new SoC, AM642, from Texas Instruments.

Additional detail can be found in the patch descriptions, also see AM64X Technical Reference Manual (SPRUIM2, Revised Jan 2021) for further details: https://www.ti.com/lit/pdf/spruim2

Fixed the MAINTAINERS file and Timer clock frequency and applied to u-boot-ti/for-rc

Thanks and regards,
Lokesh

Quoted 70 lines

Regards,
Dave

Dave Gerlach (14):
arm: mach-k3: Add basic support for AM642 SoC definition
arm: mach-k3: am642: Unlock all applicable control MMR registers
arm: mach-k3: am642: Store boot info from ROM
arm: mach-k3: am642: Load SYSFW binary and config from boot media
arm: mach-k3: am642: Use mmc start and stop callbacks
mmc: sdhci_am654: Add Support for TI's AM642 SoC
mailbox: k3-sec-proxy: Extend valid thread IDs
board: ti: am64x: Add board support for am64x evm
dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM64
arm: dts: ti: Add Support for AM642 SoC
arm: dts: k3-am642: Add initial support for EVM
arm: dts: k3-am642: Add r5 specific dt support
configs: am64x_evm_r5: Add Initial support
configs: am64x_evm_a53: Add Initial support

Keerthy (2):
arm: mach-k3: am642: Add support for boot device detection
armv8: mach-k3: am642: Add custom MMU support

Suman Anna (1):
arm: mach-k3: am642: Shut down R5 core after ATF startup on A53

 arch/arm/dts/Makefile                         |   2 +
 arch/arm/dts/k3-am64-main.dtsi                | 405 ++++++++++++++++++
 arch/arm/dts/k3-am64-mcu.dtsi                 |  76 ++++
 arch/arm/dts/k3-am64.dtsi                     | 103 +++++
 arch/arm/dts/k3-am642-evm-u-boot.dtsi         |  58 +++
 arch/arm/dts/k3-am642-evm.dts                 | 246 +++++++++++
 arch/arm/dts/k3-am642-r5-evm.dts              | 169 ++++++++
 arch/arm/dts/k3-am642.dtsi                    |  65 +++
 arch/arm/mach-k3/Kconfig                      |  15 +-
 arch/arm/mach-k3/Makefile                     |   1 +
 arch/arm/mach-k3/am642_init.c                 | 283 ++++++++++++
 arch/arm/mach-k3/arm64-mmu.c                  |  41 ++
 arch/arm/mach-k3/include/mach/am64_hardware.h |  52 +++
 arch/arm/mach-k3/include/mach/am64_spl.h      |  44 ++
 arch/arm/mach-k3/include/mach/hardware.h      |   4 +
 arch/arm/mach-k3/include/mach/spl.h           |   4 +
 board/ti/am64x/Kconfig                        |  53 +++
 board/ti/am64x/Makefile                       |   8 +
 board/ti/am64x/evm.c                          |  48 +++
 configs/am64x_evm_a53_defconfig               |  96 +++++
 configs/am64x_evm_r5_defconfig                |  91 ++++
 drivers/mailbox/k3-sec-proxy.c                |  10 +-
 drivers/mmc/am654_sdhci.c                     |  18 +
 include/configs/am64x_evm.h                   | 105 +++++
 include/dt-bindings/pinctrl/k3.h              |   5 +-
 25 files changed, 1988 insertions(+), 14 deletions(-)
 create mode 100644 arch/arm/dts/k3-am64-main.dtsi
 create mode 100644 arch/arm/dts/k3-am64-mcu.dtsi
 create mode 100644 arch/arm/dts/k3-am64.dtsi
 create mode 100644 arch/arm/dts/k3-am642-evm-u-boot.dtsi
 create mode 100644 arch/arm/dts/k3-am642-evm.dts
 create mode 100644 arch/arm/dts/k3-am642-r5-evm.dts
 create mode 100644 arch/arm/dts/k3-am642.dtsi
 create mode 100644 arch/arm/mach-k3/am642_init.c
 create mode 100644 arch/arm/mach-k3/include/mach/am64_hardware.h
 create mode 100644 arch/arm/mach-k3/include/mach/am64_spl.h
 create mode 100644 board/ti/am64x/Kconfig
 create mode 100644 board/ti/am64x/Makefile
 create mode 100644 board/ti/am64x/evm.c
 create mode 100644 configs/am64x_evm_a53_defconfig
 create mode 100644 configs/am64x_evm_r5_defconfig
 create mode 100644 include/configs/am64x_evm.h