arm: k3-am64: Add initial support for AM64 SK
Subsystems (2)
cover arm: k3-am64: Add initial support for AM64 SK
AM642 StarterKit (SK) board is a low cost, small form factor board designed for TI?s AM642 SoC. It supports the following interfaces:
* 2 GB LPDDR4 RAM
* x2 Gigabit Ethernet interfaces capable of working in switch and MAC mode
* x1 USB 3.0 Type-A port
* x1 UHS-1 capable ?SD card slot
* 2.4/5 GHz WLAN + Bluetooth 4.2 through WL1837
* 512 Mbit OSPI flash
* x2 UART through UART-USB bridge
* XDS110 for onboard JTAG debug using USB
* Temperature sensors, user push buttons and LEDs
* 40-pin Raspberry Pi compatible GPIO header
* 24-pin header for peripherals in MCU island (I2C, UART, SPI, IO)
* 54-pin header for Programmable Realtime Unit (PRU) IO pins
* Interface for remote automation. Includes:
* power measurement and reset control
* boot mode change
This series adds support for:
- AM64 SoC detection
- AM64 board detection
- AM64 SK initial support
- Re-use EVM defconfigs for SK.
This series depends on the following series:
- https://patchwork.ozlabs.org/user/todo/uboot/?series=240546
- https://patchwork.ozlabs.org/user/todo/uboot/?series=241946
- https://patchwork.ozlabs.org/user/todo/uboot/?series=242110
Lokesh Vutla (18):
soc: ti: k3-socinfo: Add entry for AM64X SoC family
board: ti: am64x: Add support for reading eeprom data
board: ti: am64x: Enable support for reading EEPROM in R5 SPL
board: ti: am64x: Add support for detecting multiple device trees
arm: am64x: Add support for selecting DT based on EEPROM
include: configs: am64x: Avoid overlap of BSS and stack area
include: configs: am64x_evm: Optimize size of SPL BSS
include: configs: Update env for selecting right dtb
arm: dts: k3-am64-evm: Make chip id available before pre-reloc
arm: dts: k3-am642-r5-evm: Do not use power-domains for I2C
arm: dts: am642-evm: Add I2C nodes
arm: dts: am642-sk: Add initial sk dts
arm: dts: am642-r5-sk: Add r5 specific dts
configs: am64x_evm_r5: Enable checks for spl and stack sizes
configs: am64x_evm_r5: Enable support for building multiple device
trees
configs: am64x_evm_a53: Enable configs for printing cpuinfo
configs: am64x_evm_a53: Enable support for reading eeprom
configs: am64x_evm_a53: Enable support for building multiple dtbs
arch/arm/dts/Makefile | 4 +- arch/arm/dts/k3-am64-main.dtsi | 44 + arch/arm/dts/k3-am64-sk-lp4-1333MTs.dtsi | 2190 +++++++++++++++++ arch/arm/dts/k3-am64.dtsi | 2 + arch/arm/dts/k3-am642-evm-u-boot.dtsi | 25 + arch/arm/dts/k3-am642-r5-evm.dts | 5 + arch/arm/dts/k3-am642-r5-sk.dts | 145 ++ arch/arm/dts/k3-am642-sk-u-boot.dtsi | 87 + arch/arm/dts/k3-am642-sk.dts | 94 + arch/arm/mach-k3/am642_init.c | 26 + arch/arm/mach-k3/include/mach/am64_hardware.h | 3 + board/ti/am64x/Kconfig | 6 + board/ti/am64x/evm.c | 105 +- configs/am64x_evm_a53_defconfig | 10 +- configs/am64x_evm_r5_defconfig | 8 + drivers/soc/soc_ti_k3.c | 4 + include/configs/am64x_evm.h | 18 +- 17 files changed, 2765 insertions(+), 11 deletions(-) create mode 100644 arch/arm/dts/k3-am64-sk-lp4-1333MTs.dtsi create mode 100644 arch/arm/dts/k3-am642-r5-sk.dts create mode 100644 arch/arm/dts/k3-am642-sk-u-boot.dtsi create mode 100644 arch/arm/dts/k3-am642-sk.dts
Signature · 1 line
2.30.0
PATCH 1/18 soc: ti: k3-socinfo: Add entry for AM64X SoC family
Add support for AM64 SoC identification.
--- drivers/soc/soc_ti_k3.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/soc/soc_ti_k3.c +4 -0
@@ -13,6 +13,7 @@#define AM65X 0xbb5a#define J721E 0xbb64#define J7200 0xbb6d +#define AM64X 0xbb38#define REV_SR1_0 0#define REV_SR2_0 1
@@ -44,6 +45,9 @@ static const char *get_family_string(u32 idreg)case J7200 : family ="J7200" ;break ; +case AM64X : + family ="AM64X" ; +break ;default : family ="Unknown Silicon" ; };
Signature · 1 line
2.30.0
PATCH 1/18 soc: ti: k3-socinfo: Add entry for AM64X SoC family
Hi,
Quoted 21 lines · Lokesh Vutla
Add support for AM64 SoC identification.
Signed-off-by Lokesh Vutla <[email protected]>--- drivers/soc/soc_ti_k3.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/soc/soc_ti_k3.c +1
-0@@ -13,6 +13,7 @@#define AM65X 0xbb5a#define J721E 0xbb64#define J7200 0xbb6d +#define AM64X 0xbb38#define REV_SR1_0 0#define REV_SR2_0 1
drivers/soc/soc_ti_k3.c static const char *get_family_string(u32 idreg) · line 53
Quoted 9 lines
drivers/soc/soc_ti_k3.c +3
-0@@ -44,6 +45,9 @@ static const char *get_family_string(u32 idreg)case J7200 : family ="J7200" ;break ; +case AM64X : + family ="AM64X" ; +break ;default : family ="Unknown Silicon" ; };
I don't see any patch enabling this driver CONFIG_SOC_DEVICE_TI_K3=y ?
Regards
Vignesh
PATCH 1/18 soc: ti: k3-socinfo: Add entry for AM64X SoC family
Quoted 20 lines · Vignesh Raghavendra
Hi,
Quoted 17 lines · Lokesh Vutla
Add support for AM64 SoC identification.
Signed-off-by Lokesh Vutla <[email protected]>--- drivers/soc/soc_ti_k3.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/soc/soc_ti_k3.c +1
-0@@ -13,6 +13,7 @@#define AM65X 0xbb5a#define J721E 0xbb64#define J7200 0xbb6d +#define AM64X 0xbb38
Quoted 14 lines
drivers/soc/soc_ti_k3.c static const char *get_family_string(u32 idreg) · line 53
Quoted 13 lines
drivers/soc/soc_ti_k3.c +3
-0#define REV_SR1_0 0#define REV_SR2_0 1@@ -44,6 +45,9 @@ static const char *get_family_string(u32 idreg)case J7200 : family ="J7200" ;break ; +case AM64X : + family ="AM64X" ; +break ;default : family ="Unknown Silicon" ; };I don't see any patch enabling this driver
CONFIG_SOC_DEVICE_TI_K3=y?
Patch 16/18:
https://patchwork.ozlabs.org/project/uboot/patch/20210506111505.6741-17-lokeshvutla at ti.com/
Thanks and regards,
Lokesh
PATCH 2/18 board: ti: am64x: Add support for reading eeprom data
In reply to Lokesh VutlaI2C EEPROM data contains the board name and its revision. Add support for:
- Reading EEPROM data and store a copy at end of SRAM
- Updating env variable with relevant board info
- Printing board info during boot.
--- arch/arm/mach-k3/include/mach/am64_hardware.h | 3 + board/ti/am64x/evm.c | 92 +++++++++++++++++++ 2 files changed, 95 insertions(+)
arch/arm/mach-k3/include/mach/am64_hardware.h +3 -0
@@ -49,4 +49,7 @@#define ROM_ENTENDED_BOOT_DATA_INFO 0x701beb00 +/* Use Last 1K as Scratch pad */ +#define TI_SRAM_SCRATCH_BOARD_EEPROM_START 0x701bfc00 +#endif /* __ASM_ARCH_DRA8_HARDWARE_H */
board/ti/am64x/evm.c +92 -0
101 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH 3/18 board: ti: am64x: Enable support for reading EEPROM in R5 SPL
In reply to Lokesh VutlaInclude the relevant configs to enable support for reading EEPROM in R5SPL.
--- board/ti/am64x/Kconfig | 3 +++ 1 file changed, 3 insertions(+)
board/ti/am64x/Kconfig +3 -0
@@ -23,6 +23,7 @@ config TARGET_AM642_R5_EVM select SPL_RAM select K3_DDRSS imply SYS_K3_SPL_ATF + imply TI_I2C_BOARD_DETECT endchoice
@@ -53,4 +54,6 @@ config SYS_CONFIG_NAME config SPL_LDSCRIPT default "arch/arm/mach-omap2/u-boot-spl.lds" +source "board/ti/common/Kconfig" + endif
Signature · 1 line
2.30.0
PATCH 4/18 board: ti: am64x: Add support for detecting multiple device trees
In reply to Lokesh VutlaUpdate the board_fit_config_name_match() to choose the right dtb.
--- board/ti/am64x/evm.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
board/ti/am64x/evm.c +9 -4
@@ -46,10 +46,15 @@ int dram_init_banksize(void)#if defined(CONFIG_SPL_LOAD_FIT )int board_fit_config_name_match (const char *name) { -#if defined(CONFIG_TARGET_AM642_A53_EVM ) -if (!strcmp (name,"k3-am642-evm" )) -return 0 ; -#endif +bool eeprom_read =board_ti_was_eeprom_read (); + +if (!eeprom_read ||board_is_am64x_gpevm ()) { +if (!strcmp (name,"k3-am642-r5-evm" ) || !strcmp (name,"k3-am642-evm" )) +return 0 ; + }else if (board_is_am64x_skevm ()) { +if (!strcmp (name,"k3-am642-r5-sk" ) || !strcmp (name,"k3-am642-sk" )) +return 0 ; + }return -1 ; }
Signature · 1 line
2.30.0
PATCH 5/18 arm: am64x: Add support for selecting DT based on EEPROM
In reply to Lokesh VutlaEnable support for selecting DTB within SPL based on EEPROM. This will help to use single defconfig for both EVM and SK
--- arch/arm/mach-k3/am642_init.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
arch/arm/mach-k3/am642_init.c +26 -0
@@ -20,6 +20,7 @@#include <dm/uclass-internal.h> #include <dm/pinctrl.h> #include <mmc.h> +#include <dm/root.h> #if defined(CONFIG_SPL_BUILD )
@@ -82,6 +83,29 @@ void k3_mmc_stop_clock(void) {}void k3_mmc_restart_clock (void ) {}#endif +#ifdef CONFIG_SPL_OF_LIST +void do_dt_magic (void ) +{ +int ret, rescan; + +if (IS_ENABLED (CONFIG_TI_I2C_BOARD_DETECT )) +do_board_detect (); + +/* +* Board detection has been done. +* Let us see if another dtb wouldn't be a better match +* for our board +*/ +if (IS_ENABLED (CONFIG_CPU_V7R )) { + ret =fdtdec_resetup (&rescan); +if (!ret && rescan) { +dm_uninit (); +dm_init_and_scan (true); + } + } +} +#endif +void board_init_f (ulong dummy) {#if defined(CONFIG_K3_LOAD_SYSFW )
@@ -106,6 +130,8 @@ void board_init_f(ulong dummy)preloader_console_init (); +do_dt_magic (); +#if defined(CONFIG_K3_LOAD_SYSFW )/* * Process pinctrl for serial3 a.k.a. MAIN UART1 module and continue
Signature · 1 line
2.30.0
PATCH 6/18 include: configs: am64x: Avoid overlap of BSS and stack area
In reply to Lokesh VutlaAvoid R5 SPL stack writing into ROM index table. Re-use the same space for storing EEPROM data.
--- include/configs/am64x_evm.h | 5 +++++ 1 file changed, 5 insertions(+)
include/configs/am64x_evm.h +5 -0
@@ -25,8 +25,10 @@#endif #define CONFIG_SPL_MAX_SIZE CONFIG_SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE +#if defined(CONFIG_TARGET_AM642_A53_EVM )#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SPL_TEXT_BASE + \ CONFIG_SYS_K3_NON_SECURE_MSRAM_SIZE - 4) +#else /* * Maximum size in memory allocated to the SPL BSS. Keep it as tight as * possible (to allow the build to go through), as this directly affects
@@ -43,9 +45,12 @@*/ #define CONFIG_SPL_BSS_START_ADDR (CONFIG_SYS_K3_BOOT_PARAM_TABLE_INDEX -\ CONFIG_SPL_BSS_MAX_SIZE) +/* Set the stack right below the SPL BSS section */ +#define CONFIG_SYS_INIT_SP_ADDR CONFIG_SPL_BSS_START_ADDR/* Configure R5 SPL post-relocation malloc pool in DDR */ #define CONFIG_SYS_SPL_MALLOC_START 0x84000000#define CONFIG_SYS_SPL_MALLOC_SIZE SZ_16M +#endif #define PARTS_DEFAULT \/* Linux partitions */ \
Signature · 1 line
2.30.0
PATCH 7/18 include: configs: am64x_evm: Optimize size of SPL BSS
In reply to Lokesh VutlaCurrent BSS allocation of SPL is as below:
size spl/u-boot-spl
text data bss dec hex filename
144572 5484 1752 151808 25100 spl/u-boot-spl
But 20KB is allocated currently for BSS. Reduce it to 4KB and save some space for stack.
--- include/configs/am64x_evm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/am64x_evm.h +1 -1
@@ -35,7 +35,7 @@* our memory footprint. The less we use for BSS the more we have available * for everything else. */ -#define CONFIG_SPL_BSS_MAX_SIZE 0x5000 +#define CONFIG_SPL_BSS_MAX_SIZE 0x1000/* * Link BSS to be within SPL in a dedicated region located near the top of * the MCU SRAM, this way making it available also before relocation. Note
Signature · 1 line
2.30.0
PATCH 8/18 include: configs: Update env for selecting right dtb
In reply to Lokesh VutlaNow that single defconfig can be used for booting AM64 EVM and SK, default device tree will not work for selecting dtb for kernel. Update the env to select right dtb based on eeprom.
--- include/configs/am64x_evm.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
include/configs/am64x_evm.h +7 -4
@@ -58,10 +58,13 @@/* U-Boot general configuration */ #define EXTRA_ENV_AM642_BOARD_SETTINGS \ - "default_device_tree=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ "findfdt=" \ - "setenv name_fdt ${default_device_tree};" \ - "setenv fdtfile ${name_fdt}\0" \ + "if test $board_name = am64x_gpevm; then " \ + "setenv fdtfile k3-am642-evm.dtb; fi; " \ + "if test $board_name = am64x_skevm; then " \ + "setenv fdtfile k3-am642-sk.dtb; fi;" \ + "if test $fdtfile = undefined; then " \ + "echo WARNING: Could not determine device tree to use; fi; \0" \ "name_kern=Image\0" \ "console=ttyS2,115200n8\0" \ "args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000 " \
@@ -76,7 +79,7 @@"bootdir=/boot\0" \"rd_spec=-\0" \"init_mmc=run args_all args_mmc\0" \ -"get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}\0" \ +"get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \"get_overlay_mmc=" \"fdt address ${fdtaddr};" \"fdt resize 0x100000;" \
Signature · 1 line
2.30.0
PATCH 9/18 arm: dts: k3-am64-evm: Make chip id available before pre-reloc
In reply to Lokesh VutlaChipid will be needed for SoC detection for all stages of U-Boot. So make it u-boot,dm-spl
--- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm/dts/k3-am642-evm-u-boot.dtsi +7 -0
@@ -21,6 +21,13 @@ }; }; +&main_conf { + u-boot,dm-spl; + chipid at 14 { + u-boot,dm-spl; + }; +}; + &main_uart0 { u-boot,dm-spl; };
Signature · 1 line
2.30.0
PATCH 10/18 arm: dts: k3-am642-r5-evm: Do not use power-domains for I2C
In reply to Lokesh VutlaI2C EEPROM will be probed before SYSFW is available. So drop the power-domains property for I2C.
--- arch/arm/dts/k3-am642-r5-evm.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/dts/k3-am642-r5-evm.dts +5 -0
@@ -196,4 +196,9 @@ /delete-property/ power-domains; }; +/* EEPROM might be read before SYSFW is available */ +&main_i2c0 { + /delete-property/ power-domains; +}; + #include "k3-am642-evm-u-boot.dtsi"
Signature · 1 line
2.30.0
PATCH 11/18 arm: dts: am642-evm: Add I2C nodes
In reply to Lokesh VutlaAdd I2C nodes for AM64 and enable pinmux for i2c0 for reading eeprom data.
--- arch/arm/dts/k3-am64-main.dtsi | 44 +++++++++++++++++++++++++++ arch/arm/dts/k3-am64.dtsi | 2 ++ arch/arm/dts/k3-am642-evm-u-boot.dtsi | 18 +++++++++++ 3 files changed, 64 insertions(+)
arch/arm/dts/k3-am64-main.dtsi +44 -0
@@ -446,4 +446,48 @@ clocks = <&k3_clks 78 0>; clock-names = "gpio"; }; + + main_i2c0: i2c at 20000000 { + compatible = "ti,am64-i2c", "ti,omap4-i2c"; + reg = <0x0 0x20000000 0x0 0x100>; + interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + clock-names = "fck"; + clocks = <&k3_clks 102 2>; + power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>; + }; + + main_i2c1: i2c at 20010000 { + compatible = "ti,am64-i2c", "ti,omap4-i2c"; + reg = <0x0 0x20010000 0x0 0x100>; + interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + clock-names = "fck"; + clocks = <&k3_clks 103 2>; + power-domains = <&k3_pds 103 TI_SCI_PD_EXCLUSIVE>; + }; + + main_i2c2: i2c at 20020000 { + compatible = "ti,am64-i2c", "ti,omap4-i2c"; + reg = <0x00 0x20020000 0x0 0x100>; + interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + clock-names = "fck"; + clocks = <&k3_clks 104 2>; + power-domains = <&k3_pds 104 TI_SCI_PD_EXCLUSIVE>; + }; + + main_i2c3: i2c at 20030000 { + compatible = "ti,am64-i2c", "ti,omap4-i2c"; + reg = <0x00 0x20030000 0x0 0x100>; + interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + clock-names = "fck"; + clocks = <&k3_clks 105 2>; + power-domains = <&k3_pds 105 TI_SCI_PD_EXCLUSIVE>; + }; };
arch/arm/dts/k3-am64.dtsi +2 -0
@@ -28,6 +28,8 @@ serial6 = &main_uart4; serial7 = &main_uart5; serial8 = &main_uart6; + i2c0 = &main_i2c0; + i2c1 = &main_i2c1; }; chosen { };
arch/arm/dts/k3-am642-evm-u-boot.dtsi +18 -0
@@ -28,6 +28,24 @@ }; }; +&main_pmx0 { + u-boot,dm-spl; + main_i2c0_pins_default: main-i2c0-pins-default { + u-boot,dm-spl; + pinctrl-single,pins = < + AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) /* (A18) I2C0_SCL */ + AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) /* (B18) I2C0_SDA */ + >; + }; +}; + +&main_i2c0 { + u-boot,dm-spl; + pinctrl-names = "default"; + pinctrl-0 = <&main_i2c0_pins_default>; + clock-frequency = <400000>; +}; + &main_uart0 { u-boot,dm-spl; };
Signature · 1 line
2.30.0
PATCH 12/18 arm: dts: am642-sk: Add initial sk dts
In reply to Lokesh VutlaAM642 StarterKit (SK) board is a low cost, small form factor board designed for TI?s AM642 SoC. It supports the following interfaces:
* 2 GB LPDDR4 RAM
* x2 Gigabit Ethernet interfaces capable of working in switch and MAC mode
* x1 USB 3.0 Type-A port
* x1 UHS-1 capable ?SD card slot
* 2.4/5 GHz WLAN + Bluetooth 4.2 through WL1837
* 512 Mbit OSPI flash
* x2 UART through UART-USB bridge
* XDS110 for onboard JTAG debug using USB
* Temperature sensors, user push buttons and LEDs
* 40-pin Raspberry Pi compatible GPIO header
* 24-pin header for peripherals in MCU island (I2C, UART, SPI, IO)
* 54-pin header for Programmable Realtime Unit (PRU) IO pins
* Interface for remote automation. Includes:
* power measurement and reset control
* boot mode change
Add basic support for AM642 SK.
--- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am642-sk-u-boot.dtsi | 87 +++++++++++++++++++++++++ arch/arm/dts/k3-am642-sk.dts | 94 ++++++++++++++++++++++++++++ 3 files changed, 183 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/k3-am642-sk-u-boot.dtsi create mode 100644 arch/arm/dts/k3-am642-sk.dts
arch/arm/dts/Makefile +2 -1
@@ -1057,7 +1057,8 @@ dtb-$(CONFIG_SOC_K3_J721E) += k3-j721e-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 \ - k3-am642-r5-evm.dtb + k3-am642-r5-evm.dtb \ + k3-am642-sk.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += \ mt7622-rfb.dtb \
arch/arm/dts/k3-am642-sk-u-boot.dtsi new file +87 -0
87 lines not on this page · raw message
arch/arm/dts/k3-am642-sk.dts new file +94 -0
94 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH 13/18 arm: dts: am642-r5-sk: Add r5 specific dts
In reply to Lokesh VutlaAdd R5 specific dts for AM64 SK
--- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am64-sk-lp4-1333MTs.dtsi | 2190 ++++++++++++++++++++++ arch/arm/dts/k3-am642-r5-sk.dts | 145 ++ 3 files changed, 2337 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/k3-am64-sk-lp4-1333MTs.dtsi create mode 100644 arch/arm/dts/k3-am642-r5-sk.dts
arch/arm/dts/Makefile +2 -1
@@ -1058,7 +1058,8 @@ dtb-$(CONFIG_SOC_K3_J721E) += k3-j721e-common-proc-board.dtb \ k3-j7200-r5-common-proc-board.dtb dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \ k3-am642-r5-evm.dtb \ - k3-am642-sk.dtb + k3-am642-sk.dtb \ + k3-am642-r5-sk.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += \ mt7622-rfb.dtb \
arch/arm/dts/k3-am64-sk-lp4-1333MTs.dtsi new file +2190 -0
2,190 lines not on this page · raw message
arch/arm/dts/k3-am642-r5-sk.dts new file +145 -0
145 lines not on this page · raw message
Signature · 1 line
2.30.0
PATCH 14/18 configs: am64x_evm_r5: Enable checks for spl and stack sizes
In reply to Lokesh VutlaEnable relevant configs that checks for the size of image and stack:
BSS: 4KB
Initial MALLOC: 512KB
Initial Stack: 8K
SPL Image size can be: ~960KB
--- configs/am64x_evm_r5_defconfig | 5 +++++ 1 file changed, 5 insertions(+)
configs/am64x_evm_r5_defconfig +5 -0
@@ -14,6 +14,8 @@ CONFIG_SPL_MMC_SUPPORT=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL_DRIVERS_MISC_SUPPORT=y CONFIG_SPL_STACK_R_ADDR=0x82000000 +CONFIG_SPL_SIZE_LIMIT=0x190000 +CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x4000 CONFIG_SPL_FS_FAT=y CONFIG_SPL_LIBDISK_SUPPORT=y CONFIG_SPL_SPI_FLASH_SUPPORT=y
@@ -21,6 +23,9 @@ 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_SIZE_LIMIT_SUBTRACT_GD=y +CONFIG_SPL_SIZE_LIMIT_SUBTRACT_MALLOC=y +CONFIG_SPL_SYS_REPORT_STACK_F_USAGE=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y CONFIG_SPL_SEPARATE_BSS=y
Signature · 1 line
2.30.0
PATCH 15/18 configs: am64x_evm_r5: Enable support for building multiple device trees
In reply to Lokesh VutlaEnable defconfigs for building multiple device trees into a single FIT image.
--- configs/am64x_evm_r5_defconfig | 3 +++ 1 file changed, 3 insertions(+)
configs/am64x_evm_r5_defconfig +3 -0
@@ -49,6 +49,7 @@ CONFIG_CMD_FAT=y CONFIG_OF_CONTROL=y CONFIG_SPL_OF_CONTROL=y CONFIG_SPL_MULTI_DTB_FIT=y +CONFIG_SPL_OF_LIST="k3-am642-r5-evm k3-am642-r5-sk" CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y CONFIG_ENV_IS_IN_FAT=y CONFIG_ENV_FAT_DEVICE_AND_PART="1:1"
@@ -65,6 +66,8 @@ CONFIG_CLK_TI_SCI=y CONFIG_TI_SCI_PROTOCOL=y CONFIG_DM_GPIO=y CONFIG_DA8XX_GPIO=y +CONFIG_DM_I2C=y +CONFIG_SYS_I2C_OMAP24XX=y CONFIG_DM_MAILBOX=y CONFIG_K3_SEC_PROXY=y CONFIG_DM_MMC=y
Signature · 1 line
2.30.0
PATCH 16/18 configs: am64x_evm_a53: Enable configs for printing cpuinfo
In reply to Lokesh VutlaEnable all relevant configs for printing CPU info.
--- configs/am64x_evm_a53_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
configs/am64x_evm_a53_defconfig +2 -1
@@ -23,7 +23,6 @@ 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
@@ -83,6 +82,8 @@ CONFIG_REMOTEPROC_TI_K3_ARM64=y CONFIG_DM_RESET=y CONFIG_RESET_TI_SCI=y CONFIG_DM_SERIAL=y +CONFIG_SOC_DEVICE=y +CONFIG_SOC_DEVICE_TI_K3=y CONFIG_SOC_TI=y CONFIG_SPI=y CONFIG_DM_SPI=y
Signature · 1 line
2.30.0
PATCH 17/18 configs: am64x_evm_a53: Enable support for reading eeprom
In reply to Lokesh VutlaEnable relevant configs for reading eeprom data and updating env variables.
--- board/ti/am64x/Kconfig | 3 +++ configs/am64x_evm_a53_defconfig | 4 ++++ 2 files changed, 7 insertions(+)
board/ti/am64x/Kconfig +3 -0
@@ -12,6 +12,7 @@ config TARGET_AM642_A53_EVM select SOC_K3_AM642 imply BOARD imply SPL_BOARD + imply TI_I2C_BOARD_DETECT config TARGET_AM642_R5_EVM bool "TI K3 based AM642 EVM running on R5"
@@ -38,6 +39,8 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "am64x_evm" +source "board/ti/common/Kconfig" + endif if TARGET_AM642_R5_EVM
configs/am64x_evm_a53_defconfig +4 -0
@@ -23,6 +23,7 @@ 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_BOARD_LATE_INIT=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y CONFIG_SPL_SEPARATE_BSS=y
@@ -35,6 +36,7 @@ CONFIG_SPL_RAM_DEVICE=y CONFIG_SPL_SPI_LOAD=y CONFIG_SPL_YMODEM_SUPPORT=y CONFIG_CMD_ASKENV=y +CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_TIME=y CONFIG_OF_CONTROL=y
@@ -57,6 +59,8 @@ CONFIG_CLK_TI_SCI=y CONFIG_DMA_CHANNELS=y CONFIG_TI_K3_NAVSS_UDMA=y CONFIG_TI_SCI_PROTOCOL=y +CONFIG_DM_I2C=y +CONFIG_SYS_I2C_OMAP24XX=y CONFIG_DM_MAILBOX=y CONFIG_K3_SEC_PROXY=y CONFIG_DM_MMC=y
Signature · 1 line
2.30.0
PATCH 18/18 configs: am64x_evm_a53: Enable support for building multiple dtbs
In reply to Lokesh VutlaEnable all relevant configs for building multiple dtbs into a single fit image and load the right dtb for next stage.
--- configs/am64x_evm_a53_defconfig | 3 +++ 1 file changed, 3 insertions(+)
configs/am64x_evm_a53_defconfig +3 -0
@@ -28,6 +28,7 @@ CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_DMA=y +CONFIG_SPL_I2C_SUPPORT=y CONFIG_SPL_DM_MAILBOX=y CONFIG_SPL_DM_SPI_FLASH=y CONFIG_SPL_POWER_DOMAIN=y
@@ -41,6 +42,8 @@ CONFIG_CMD_MMC=y CONFIG_CMD_TIME=y CONFIG_OF_CONTROL=y CONFIG_SPL_OF_CONTROL=y +CONFIG_OF_LIST="k3-am642-evm k3-am642-sk" +CONFIG_MULTI_DTB_FIT=y CONFIG_SPL_MULTI_DTB_FIT=y CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y CONFIG_ENV_IS_NOWHERE=y
Signature · 1 line
2.30.0
cover arm: k3-am64: Add initial support for AM64 SK
In reply to Lokesh VutlaQuoted 18 lines · Lokesh Vutla
AM642 StarterKit (SK) board is a low cost, small form factor board designed for TI?s AM642 SoC. It supports the following interfaces:
* 2 GB LPDDR4 RAM
* x2 Gigabit Ethernet interfaces capable of working in switch and MAC mode
* x1 USB 3.0 Type-A port
* x1 UHS-1 capable ?SD card slot
* 2.4/5 GHz WLAN + Bluetooth 4.2 through WL1837
* 512 Mbit OSPI flash
* x2 UART through UART-USB bridge
* XDS110 for onboard JTAG debug using USB
* Temperature sensors, user push buttons and LEDs
* 40-pin Raspberry Pi compatible GPIO header
* 24-pin header for peripherals in MCU island (I2C, UART, SPI, IO)
* 54-pin header for Programmable Realtime Unit (PRU) IO pins
* Interface for remote automation. Includes:
* power measurement and reset control
* boot mode change
Quoted 5 lines
This series adds support for:
- AM64 SoC detection
- AM64 board detection
- AM64 SK initial support
- Re-use EVM defconfigs for SK.
All seems fine to me, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210507/736ec4a4/attachment.sig>
cover arm: k3-am64: Add initial support for AM64 SK
In reply to Lokesh VutlaQuoted 24 lines · Lokesh Vutla
AM642 StarterKit (SK) board is a low cost, small form factor board designed for TI?s AM642 SoC. It supports the following interfaces:
* 2 GB LPDDR4 RAM
* x2 Gigabit Ethernet interfaces capable of working in switch and MAC mode
* x1 USB 3.0 Type-A port
* x1 UHS-1 capable ?SD card slot
* 2.4/5 GHz WLAN + Bluetooth 4.2 through WL1837
* 512 Mbit OSPI flash
* x2 UART through UART-USB bridge
* XDS110 for onboard JTAG debug using USB
* Temperature sensors, user push buttons and LEDs
* 40-pin Raspberry Pi compatible GPIO header
* 24-pin header for peripherals in MCU island (I2C, UART, SPI, IO)
* 54-pin header for Programmable Realtime Unit (PRU) IO pins
* Interface for remote automation. Includes:
* power measurement and reset control
* boot mode changeThis series adds support for:
- AM64 SoC detection
- AM64 board detection
- AM64 SK initial support
- Re-use EVM defconfigs for SK.
Quoted 4 lines
This series depends on the following series:
- https://patchwork.ozlabs.org/user/todo/uboot/?series=240546
- https://patchwork.ozlabs.org/user/todo/uboot/?series=241946
- https://patchwork.ozlabs.org/user/todo/uboot/?series=242110
Fixed the timer clock frequency locally and applied to u-boot-ti/for-rc
Thanks and regards,
Lokesh