TI: Add support for AM62 SoC
Subsystems (10)
Vignesh Raghavendra
maintainercover 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 networking support at U-Boot prompt
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 (3):
dma: ti: Add PSIL data for AM62x DMASS
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 | 130 + arch/arm/dts/k3-am625-sk-u-boot.dtsi | 124 + arch/arm/dts/k3-am625-sk.dts | 469 ++++ 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 | 254 ++ 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 | 66 + arch/arm/mach-k3/include/mach/am62_spl.h | 44 + arch/arm/mach-k3/include/mach/hardware.h | 4 + arch/arm/mach-k3/include/mach/spl.h | 5 + board/ti/am62x/Kconfig | 63 + board/ti/am62x/MAINTAINERS | 8 + board/ti/am62x/Makefile | 8 + board/ti/am62x/evm.c | 149 ++ configs/am62x_evm_a53_defconfig | 110 + configs/am62x_evm_r5_defconfig | 114 + 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 | 7 + 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, 5476 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.35.3
Vignesh Raghavendra
maintainerPATCH 1/11 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
@@ -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.35.3
Vignesh Raghavendra
maintainerPATCH 2/11 dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM62
In reply to Vignesh RaghavendraFrom: 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
@@ -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.35.3
Re: [PATCH 02/11] dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM62
Quoted 24 lines · 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 parenthesesHowever, 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.Signed-off-by Suman Anna <[email protected]>Signed-off-by Vignesh Raghavendra <[email protected]>--- include/dt-bindings/pinctrl/k3.h | 3 +++ 1 file changed, 3 insertions(+)include/dt-bindings/pinctrl/k3.h +0
-0
include/dt-bindings/pinctrl/k3.h line 47
Quoted 7 lines
include/dt-bindings/pinctrl/k3.h +3
-0@@ -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
I assume this is being submitted to upstream linux as well?
Signature · 1 line
Tom
Vignesh Raghavendra
maintainerRe: [PATCH 02/11] dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM62
Quoted 28 lines · Tom Rini
Quoted 27 lines · 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 parenthesesHowever, 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.Signed-off-by Suman Anna <[email protected]>Signed-off-by Vignesh Raghavendra <[email protected]>--- include/dt-bindings/pinctrl/k3.h | 3 +++ 1 file changed, 3 insertions(+)include/dt-bindings/pinctrl/k3.h +0
-0@@ -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))
Quoted 7 lines
include/dt-bindings/pinctrl/k3.h line 47
Quoted 4 lines
include/dt-bindings/pinctrl/k3.h +3
-0+#define AM62X_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define AM62X_MCU_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#endif I assume this is being submitted to upstream linux as well?
Sorry, forgot to include upstream ref.:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/dt-bindings/pinctrl/k3.h#n44
Vignesh Raghavendra
maintainerPATCH 3/11 soc: ti: k3-socinfo: Add entry for AM62X SoC family
In reply to Vignesh RaghavendraFrom: 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
@@ -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.35.3
Re: [PATCH 03/11] soc: ti: k3-socinfo: Add entry for AM62X SoC family
On April 15, 2022 thus sayeth Vignesh Raghavendra:
Quoted 6 lines
From: Suman Anna <[email protected]>
Add support for AM62x SoC identification.
Signed-off-by Suman Anna <[email protected]>Signed-off-by Vignesh Raghavendra <[email protected]>
~Bryan
Vignesh Raghavendra
maintainerPATCH 4/11 arm: mach-k3: Introduce the basic files to support AM62
In reply to Vignesh RaghavendraFrom: 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 | 254 ++++++++++++++++++ arch/arm/mach-k3/arm64-mmu.c | 4 +- arch/arm/mach-k3/include/mach/am62_hardware.h | 66 +++++ arch/arm/mach-k3/include/mach/am62_spl.h | 44 +++ 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, 385 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
@@ -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
@@ -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 +254 -0
254 lines not on this page · raw message
arch/arm/mach-k3/arm64-mmu.c +2 -2
@@ -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 +66 -0
66 lines not on this page · raw message
arch/arm/mach-k3/include/mach/am62_spl.h new file +44 -0
44 lines not on this page · raw message
arch/arm/mach-k3/include/mach/hardware.h +4 -0
@@ -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
@@ -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
@@ -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.35.3
Re: [PATCH 04/11] arm: mach-k3: Introduce the basic files to support AM62
On Fri, Apr 15, 2022 at 07:39:24PM +0530, Vignesh Raghavendra wrote:
[snip]
Quoted 13 lines
arch/arm/mach-k3/am625_init.c new file +7
-0@@ -0,0 +1,254 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* AM625: SoC specific initialization +* +* Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/ +* Suman Anna <[email protected]> +*/
arch/arm/mach-k3/am625_init.c line 17
Quoted 10 lines
arch/arm/mach-k3/am625_init.c new file +10
-0+ +#include <common.h> +#include <spl.h> +#include <asm/io.h> +#include <asm/arch/hardware.h> +#include <asm/arch/sysfw-loader.h> +#include "common.h" +#include <dm.h> +#include <dm/uclass-internal.h> +#include <dm/pinctrl.h>
Er, common.h twice? Please re-check this, and then also drop common.h (here and elsewhere) as it only includes other headers and we should avoid it when possible. In fact, checkpatch.pl complains about both dm.h and common.h so please address series-wide, thanks.
Signature · 1 line
Tom
Vignesh Raghavendra
maintainerRe: [PATCH 04/11] arm: mach-k3: Introduce the basic files to support AM62
Quoted 20 lines · Tom Rini
On Fri, Apr 15, 2022 at 07:39:24PM +0530, Vignesh Raghavendra wrote:
[snip]
Quoted 17 lines
arch/arm/mach-k3/am625_init.c new file +11
-0@@ -0,0 +1,254 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* AM625: SoC specific initialization +* +* Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/ +* Suman Anna <[email protected]> +*/ + +#include <common.h> +#include <spl.h> +#include <asm/io.h>
Quoted 8 lines
arch/arm/mach-k3/am625_init.c line 17
Quoted 6 lines
arch/arm/mach-k3/am625_init.c new file +6
-0+#include <asm/arch/hardware.h> +#include <asm/arch/sysfw-loader.h> +#include "common.h" +#include <dm.h> +#include <dm/uclass-internal.h> +#include <dm/pinctrl.h> Er,
common.htwice?
Second one refers to arch/arm/mach-k3/common.h
Quoted 3 lines
Please re-check this, and then also drop
common.h
(here and elsewhere) as it only includes other headers and we should avoid it when possible.
Sure, will do.
Quoted 3 lines
In fact, checkpatch.pl complains about both
dm.handcommon.hso please address series-wide, thanks.
Unfortunately, it doesn't ;(
Regards
Vignesh
Re: [PATCH 04/11] arm: mach-k3: Introduce the basic files to support AM62
Quoted 32 lines · Vignesh Raghavendra
Quoted 20 lines · Tom Rini
On Fri, Apr 15, 2022 at 07:39:24PM +0530, Vignesh Raghavendra wrote:
[snip]
Quoted 17 lines
arch/arm/mach-k3/am625_init.c new file +11
-0@@ -0,0 +1,254 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* AM625: SoC specific initialization +* +* Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/ +* Suman Anna <[email protected]> +*/ + +#include <common.h> +#include <spl.h> +#include <asm/io.h> Quoted 8 lines
arch/arm/mach-k3/am625_init.c line 17
Quoted 6 lines
arch/arm/mach-k3/am625_init.c new file +6
-0+#include <asm/arch/hardware.h> +#include <asm/arch/sysfw-loader.h> +#include "common.h" +#include <dm.h> +#include <dm/uclass-internal.h> +#include <dm/pinctrl.h> Er,
common.htwice?
Quoted 1 line
Second one refers to
arch/arm/mach-k3/common.h
OK, lets rename that, and see what info there we can put elsewhere.
Quoted 11 lines
Quoted 3 lines
Please re-check this, and then also drop
common.h
(here and elsewhere) as it only includes other headers and we should avoid it when possible.Sure, will do.
Quoted 3 lines
In fact, checkpatch.pl complains about both
dm.handcommon.hso please address series-wide, thanks.Unfortunately, it doesn't ;(
Ah, right. It only checks for inside of headers. But still should be avoided.
Signature · 1 line
Tom
Vignesh Raghavendra
maintainerRe: [PATCH 04/11] arm: mach-k3: Introduce the basic files to support AM62
Hi,
Quoted 33 lines · Tom Rini
Quoted 32 lines · Vignesh Raghavendra
Quoted 28 lines · Tom Rini
On Fri, Apr 15, 2022 at 07:39:24PM +0530, Vignesh Raghavendra wrote:
[snip]
Quoted 13 lines
arch/arm/mach-k3/am625_init.c new file +7
-0@@ -0,0 +1,254 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* AM625: SoC specific initialization +* +* Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/ +* Suman Anna <[email protected]> +*/ arch/arm/mach-k3/am625_init.c line 17
Quoted 10 lines
arch/arm/mach-k3/am625_init.c new file +10
-0+ +#include <common.h> +#include <spl.h> +#include <asm/io.h> +#include <asm/arch/hardware.h> +#include <asm/arch/sysfw-loader.h> +#include "common.h" +#include <dm.h> +#include <dm/uclass-internal.h> +#include <dm/pinctrl.h> Er,
common.htwice?
Quoted 3 lines
Quoted 1 line
Second one refers to
arch/arm/mach-k3/common.hOK, lets rename that, and see what info there we can put elsewhere.
arch/arm/mach-k3/common.c which contains set of helper functions that are used across the K3 family of devices and this header exports those helpers (and is local to arch/arm/mach-k3/).
We may have split into multiple files according to functions in a separate series.
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Please re-check this, and then also drop
common.h
(here and elsewhere) as it only includes other headers and we should avoid it when possible.Sure, will do.
Quoted 9 lines
Quoted 5 lines
Quoted 3 lines
In fact, checkpatch.pl complains about both
dm.handcommon.hso please address series-wide, thanks.Unfortunately, it doesn't ;(
Ah, right. It only checks for inside of headers. But still should be avoided.
Yes, I will drop including <common.h> in next version.
Regards
Vignesh
Vignesh Raghavendra
maintainerPATCH 5/11 arm: mach-k3: am62: Introduce autogenerated SoC data
In reply to Vignesh RaghavendraFrom: 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.35.3
Vignesh Raghavendra
maintainerPATCH 6/11 dma: ti: Add PSIL data for AM62x DMASS
In reply to Vignesh RaghavendraAdd 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
@@ -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
@@ -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
@@ -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.35.3
Vignesh Raghavendra
maintainerPATCH 7/11 arm: dts: Introduce base AM62 SoC dtsi files
In reply to Vignesh RaghavendraFrom: Suman Anna <[email protected]>
Introduce the basic AM62 SoC description dtsi files. While doing this, lets reuse the DDR controller definition from AM64 as the instance is the same
--- arch/arm/dts/k3-am62-ddr.dtsi | 11 + arch/arm/dts/k3-am62-main.dtsi | 503 +++++++++++++++++++++++++++++++ arch/arm/dts/k3-am62-mcu.dtsi | 36 +++ 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, 799 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
@@ -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 +503 -0
503 lines not on this page · raw message
arch/arm/dts/k3-am62-mcu.dtsi new file +36 -0
@@ -0,0 +1,36 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for AM625 SoC Family MCU Domain peripherals + * + * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/ + */ + +&cbass_mcu { + mcu_pmx0: pinctrl@4084000 { + compatible = "pinctrl-single"; + reg = <0x00 0x04084000 0x00 0x88>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <32>; + pinctrl-single,function-mask = <0xffffffff>; + }; + + mcu_uart0: serial@4a00000 { + compatible = "ti,am64-uart", "ti,am654-uart"; + reg = <0x00 0x04a00000 0x00 0x100>; + interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&k3_pds 149 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 149 0>; + clock-names = "fclk"; + }; + + mcu_i2c0: i2c@4900000 { + compatible = "ti,am64-i2c", "ti,omap4-i2c"; + reg = <0x00 0x04900000 0x00 0x100>; + interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&k3_pds 106 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 106 2>; + clock-names = "fck"; + }; +};
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.35.3
Re: [PATCH 07/11] arm: dts: Introduce base AM62 SoC dtsi files
Quoted 9 lines · Vignesh Raghavendra
From: Suman Anna <[email protected]>
Introduce the basic AM62 SoC description dtsi files. While doing this, lets reuse the DDR controller definition from AM64 as the instance is the same
Signed-off-by Gowtham Tammana <[email protected]>Signed-off-by Suman Anna <[email protected]>Signed-off-by Vignesh Raghavendra <[email protected]>
Quoted 8 lines
--- arch/arm/dts/k3-am62-ddr.dtsi | 11 + arch/arm/dts/k3-am62-main.dtsi | 503 +++++++++++++++++++++++++++++++ arch/arm/dts/k3-am62-mcu.dtsi | 36 +++ 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, 799 insertions(+)
Since the commit doesn't say, what is the status of this with upstream Linux kernel? Thanks.
Signature · 1 line
Tom
Vignesh Raghavendra
maintainerRe: [PATCH 07/11] arm: dts: Introduce base AM62 SoC dtsi files
Quoted 19 lines · Tom Rini
Quoted 9 lines · Vignesh Raghavendra
From: Suman Anna <[email protected]>
Introduce the basic AM62 SoC description dtsi files. While doing this, lets reuse the DDR controller definition from AM64 as the instance is the same
Signed-off-by Gowtham Tammana <[email protected]>Signed-off-by Suman Anna <[email protected]>Signed-off-by Vignesh Raghavendra <[email protected]>Quoted 8 lines
--- arch/arm/dts/k3-am62-ddr.dtsi | 11 + arch/arm/dts/k3-am62-main.dtsi | 503 +++++++++++++++++++++++++++++++ arch/arm/dts/k3-am62-mcu.dtsi | 36 +++ 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, 799 insertions(+)
Quoted 3 lines
Since the commit doesn't say, what is the status of this with upstream Linux kernel? Thanks.
Base dts with UART support is upstream[1]. Rest of peripherals are under review [2]
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/ti/k3-am625-sk.dts
[2] https://lore.kernel.org/linux-arm-kernel/[email protected]/T/#t
Vignesh Raghavendra
maintainerPATCH 8/11 board: ti: Introduce the basic files to support AM62 SK board
In reply to Vignesh RaghavendraFrom: Suman Anna <[email protected]>
Add basic support for AM64 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
--- arch/arm/mach-k3/Kconfig | 1 + board/ti/am62x/Kconfig | 63 +++++++++++ board/ti/am62x/Makefile | 8 ++ board/ti/am62x/evm.c | 149 ++++++++++++++++++++++++++ drivers/firmware/ti_sci_static_data.h | 7 ++ 5 files changed, 228 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
@@ -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 +63 -0
63 lines not on this page · raw message
board/ti/am62x/Makefile new file +8 -0
@@ -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 +149 -0
149 lines not on this page · raw message
drivers/firmware/ti_sci_static_data.h +7 -0
@@ -118,6 +118,13 @@ static struct ti_sci_resource_static_data rm_static_data[] = { };#endif /* CONFIG_TARGET_J721S2_R5_EVM */ +#if IS_ENABLED (CONFIG_TARGET_AM625_R5_EVM ) +static struct ti_sci_resource_static_data rm_static_data[] = { + { }, +}; + +#endif /* CONFIG_TARGET_AM625_R5_EVM */ +#else static struct ti_sci_resource_static_data rm_static_data[] = { { },
Signature · 1 line
2.35.3
Vignesh Raghavendra
maintainerPATCH 9/11 arm: dts: Add support for AM62-SK
In reply to Vignesh RaghavendraFrom: 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.
Schematics: https://www.ti.com/lit/zip/sprr448
--- arch/arm/dts/Makefile | 3 + arch/arm/dts/k3-am62-main.dtsi | 44 +- arch/arm/dts/k3-am62-mcu.dtsi | 20 + arch/arm/dts/k3-am625-r5-sk.dts | 130 ++ arch/arm/dts/k3-am625-sk-u-boot.dtsi | 124 ++ arch/arm/dts/k3-am625-sk.dts | 469 +++++ arch/arm/dts/k3-am62x-sk-ddr4-1600MTs.dtsi | 2189 ++++++++++++++++++++ 7 files changed, 2972 insertions(+), 7 deletions(-) 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
@@ -1162,6 +1162,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-am62-main.dtsi +37 -7
87 lines not on this page · raw message
arch/arm/dts/k3-am62-mcu.dtsi +20 -0
@@ -33,4 +33,24 @@ clocks = <&k3_clks 106 2>; clock-names = "fck"; }; + + mcu_spi0: spi@4b00000 { + compatible = "ti,am654-mcspi", "ti,omap4-mcspi"; + reg = <0x00 0x04b00000 0x00 0x400>; + interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&k3_pds 147 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 147 0>; + }; + + mcu_spi1: spi@4b10000 { + compatible = "ti,am654-mcspi","ti,omap4-mcspi"; + reg = <0x00 0x04b10000 0x00 0x400>; + interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&k3_pds 148 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 148 0>; + }; };
arch/arm/dts/k3-am625-r5-sk.dts new file +130 -0
130 lines not on this page · raw message
arch/arm/dts/k3-am625-sk-u-boot.dtsi new file +124 -0
124 lines not on this page · raw message
arch/arm/dts/k3-am625-sk.dts new file +469 -0
469 lines not on this page · raw message
arch/arm/dts/k3-am62x-sk-ddr4-1600MTs.dtsi new file +2189 -0
2,157 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.35.3
Part of the diff is not shown here. View the raw message.
Vignesh Raghavendra
maintainerPATCH 10/11 configs: Add configs for AM62x SK
In reply to Vignesh RaghavendraAdd am62x_evm_r5_defconfig for R5 SPL and am62x_evm_a53_defconfig for A53 SPL and U-Boot support.
--- board/ti/am62x/MAINTAINERS | 8 +++ configs/am62x_evm_a53_defconfig | 110 ++++++++++++++++++++++++++++++ configs/am62x_evm_r5_defconfig | 114 ++++++++++++++++++++++++++++++++ include/configs/am62x_evm.h | 106 +++++++++++++++++++++++++++++ 4 files changed, 338 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
@@ -0,0 +1,8 @@ +AM64x 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 +110 -0
110 lines not on this page · raw message
configs/am62x_evm_r5_defconfig new file +114 -0
114 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.35.3
Vignesh Raghavendra
maintainerPATCH 11/11 doc: ti: Add readme for AM62x SK
In reply to Vignesh RaghavendraAdd 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
@@ -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
@@ -8,3 +8,4 @@ Texas Instruments am335x_evm j721e_evm + am62x_sk
Signature · 1 line
2.35.3
Re: [PATCH 11/11] doc: ti: Add readme for AM62x SK
On April 15, 2022 thus sayeth Vignesh Raghavendra:
Quoted 3 lines
Add info of boot flow and build steps for AM62x SK.
Signed-off-by Vignesh Raghavendra <[email protected]>
Looks great to me!
~Bryan
Re: [PATCH 11/11] doc: ti: Add readme for AM62x SK
In reply to Vignesh RaghavendraQuoted 5 lines · Vignesh Raghavendra
Add info of boot flow and build steps for AM62x SK.
Signed-off-by Vignesh Raghavendra <[email protected]>--- doc/board/ti/am62x_sk.rst | 231 ++++++++++++++++++++++++++++++++++++++
This isn't specific to the SK, more the AM62x in general, suggest name am62x.rst.
[...]
doc/board/ti/am62x_sk.rst line 145
Quoted 8 lines
doc/board/ti/am62x_sk.rst new file +8
-0+Build procedure: +---------------- +1. ATF: + +.. code-block:: text + + $ make CROSS_COMPILE=aarch64-none-linux-gnu- ARCH=aarch64 PLAT=k3 TARGET_BOARD=lite SPD=opteed +
These compiler names might not be the same as installed by some current package managers (-none), maybe we start by setting up two env vars to point to the two compilers we use:
export CROSS_COMPILE32=arm-none-linux-gnueabihf-
export CROSS_COMPILE64=aarch64-none-linux-gnu-
Then just use those below, that way we only have to switch these first two commands if we have a different compiler.
CROSS_COMPILE=$CROSS_COMPILE32
etc..
doc/board/ti/am62x_sk.rst line 158
Quoted 13 lines
+2. OPTEE:
doc/board/ti/am62x_sk.rst new file +12
-0+ +.. 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
Lets not pollute directories outside of the current one, suggest O=build/r5 and the same below.
Andrew
Vignesh Raghavendra
maintainerRe: [PATCH 11/11] doc: ti: Add readme for AM62x SK
Quoted 11 lines · Andrew Davis
Quoted 5 lines · Vignesh Raghavendra
Add info of boot flow and build steps for AM62x SK.
Signed-off-by Vignesh Raghavendra <[email protected]>---
doc/board/ti/am62x_sk.rst| 231 ++++++++++++++++++++++++++++++++++++++This isn't specific to the SK, more the AM62x in general, suggest name
am62x.rst.
Agreed
Quoted 19 lines
[...]
Quoted 9 lines
doc/board/ti/am62x_sk.rst new file +7
-0+Build procedure: +---------------- +1. ATF: + +.. code-block:: text + + $ make CROSS_COMPILE=aarch64-none-linux-gnu- ARCH=aarch64 PLAT=k3TARGET_BOARD=lite SPD=opteed
+These compiler names might not be the same as installed by some current package managers (-none),
maybe we start by setting up two env vars to point to the two compilers we use:
Quoted 9 lines
export CROSS_COMPILE32=arm-none-linux-gnueabihf-
export CROSS_COMPILE64=aarch64-none-linux-gnu-Then just use those below, that way we only have to switch these first two commands if we
have a different compiler.CROSS_COMPILE=$CROSS_COMPILE32
Good idea, thanks!
Quoted 16 lines
etc..
Quoted 13 lines
+2. OPTEE:
doc/board/ti/am62x_sk.rst new file +4
-0+ +.. code-block:: text + + $ make PLATFORM=k3 CFG_ARM64_core=yCROSS_COMPILE=arm-none-linux-gnueabihf-
CROSS_COMPILE64=aarch64-none-linux-gnu-doc/board/ti/am62x_sk.rst new file +6
-0+ +3. U-Boot: + +* 3.1 R5: + +.. code-block:: text
Quoted 8 lines
Quoted 3 lines
+
+ $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf-am62x_evm_r5_defconfigO=/tmp/r5Lets not pollute directories outside of the current one, suggest
O=build/r5
and the same below.
Sure, will fix!
Regards
Vignesh