Introduce initial TI's J784S4 and AM69 support
Subsystems (8)
v10 cover Introduce initial TI's J784S4 and AM69 support
Hello Everyone!
This series will introduce basic support (SD and UART) support for Texas Instruments J784S4 EVM.
The J784S4 SoC device tree patches are taken from kernel patch submissions and will be updated as they are accepted and merged to the kernel tree. All other patches are specific to SPL and u-boot and do not have dependency on other trees. Appreciate a review for acceptance to u-boot tree.
Here are some of the salient features of the J784S4 automotive grade application processor:
The J784S4 SoC belongs to the K3 Multicore SoC architecture platform, providing advanced system integration in automotive, ADAS and industrial applications requiring AI at the network edge. This SoC extends the K3 Jacinto 7 family of SoCs with focus on raising performance and integration while providing interfaces, memory architecture and compute performance for multi-sensor, high concurrency applications.
Some highlights of this SoC are:
* Up to 8 Cortex-A72s, four clusters of lockstep capable dual Cortex-R5F MCUs, 4 C7x floating point vector DSPs with Matrix Multiply Accelerator(MMA) for deep learning and CNN.
* 3D GPU: Automotive grade IMG BXS-4-64 MC1
* Vision Processing Accelerator (VPAC) with image signal processor and Depth and Motion Processing Accelerator (DMPAC)
* Three CSI2.0 4L RX plus two CSI2.0 4L TX, two DSI Tx, one eDP/DP and one DPI interface.
* Integrated gigabit ethernet switch, up to 8 ports (TDA4VH), two ports support 10Gb USXGMII; Two 4 lane PCIe-GEN3 controllers, USB3.0 Dual-role device subsystems, Up to 20 MCANs, among other peripherals.
See J784S4 Technical Reference Manual (SPRUJ52 - JUNE 2022) for further details: http://www.ti.com/lit/zip/spruj52
In addtion, the J784S4 EVM board is designed for TI J784S4 SoC. It supports the following interfaces:
* 32 GB DDR4 RAM
* x2 Gigabit Ethernet interfaces capable of working in Switch and MAC mode
* x1 Input Audio Jack, x1 Output Audio Jack
* x1 USB2.0 Hub with two Type A host and x1 USB 3.1 Type-C Port
* x2 4L PCIe connector
* x1 UHS-1 capable micro-SD card slot
* 512 Mbit OSPI flash, 1 Gbit Octal NAND flash, 512 Mbit QSPI flash, UFS flash.
* x6 UART through UART-USB bridge
* XDS110 for onboard JTAG debug using USB
* Temperature sensors, user push buttons and LEDs
* 40-pin User Expansion Connector
* x2 ENET Expansion Connector, x1 GESI expander, x2 Display connector
* x1 15-pin CSI header
* x6 MCAN instances
Schematics: https://www.ti.com/lit/zip/sprr458
AM69 SD mode bootlog: https://gist.githubusercontent.com/apurvanandan1997/1b2c55d0204ff0f5a47ebbc196a97e99/raw/
J784S4 SD mode bootlog: https://gist.githubusercontent.com/apurvanandan1997/5e2ef85ee4322798d22b57a60dc917db/raw/
eMMC UDA moode bootlog: https://gist.githubusercontent.com/apurvanandan1997/3cffada252d50a8aa0c00a91f1f2f856/raw/
Note: This series is dependent on the following series for OF_UPSTREAM support
https://lore.kernel.org/all/[email protected]/
And, '[PATCH 01/15] Makefile: remove hardcoded device tree source directory' has been cherry-picked from PATCH 11 of https://lore.kernel.org/all/[email protected]/ by Bryan Brattlof
Changes in v10:
1) Fixed build failure due to missing OF_UPSTREAM in a72 defconfigs
2) Updated paths of board dtbs in binman.dtsi, CONFIG_OF_LIST and CONFIG_DEFAULT_DEVICE_TREE
Changes in v9:
1) Added support for OF_UPSTREAM and removed Linux dts copy/sync patches
2) Fixed DRAM enumeration algorithm in j784s4_init.c by adding max no. of controllers
3) Squashed bootph-all property of memory node into appropriate patch
4) Moved DDR changes out of the DMA patch
5) Fixed commit messages, MAINTAINERS file, and removed unnecessary C headers
6) Added comment for WKUP_UART0
7) Used #include for defconfig for AM69-SK platform instead of config fragments
8) Fixed J784S4 EVM boot switch nameing in doc
Link to v8:
https://lore.kernel.org/u-boot/[email protected]/
Changes in v8:
1) Squashed Linux am69-sk and j784s4-evm dts patches into one
2) Sorted config addition of SoC in arm/mach-K3/Kconfig
3) Updated commit messages according to the reviews
4) Removed #inlcude <config.h>
5) Removed k3_mmc_stop_clock and k3_mmc_restart_clock
6) Moved board_init_f logic to separate smaller functions
7) Removed J784S4 EVM specific Kconfig options in j784s4_int.c
8) Cleaned up emmc boot flow based on commit 66459346463439c72f84cfd1f985496b8a6142d8
9) Removed the dependency of findfdt and updated to ti_set_fdt_env
10) Updated copyright messages
11) Did cleanup/formatting of yaml files, removing linting errors
12) Removed k3-am69-sk specific things from k3-j784s4-binman.dtsi
13) Changed OF_LIST to a single dtb
14) Added bootph-all tag in EVM and SK dts instead of u-boot.dtsi
15) Trimmed the defconfig files to minimal
16) Merged the MAINTAINER file in right patches
17) Updated OpenOCD tag in U-Boot doc
18) And fixed other formatting mistakes.
Link to v7:
https://lore.kernel.org/u-boot/[email protected]/
Changes in v7:
1) Moved to unified memory map in arm64-mmu.c based on
https://lore.kernel.org/all/[email protected]/
2) Used ARRAY_SIZE in clk-data.c and dev-data.c
3) Removed I2C board detect from j784s4_init.c
4) Rebased to latest next
Link to v6:
https://lore.kernel.org/all/[email protected]/
Changes in v6:
1) Move bootph-all of memory node to u-boot.dtsi
2) Used a while loop for DRAM controller init, instead of hard-coding for 4 DRAM
3) Fixed build error by adding board/ti/j784s4/Kconfig
4) Trimmed out j784s4_evm.h
5) Fixed checkpatch warnings
Link to v5:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/
Changes in v5:
1) Incorporated Andrew Davis' "Move R5 specific code into new r5/ directory" and "Move board selection to mach-k3" series changes.
2) Incorporated Neha Francis' "Move to using templated FITs" series changes.
3) Synced device tree files with Linux v6.7-rc1
4) Changed ti_mmc to mmc1 target from bootstd
5) Updated doc based on review comments
6) Removed remoteproc support from the series
7) Splitted board files patch into smaller patches
8) Trimmed j784s4.env to necessary variables
9) Used fdtdec_setup_mem_size_base fdtdec_setup_memory_banksize in evm.c
10) Trimmed down evm.c to essential header files.
11) Switched to multi-dtb fit compilation with config fragments
Link to v4:
https://lore.kernel.org/u-boot/[email protected]/
Changes in v4:
1) Cleaned up Copyright and SPDX identifiers
2) Synced the device trees to Linux v6.6-rc1 tag
3) Added cleanup patch for sorting SoC JTAG ID entries
4) Removed EEPROM board detect from evm.c and added am69 config fragments
5) Updated MAINTAINERS files and commit messages
6) Removed struct renaming in ti_k3_r5f_rproc driver
Link to v3:
https://lore.kernel.org/u-boot/[email protected]/
Changes in v3:
1) Added AM69 SK support in the series
2) Switched from distroboot to bootstd support
3) Added remoteproc support for J784S4
4) Added documentation for both SoCs
5) Added binman support
6) Removed unnecessarry nodes from r5-evm.dts and evm-u-boot.dtsi
7) Added HS device support
8) Added env file for environement variables
9) Removed ti-serdes-mux bindings
10) Cleaned up all files and synced with latest
11) Addressed all previous review comments
Note: The base dts files have been sync from next-20230905 linux tag as per review comment received on previous re-roll:
https://lore.kernel.org/u-boot/20230321155227.GV8135@bill-the-cat/
Link to v2:
https://lore.kernel.org/u-boot/[email protected]/
Apurva Nandan (12):
arm: mach-k3: Kconfig: Sort SOC_K3 config entries
arm: mach-k3: Add basic support for J784S4 SoC definition
arm: mach-k3: Sort SoC JTAG_ID entries
soc: ti: k3-socinfo: Add entry for J784S4 SoC
arm: mach-k3: j784s4: Add clk and power support
drivers: dma: Add support for J784S4 SoC
board: ti: j784s4: Add board support for J784S4 EVM
board: ti: j748s4: Add board config yaml files
board: ti: j784s4: Add boot environment variables
arm: dts: Introduce j784s4 u-boot dts files
configs: j784s4_evm: Add defconfig for J784S4 EVM board
doc: board: ti: k3: Add J784S4 EVM and AM69 SK documentation
Bryan Brattlof (1):
Makefile: remove hardcoded device tree source directory
Dasnavis Sabiya (2):
arm: dts: Introduce am69-sk u-boot dts files
configs: am69_sk: Add defconfig for AM69 SK board
Makefile | 18 +- arch/arm/dts/Makefile | 4 + arch/arm/dts/k3-am69-r5-sk.dts | 106 + arch/arm/dts/k3-am69-sk-u-boot.dtsi | 54 + arch/arm/dts/k3-j784s4-binman.dtsi | 345 + arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi | 8757 ++++++++++++++++ arch/arm/dts/k3-j784s4-ddr.dtsi | 8858 +++++++++++++++++ arch/arm/dts/k3-j784s4-evm-u-boot.dtsi | 31 + arch/arm/dts/k3-j784s4-r5-evm.dts | 106 + arch/arm/mach-k3/Kconfig | 33 +- arch/arm/mach-k3/Makefile | 2 + arch/arm/mach-k3/include/mach/hardware.h | 13 +- .../mach-k3/include/mach/j784s4_hardware.h | 59 + arch/arm/mach-k3/include/mach/j784s4_spl.h | 47 + arch/arm/mach-k3/include/mach/spl.h | 4 + arch/arm/mach-k3/j784s4/Kconfig | 34 + arch/arm/mach-k3/j784s4_fdt.c | 15 + arch/arm/mach-k3/j784s4_init.c | 310 + arch/arm/mach-k3/r5/Makefile | 1 + arch/arm/mach-k3/r5/j784s4/Makefile | 7 + arch/arm/mach-k3/r5/j784s4/clk-data.c | 428 + arch/arm/mach-k3/r5/j784s4/dev-data.c | 98 + board/ti/j784s4/Kconfig | 37 + board/ti/j784s4/MAINTAINERS | 21 + board/ti/j784s4/Makefile | 7 + board/ti/j784s4/board-cfg.yaml | 37 + board/ti/j784s4/evm.c | 41 + board/ti/j784s4/j784s4.env | 17 + board/ti/j784s4/pm-cfg.yaml | 13 + board/ti/j784s4/rm-cfg.yaml | 3058 ++++++ board/ti/j784s4/sec-cfg.yaml | 380 + board/ti/j784s4/tifs-rm-cfg.yaml | 2656 +++++ configs/am69_sk_a72_defconfig | 9 + configs/am69_sk_r5_defconfig | 10 + configs/j784s4_evm_a72_defconfig | 159 + configs/j784s4_evm_r5_defconfig | 153 + doc/board/ti/j784s4_evm.rst | 299 + doc/board/ti/k3.rst | 1 + drivers/clk/ti/clk-k3.c | 6 + drivers/dma/ti/Makefile | 1 + drivers/dma/ti/k3-psil-j784s4.c | 166 + drivers/dma/ti/k3-psil-priv.h | 1 + drivers/dma/ti/k3-psil.c | 2 + drivers/firmware/ti_sci_static_data.h | 34 + drivers/power/domain/ti-power-domain.c | 6 + drivers/ram/Kconfig | 2 +- drivers/soc/soc_ti_k3.c | 3 + include/configs/j784s4_evm.h | 15 + include/k3-clk.h | 1 + include/k3-dev.h | 1 + scripts/Makefile.spl | 17 +- 51 files changed, 26455 insertions(+), 28 deletions(-) create mode 100644 arch/arm/dts/k3-am69-r5-sk.dts create mode 100644 arch/arm/dts/k3-am69-sk-u-boot.dtsi create mode 100644 arch/arm/dts/k3-j784s4-binman.dtsi create mode 100644 arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi create mode 100644 arch/arm/dts/k3-j784s4-ddr.dtsi create mode 100644 arch/arm/dts/k3-j784s4-evm-u-boot.dtsi create mode 100644 arch/arm/dts/k3-j784s4-r5-evm.dts create mode 100644 arch/arm/mach-k3/include/mach/j784s4_hardware.h create mode 100644 arch/arm/mach-k3/include/mach/j784s4_spl.h create mode 100644 arch/arm/mach-k3/j784s4/Kconfig create mode 100644 arch/arm/mach-k3/j784s4_fdt.c create mode 100644 arch/arm/mach-k3/j784s4_init.c create mode 100644 arch/arm/mach-k3/r5/j784s4/Makefile create mode 100644 arch/arm/mach-k3/r5/j784s4/clk-data.c create mode 100644 arch/arm/mach-k3/r5/j784s4/dev-data.c create mode 100644 board/ti/j784s4/Kconfig create mode 100644 board/ti/j784s4/MAINTAINERS create mode 100644 board/ti/j784s4/Makefile create mode 100644 board/ti/j784s4/board-cfg.yaml create mode 100644 board/ti/j784s4/evm.c create mode 100644 board/ti/j784s4/j784s4.env create mode 100644 board/ti/j784s4/pm-cfg.yaml create mode 100644 board/ti/j784s4/rm-cfg.yaml create mode 100644 board/ti/j784s4/sec-cfg.yaml create mode 100644 board/ti/j784s4/tifs-rm-cfg.yaml create mode 100644 configs/am69_sk_a72_defconfig create mode 100644 configs/am69_sk_r5_defconfig create mode 100644 configs/j784s4_evm_a72_defconfig create mode 100644 configs/j784s4_evm_r5_defconfig create mode 100644 doc/board/ti/j784s4_evm.rst create mode 100644 drivers/dma/ti/k3-psil-j784s4.c create mode 100644 include/configs/j784s4_evm.h
Signature · 1 line
2.34.1
PATCH v10 1/15 Makefile: remove hardcoded device tree source directory
From: Bryan Brattlof <[email protected]>
Some boards that choose to utilize the OF_UPSTREAM directory for their device tree files will need to specify that directory instead of the traditional arch/$(ARCH)/dts/* path.
Include the correct path to the board's dtbs depending on if OF_UPSTREAM is selected or not.
--- Makefile | 18 ++++++++++++++---- scripts/Makefile.spl | 17 +++++++++++++---- 2 files changed, 27 insertions(+), 8 deletions(-)
Makefile +14 -4
@@ -1184,6 +1184,16 @@ dt_binding_check: scripts_dtc quiet_cmd_copy = COPY $@ cmd_copy = cp $< $@ +ifeq ($(CONFIG_OF_UPSTREAM),y) +ifeq ($(CONFIG_ARM64),y) +dt_dir := dts/upstream/src/arm64 +else +dt_dir := dts/upstream/src/$(ARCH) +endif +else +dt_dir := arch/$(ARCH)/dts +endif + ifeq ($(CONFIG_MULTI_DTB_FIT),y) ifeq ($(CONFIG_MULTI_DTB_FIT_LZO),y)
@@ -1209,7 +1219,7 @@ endif MKIMAGEFLAGS_fit-dtb.blob = -f auto -A $(ARCH) -T firmware -C none -O u-boot \ -a 0 -e 0 -E \ - $(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) -d /dev/null + $(patsubst %,-b $(dt_dir)/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) -d /dev/null MKIMAGEFLAGS_fit-dtb.blob += -B 0x8
@@ -1407,9 +1417,9 @@ MKIMAGEFLAGS_u-boot.img = -f auto -A $(ARCH) -T firmware -C none -O u-boot \ -a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \ -p $(CONFIG_FIT_EXTERNAL_OFFSET) \ -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" -E \ - $(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(DEVICE_TREE))) \ - $(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) \ - $(patsubst %,-b arch/$(ARCH)/dts/%.dtbo,$(subst ",,$(CONFIG_OF_OVERLAY_LIST))) + $(patsubst %,-b $(dt_dir)/%.dtb,$(subst ",,$(DEVICE_TREE))) \ + $(patsubst %,-b $(dt_dir)/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) \ + $(patsubst %,-b $(dt_dir)/%.dtbo,$(subst ",,$(CONFIG_OF_OVERLAY_LIST))) else MKIMAGEFLAGS_u-boot.img = -A $(ARCH) -T firmware -C none -O u-boot \ -a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
scripts/Makefile.spl +13 -4
@@ -559,9 +559,15 @@ FORCE: $(obj)/dts/dt-$(SPL_NAME).dtb: dts/dt.dtb $(Q)$(MAKE) $(build)=$(obj)/dts spl_dtbs -PHONY += dts_dir -dts_dir: - $(shell [ -d $(obj)/dts ] || mkdir -p $(obj)/dts) +ifeq ($(CONFIG_OF_UPSTREAM),y) +ifeq ($(CONFIG_ARM64),y) +dt_dir := dts/upstream/src/arm64 +else +dt_dir := dts/upstream/src/$(ARCH) +endif +else +dt_dir := arch/$(ARCH)/dts +endif # Declare the contents of the .PHONY variable as phony. We keep that # information in a variable so we can use it in if_changed and friends.
@@ -569,8 +575,11 @@ dts_dir: SPL_OF_LIST_TARGETS = $(patsubst %,dts/%.dtb,$(subst ",,$(CONFIG_SPL_OF_LIST))) SHRUNK_ARCH_DTB = $(addprefix $(obj)/,$(SPL_OF_LIST_TARGETS)) +$(dir $(SHRUNK_ARCH_DTB)): + $(shell [ -d $@ ] || mkdir -p $@) + .SECONDEXPANSION: -$(SHRUNK_ARCH_DTB): $$(patsubst $(obj)/dts/%, arch/$(ARCH)/dts/%, $$@) dts_dir +$(SHRUNK_ARCH_DTB): $$(patsubst $(obj)/dts/%, $(dt_dir)/%, $$@) $(dir $(SHRUNK_ARCH_DTB)) $(call if_changed,fdtgrep) targets += $(SPL_OF_LIST_TARGETS)
Signature · 1 line
2.34.1
PATCH v10 2/15 arm: mach-k3: Kconfig: Sort SOC_K3 config entries
In reply to Apurva NandanSort SOC_K3 config entries in alphabetical order
for clean up.
--- arch/arm/mach-k3/Kconfig | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
arch/arm/mach-k3/Kconfig +9 -9
@@ -4,6 +4,15 @@ choice prompt "Texas Instruments' K3 based SoC select" optional +config SOC_K3_AM625 + bool "TI's K3 based AM625 SoC Family Support" + +config SOC_K3_AM62A7 + bool "TI's K3 based AM62A7 SoC Family Support" + +config SOC_K3_AM642 + bool "TI's K3 based AM642 SoC Family Support" + config SOC_K3_AM654 bool "TI's K3 based AM654 SoC Family Support"
@@ -13,15 +22,6 @@ config SOC_K3_J721E config SOC_K3_J721S2 bool "TI's K3 based J721S2 SoC Family Support" -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" - -config SOC_K3_AM62A7 - bool "TI's K3 based AM62A7 SoC Family Support" - endchoice if SOC_K3_J721E
Signature · 1 line
2.34.1
PATCH v10 3/15 arm: mach-k3: Add basic support for J784S4 SoC definition
In reply to Apurva NandanAdd J784S4 initialization files for initial SPL boot.
config SYS_K3_MCU_SCRATCHPAD_BASE default value is same for J721E, J721S2, J784S4. So combined them into a single default.
--- arch/arm/mach-k3/Kconfig | 16 +- arch/arm/mach-k3/Makefile | 2 + arch/arm/mach-k3/include/mach/hardware.h | 4 + .../mach-k3/include/mach/j784s4_hardware.h | 59 ++++ arch/arm/mach-k3/include/mach/j784s4_spl.h | 47 +++ arch/arm/mach-k3/include/mach/spl.h | 4 + arch/arm/mach-k3/j784s4_fdt.c | 15 + arch/arm/mach-k3/j784s4_init.c | 310 ++++++++++++++++++ arch/arm/mach-k3/r5/Makefile | 1 + drivers/ram/Kconfig | 2 +- 10 files changed, 452 insertions(+), 8 deletions(-) create mode 100644 arch/arm/mach-k3/include/mach/j784s4_hardware.h create mode 100644 arch/arm/mach-k3/include/mach/j784s4_spl.h create mode 100644 arch/arm/mach-k3/j784s4_fdt.c create mode 100644 arch/arm/mach-k3/j784s4_init.c
arch/arm/mach-k3/Kconfig +9 -7
@@ -22,6 +22,9 @@ config SOC_K3_J721E config SOC_K3_J721S2 bool "TI's K3 based J721S2 SoC Family Support" +config SOC_K3_J784S4 + bool "TI's K3 based J784S4 SoC Family Support" + endchoice if SOC_K3_J721E
@@ -35,7 +38,7 @@ config SYS_SOC config SYS_K3_NON_SECURE_MSRAM_SIZE hex default 0x80000 if SOC_K3_AM654 - default 0x100000 if SOC_K3_J721E || SOC_K3_J721S2 + default 0x100000 if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4 default 0x1c0000 if SOC_K3_AM642 default 0x3c000 if SOC_K3_AM625 || SOC_K3_AM62A7 help
@@ -47,7 +50,7 @@ config SYS_K3_NON_SECURE_MSRAM_SIZE config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE hex default 0x58000 if SOC_K3_AM654 - default 0xc0000 if SOC_K3_J721E || SOC_K3_J721S2 + default 0xc0000 if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4 default 0x180000 if SOC_K3_AM642 default 0x38000 if SOC_K3_AM625 || SOC_K3_AM62A7 help
@@ -57,15 +60,14 @@ config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE config SYS_K3_MCU_SCRATCHPAD_BASE hex default 0x40280000 if SOC_K3_AM654 - default 0x41cff9fc if SOC_K3_J721S2 - default 0x41cff9fc if SOC_K3_J721E + default 0x41cff9fc if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4 help Describes the base address of MCU Scratchpad RAM. config SYS_K3_MCU_SCRATCHPAD_SIZE hex default 0x200 if SOC_K3_AM654 - default 0x200 if SOC_K3_J721E || SOC_K3_J721S2 + default 0x200 if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4 help Describes the size of MCU Scratchpad RAM.
@@ -73,7 +75,7 @@ config SYS_K3_BOOT_PARAM_TABLE_INDEX hex default 0x41c7fbfc if SOC_K3_AM654 default 0x41cffbfc if SOC_K3_J721E - default 0x41cfdbfc if SOC_K3_J721S2 + default 0x41cfdbfc if SOC_K3_J721S2 || SOC_K3_J784S4 default 0x701bebfc if SOC_K3_AM642 default 0x43c3f290 if SOC_K3_AM625 default 0x43c3f290 if SOC_K3_AM62A7 && CPU_V7R
@@ -130,7 +132,7 @@ config K3_ATF_LOAD_ADDR config K3_DM_FW bool "Separate DM firmware image" - depends on CPU_V7R && (SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_AM625 || SOC_K3_AM62A7) && !CLK_TI_SCI && !TI_SCI_POWER_DOMAIN + depends on CPU_V7R && (SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_AM625 || SOC_K3_AM62A7 || SOC_K3_J784S4) && !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 +2 -0
@@ -12,6 +12,7 @@ obj-$(CONFIG_SOC_K3_AM654) += am654_fdt.o obj-$(CONFIG_SOC_K3_J721E) += j721e_fdt.o obj-$(CONFIG_SOC_K3_J721S2) += j721s2_fdt.o obj-$(CONFIG_SOC_K3_AM625) += am625_fdt.o +obj-$(CONFIG_SOC_K3_J784S4) += j784s4_fdt.o endif ifeq ($(CONFIG_SPL_BUILD),y) obj-$(CONFIG_SOC_K3_AM654) += am654_init.o
@@ -20,5 +21,6 @@ obj-$(CONFIG_SOC_K3_J721S2) += j721s2_init.o obj-$(CONFIG_SOC_K3_AM642) += am642_init.o obj-$(CONFIG_SOC_K3_AM625) += am625_init.o obj-$(CONFIG_SOC_K3_AM62A7) += am62a7_init.o +obj-$(CONFIG_SOC_K3_J784S4) += j784s4_init.o endif obj-y += common.o security.o
arch/arm/mach-k3/include/mach/hardware.h +4 -0
@@ -33,6 +33,10 @@#include "am62a_qos.h" #endif +#ifdef CONFIG_SOC_K3_J784S4 +#include "j784s4_hardware.h" +#endif +/* Assuming these addresses and definitions stay common across K3 devices */ #define CTRLMMR_WKUP_JTAG_ID (WKUP_CTRL_MMR0_BASE + 0x14)#define JTAG_ID_VARIANT_SHIFT 28
arch/arm/mach-k3/include/mach/j784s4_hardware.h new file +59 -0
59 lines not on this page · raw message
arch/arm/mach-k3/include/mach/j784s4_spl.h new file +47 -0
47 lines not on this page · raw message
arch/arm/mach-k3/include/mach/spl.h +4 -0
@@ -30,4 +30,8 @@#include "am62a_spl.h" #endif +#ifdef CONFIG_SOC_K3_J784S4 +#include "j784s4_spl.h" +#endif +#endif /* _ASM_ARCH_SPL_H_ */
arch/arm/mach-k3/j784s4_fdt.c new file +15 -0
@@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* +* J784S4: SoC specific initialization +* +* Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ +* Apurva Nandan <[email protected]> +*/ + +#include "common_fdt.h" +#include <fdt_support.h> + +int ft_system_setup (void *blob,struct bd_info *bd) +{ +return fdt_fixup_msmc_ram_k3 (blob); +}
arch/arm/mach-k3/j784s4_init.c new file +310 -0
310 lines not on this page · raw message
arch/arm/mach-k3/r5/Makefile +1 -0
@@ -8,6 +8,7 @@ obj-$(CONFIG_SOC_K3_J721E) += j7200/ obj-$(CONFIG_SOC_K3_J721S2) += j721s2/ obj-$(CONFIG_SOC_K3_AM625) += am62x/ obj-$(CONFIG_SOC_K3_AM62A7) += am62ax/ +obj-$(CONFIG_SOC_K3_J784S4) += j784s4/ obj-y += lowlevel_init.o obj-y += r5_mpu.o
drivers/ram/Kconfig +1 -1
@@ -62,7 +62,7 @@ choice depends on K3_DDRSS prompt "K3 DDRSS Arch Support" - default K3_J721E_DDRSS if SOC_K3_J721E || SOC_K3_J721S2 + default K3_J721E_DDRSS if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4 default K3_AM64_DDRSS if SOC_K3_AM642 default K3_AM64_DDRSS if SOC_K3_AM625 default K3_AM62A_DDRSS if SOC_K3_AM62A7
Signature · 1 line
2.34.1
PATCH v10 4/15 arm: mach-k3: Sort SoC JTAG_ID entries
In reply to Apurva NandanSort JTAG_IDs for K3 SoCs in hardware.h in alphabetical order.
--- arch/arm/mach-k3/include/mach/hardware.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/mach-k3/include/mach/hardware.h +4 -4
@@ -43,13 +43,13 @@#define JTAG_ID_VARIANT_MASK (0xf << 28)#define JTAG_ID_PARTNO_SHIFT 12#define JTAG_ID_PARTNO_MASK (0xffff << 12) +#define JTAG_ID_PARTNO_AM62AX 0xbb8d +#define JTAG_ID_PARTNO_AM62X 0xbb7e +#define JTAG_ID_PARTNO_AM64X 0xbb38#define JTAG_ID_PARTNO_AM65X 0xbb5a -#define JTAG_ID_PARTNO_J721E 0xbb64#define JTAG_ID_PARTNO_J7200 0xbb6d -#define JTAG_ID_PARTNO_AM64X 0xbb38 +#define JTAG_ID_PARTNO_J721E 0xbb64#define JTAG_ID_PARTNO_J721S2 0xbb75 -#define JTAG_ID_PARTNO_AM62X 0xbb7e -#define JTAG_ID_PARTNO_AM62AX 0xbb8d#define K3_SOC_ID (id,ID ) \ static inline bool soc_is_##id(void) \
Signature · 1 line
2.34.1
PATCH v10 5/15 soc: ti: k3-socinfo: Add entry for J784S4 SoC
In reply to Apurva NandanAdd support for J784S4 SoC Identification.
--- arch/arm/mach-k3/include/mach/hardware.h | 1 + drivers/soc/soc_ti_k3.c | 3 +++ 2 files changed, 4 insertions(+)
arch/arm/mach-k3/include/mach/hardware.h +1 -0
@@ -50,6 +50,7 @@#define JTAG_ID_PARTNO_J7200 0xbb6d#define JTAG_ID_PARTNO_J721E 0xbb64#define JTAG_ID_PARTNO_J721S2 0xbb75 +#define JTAG_ID_PARTNO_J784S4 0xbb80#define K3_SOC_ID (id,ID ) \ static inline bool soc_is_##id(void) \
drivers/soc/soc_ti_k3.c +3 -0
@@ -45,6 +45,9 @@ static const char *get_family_string(u32 idreg)case JTAG_ID_PARTNO_AM62AX : family ="AM62AX" ;break ; +case JTAG_ID_PARTNO_J784S4 : + family ="J784S4" ; +break ;default : family ="Unknown Silicon" ; };
Signature · 1 line
2.34.1
PATCH v10 6/15 arm: mach-k3: j784s4: Add clk and power support
In reply to Apurva NandanAdd clk and device data which can be used by respective drivers to configure clocks and PSC.
--- arch/arm/mach-k3/r5/j784s4/Makefile | 7 + arch/arm/mach-k3/r5/j784s4/clk-data.c | 428 +++++++++++++++++++++++++ arch/arm/mach-k3/r5/j784s4/dev-data.c | 98 ++++++ 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, 547 insertions(+) create mode 100644 arch/arm/mach-k3/r5/j784s4/Makefile create mode 100644 arch/arm/mach-k3/r5/j784s4/clk-data.c create mode 100644 arch/arm/mach-k3/r5/j784s4/dev-data.c
arch/arm/mach-k3/r5/j784s4/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ +# + +obj-y += clk-data.o +obj-y += dev-data.o
arch/arm/mach-k3/r5/j784s4/clk-data.c new file +428 -0
428 lines not on this page · raw message
arch/arm/mach-k3/r5/j784s4/dev-data.c new file +98 -0
98 lines not on this page · raw message
drivers/clk/ti/clk-k3.c +6 -0
@@ -86,6 +86,12 @@ static const struct soc_attr ti_k3_soc_clk_data[] = { .family = "AM62AX", .data = &am62ax_clk_platdata, }, +#endif +#ifdef CONFIG_SOC_K3_J784S4 + { + .family = "J784S4", + .data = &j784s4_clk_platdata, + }, #endif {/* sentinel */ } };
drivers/power/domain/ti-power-domain.c +6 -0
@@ -98,6 +98,12 @@ static const struct soc_attr ti_k3_soc_pd_data[] = { .family = "AM62AX", .data = &am62ax_pd_platdata, }, +#endif +#ifdef CONFIG_SOC_K3_J784S4 + { + .family = "J784S4", + .data = &j784s4_pd_platdata, + }, #endif {/* sentinel */ } };
include/k3-clk.h +1 -0
@@ -176,6 +176,7 @@ 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;extern const struct ti_k3_clk_platdata am62ax_clk_platdata; +extern const struct ti_k3_clk_platdata j784s4_clk_platdata;struct clk *clk_register_ti_pll (const char *name,const char *parent_name,void __iomem *reg);
include/k3-dev.h +1 -0
@@ -80,6 +80,7 @@ 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;extern const struct ti_k3_pd_platdata am62ax_pd_platdata; +extern const struct ti_k3_pd_platdata j784s4_pd_platdata;u8 ti_pd_state (struct ti_pd *pd);u8 lpsc_get_state (struct ti_lpsc *lpsc);
Signature · 1 line
2.34.1
PATCH v10 7/15 drivers: dma: Add support for J784S4 SoC
In reply to Apurva NandanAdd support for DMA in J784S4 SoC.
--- drivers/dma/ti/Makefile | 1 + drivers/dma/ti/k3-psil-j784s4.c | 166 ++++++++++++++++++++++++++ drivers/dma/ti/k3-psil-priv.h | 1 + drivers/dma/ti/k3-psil.c | 2 + drivers/firmware/ti_sci_static_data.h | 34 ++++++ 5 files changed, 204 insertions(+) create mode 100644 drivers/dma/ti/k3-psil-j784s4.c
drivers/dma/ti/Makefile +1 -0
@@ -9,3 +9,4 @@ 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 k3-psil-data-$(CONFIG_SOC_K3_AM62A7) += k3-psil-am62a.o +k3-psil-data-$(CONFIG_SOC_K3_J784S4) += k3-psil-j784s4.o
drivers/dma/ti/k3-psil-j784s4.c new file +166 -0
166 lines not on this page · raw message
drivers/dma/ti/k3-psil-priv.h +1 -0
@@ -43,5 +43,6 @@ extern struct psil_ep_map j721s2_ep_map;extern struct psil_ep_map am64_ep_map;extern struct psil_ep_map am62_ep_map;extern struct psil_ep_map am62a_ep_map; +extern struct psil_ep_map j784s4_ep_map;#endif /* K3_PSIL_PRIV_H_ */
drivers/dma/ti/k3-psil.c +2 -0
@@ -28,6 +28,8 @@ struct psil_endpoint_config *psil_get_ep_config(u32 thread_id) soc_ep_map = &am62_ep_map; else if (IS_ENABLED(CONFIG_SOC_K3_AM62A7)) soc_ep_map = &am62a_ep_map; + else if (IS_ENABLED(CONFIG_SOC_K3_J784S4)) + soc_ep_map = &j784s4_ep_map; }if (thread_id &K3_PSIL_DST_THREAD_ID_OFFSET && soc_ep_map->dst) {
drivers/firmware/ti_sci_static_data.h +34 -0
@@ -97,6 +97,40 @@ static struct ti_sci_resource_static_data rm_static_data[] = { };#endif /* CONFIG_SOC_K3_AM625 || CONFIG_SOC_K3_AM62A7 */ +#if IS_ENABLED (CONFIG_SOC_K3_J784S4 ) +static struct ti_sci_resource_static_data rm_static_data[] = { +/* Free rings */ + { + .dev_id =328 , + .subtype =1 , + .range_start =208 , + .range_num =32 , + }, +/* TX channels */ + { + .dev_id =329 , + .subtype =13 , + .range_start =40 , + .range_num =3 , + }, +/* RX channels */ + { + .dev_id =329 , + .subtype =10 , + .range_start =40 , + .range_num =3 , + }, +/* RX Free flows */ + { + .dev_id =329 , + .subtype =0 , + .range_start =84 , + .range_num =8 , + }, + { }, +}; +#endif /* CONFIG_SOC_K3_J784S4 */ +#else static struct ti_sci_resource_static_data rm_static_data[] = { { },
Signature · 1 line
2.34.1
PATCH v10 8/15 board: ti: j784s4: Add board support for J784S4 EVM
In reply to Apurva NandanAdd board files for J784S4 EVM.
SYS_DISABLE_DCACHE_OPS is selected in the Kconfig because J784S4/AM69 are a coherent architecture at A72 level by MSMC support.
--- arch/arm/mach-k3/Kconfig | 1 + arch/arm/mach-k3/j784s4/Kconfig | 34 +++++++++++++++++++++++++++ board/ti/j784s4/Kconfig | 37 +++++++++++++++++++++++++++++ board/ti/j784s4/MAINTAINERS | 6 +++++ board/ti/j784s4/Makefile | 7 ++++++ board/ti/j784s4/evm.c | 41 +++++++++++++++++++++++++++++++++ include/configs/j784s4_evm.h | 15 ++++++++++++ 7 files changed, 141 insertions(+) create mode 100644 arch/arm/mach-k3/j784s4/Kconfig create mode 100644 board/ti/j784s4/Kconfig create mode 100644 board/ti/j784s4/MAINTAINERS create mode 100644 board/ti/j784s4/Makefile create mode 100644 board/ti/j784s4/evm.c create mode 100644 include/configs/j784s4_evm.h
arch/arm/mach-k3/Kconfig +1 -0
@@ -157,5 +157,6 @@ source "arch/arm/mach-k3/am62x/Kconfig" source "arch/arm/mach-k3/am62ax/Kconfig" source "arch/arm/mach-k3/j721e/Kconfig" source "arch/arm/mach-k3/j721s2/Kconfig" +source "arch/arm/mach-k3/j784s4/Kconfig" endif
arch/arm/mach-k3/j784s4/Kconfig new file +34 -0
@@ -0,0 +1,34 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ +# Hari Nagalla <[email protected]> + +if SOC_K3_J784S4 + +choice + prompt "K3 J784S4 board" + optional + +config TARGET_J784S4_A72_EVM + bool "TI K3 based J784S4 EVM running on A72" + select ARM64 + select BOARD_LATE_INIT + select SYS_DISABLE_DCACHE_OPS + select BINMAN + +config TARGET_J784S4_R5_EVM + bool "TI K3 based J784S4 EVM running on R5" + select CPU_V7R + select SYS_THUMB_BUILD + select K3_LOAD_SYSFW + select RAM + select SPL_RAM + select K3_DDRSS + select BINMAN + imply SYS_K3_SPL_ATF + +endchoice + +source "board/ti/j784s4/Kconfig" + +endif
board/ti/j784s4/Kconfig new file +37 -0
@@ -0,0 +1,37 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ +# Hari Nagalla <[email protected]> + +if TARGET_J784S4_A72_EVM + +config SYS_BOARD + default "j784s4" + +config SYS_VENDOR + default "ti" + +config SYS_CONFIG_NAME + default "j784s4_evm" + +source "board/ti/common/Kconfig" + +endif + +if TARGET_J784S4_R5_EVM + +config SYS_BOARD + default "j784s4" + +config SYS_VENDOR + default "ti" + +config SYS_CONFIG_NAME + default "j784s4_evm" + +config SPL_LDSCRIPT + default "arch/arm/mach-omap2/u-boot-spl.lds" + +source "board/ti/common/Kconfig" + +endif
board/ti/j784s4/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +J784S4 EVM BOARD +M: Apurva Nandan <[email protected]> +S: Maintained +F: board/ti/j784s4 +F: arch/arm/mach-k3/j784s4 +F: include/configs/j784s4_evm.h
board/ti/j784s4/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ +# Hari Nagalla <[email protected]> +# + +obj-y += evm.o
board/ti/j784s4/evm.c new file +41 -0
41 lines not on this page · raw message
include/configs/j784s4_evm.h new file +15 -0
@@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* +* Configuration header file for K3 J784S4 EVM +* +* Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ +* Hari Nagalla <[email protected]> +*/ + +#ifndef __CONFIG_J784S4_EVM_H +#define __CONFIG_J784S4_EVM_H + +/* Now for the remaining common defines */ +#include <configs/ti_armv7_common.h> + +#endif /* __CONFIG_J784S4_EVM_H */
Signature · 1 line
2.34.1
Re: [PATCH v10 08/15] board: ti: j784s4: Add board support for J784S4 EVM
Quoted 10 lines · Apurva Nandan
Add board files for J784S4 EVM.
SYS_DISABLE_DCACHE_OPSis selected in theKconfigbecause J784S4/AM69 are a coherent architecture at A72 level by MSMC support.Signed-off-by Hari Nagalla <[email protected]>Signed-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>Reviewed-by Tom Rini <[email protected]>
Signature · 1 line
Tom
PATCH v10 9/15 board: ti: j748s4: Add board config yaml files
In reply to Apurva NandanAdd board-cfg, rm-cfg, pm-cfg, sec-cfg, tifs-rm-cfg yaml for buidling u-boot sysfw data.
--- board/ti/j784s4/board-cfg.yaml | 37 + board/ti/j784s4/pm-cfg.yaml | 13 + board/ti/j784s4/rm-cfg.yaml | 3058 ++++++++++++++++++++++++++++++ board/ti/j784s4/sec-cfg.yaml | 380 ++++ board/ti/j784s4/tifs-rm-cfg.yaml | 2656 ++++++++++++++++++++++++++ 5 files changed, 6144 insertions(+) create mode 100644 board/ti/j784s4/board-cfg.yaml create mode 100644 board/ti/j784s4/pm-cfg.yaml create mode 100644 board/ti/j784s4/rm-cfg.yaml create mode 100644 board/ti/j784s4/sec-cfg.yaml create mode 100644 board/ti/j784s4/tifs-rm-cfg.yaml
board/ti/j784s4/board-cfg.yaml new file +37 -0
@@ -0,0 +1,37 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ +# +# Board configuration for J784S4 +# + +--- + +board-cfg: + rev: + boardcfg_abi_maj: 0x0 + boardcfg_abi_min: 0x1 + control: + subhdr: + magic: 0xC1D3 + size: 7 + main_isolation_enable: 0x5A + main_isolation_hostid: 0x2 + secproxy: + subhdr: + magic: 0x1207 + size: 7 + scaling_factor: 0x1 + scaling_profile: 0x1 + disable_main_nav_secure_proxy: 0 + msmc: + subhdr: + magic: 0xA5C3 + size: 5 + msmc_cache_size: 0x8 + debug_cfg: + subhdr: + magic: 0x020C + size: 8 + trace_dst_enables: 0x00 + trace_src_enables: 0x00
board/ti/j784s4/pm-cfg.yaml new file +13 -0
@@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ +# +# Power management configuration for J784S4 +# + +--- + +pm-cfg: + rev: + boardcfg_abi_maj: 0x0 + boardcfg_abi_min: 0x1
board/ti/j784s4/rm-cfg.yaml new file +3058 -0
2,950 lines not on this page · raw message
board/ti/j784s4/sec-cfg.yaml new file +380 -0
380 lines not on this page · raw message
board/ti/j784s4/tifs-rm-cfg.yaml new file +2656 -0
2,656 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.34.1
Part of the diff is not shown here. View the raw message.
PATCH v10 10/15 board: ti: j784s4: Add boot environment variables
In reply to Apurva NandanAdd env file with necessary boot variables.
--- board/ti/j784s4/j784s4.env | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 board/ti/j784s4/j784s4.env
board/ti/j784s4/j784s4.env new file +17 -0
@@ -0,0 +1,17 @@ +#include <env/ti/ti_common.env> +#include <env/ti/mmc.env> +#include <env/ti/ufs.env> +#include <env/ti/k3_dfu.env> + +name_kern=Image +console=ttyS2,115200n8 +args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02880000 + ${mtdparts} +run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr} + +boot_targets=mmc1 mmc0 usb pxe dhcp +boot=mmc +mmcdev=1 +bootpart=1:2 +bootdir=/boot +rd_spec=-
Signature · 1 line
2.34.1
PATCH v10 11/15 arm: dts: Introduce j784s4 u-boot dts files
In reply to Apurva NandanIntroduce the base dts files needed for u-boot or to augment the linux dtbs for use in the u-boot-spl and u-boot binaries.
--- arch/arm/dts/Makefile | 3 + arch/arm/dts/k3-j784s4-binman.dtsi | 345 + arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi | 8757 +++++++++++++++++ arch/arm/dts/k3-j784s4-ddr.dtsi | 8858 ++++++++++++++++++ arch/arm/dts/k3-j784s4-evm-u-boot.dtsi | 31 + arch/arm/dts/k3-j784s4-r5-evm.dts | 106 + board/ti/j784s4/MAINTAINERS | 4 + 7 files changed, 18104 insertions(+) create mode 100644 arch/arm/dts/k3-j784s4-binman.dtsi create mode 100644 arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi create mode 100644 arch/arm/dts/k3-j784s4-ddr.dtsi create mode 100644 arch/arm/dts/k3-j784s4-evm-u-boot.dtsi create mode 100644 arch/arm/dts/k3-j784s4-r5-evm.dts
arch/arm/dts/Makefile +3 -0
@@ -1412,6 +1412,9 @@ dtb-$(CONFIG_SOC_K3_J721S2) += k3-am68-sk-base-board.dtb\ k3-am68-sk-r5-base-board.dtb\ k3-j721s2-common-proc-board.dtb\ k3-j721s2-r5-common-proc-board.dtb + +dtb-$(CONFIG_SOC_K3_J784S4) += k3-j784s4-r5-evm.dtb + dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \ k3-am642-r5-evm.dtb \ k3-am642-sk.dtb \
arch/arm/dts/k3-j784s4-binman.dtsi new file +345 -0
345 lines not on this page · raw message
arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi new file +8757 -0
2,646 lines not on this page · raw message
arch/arm/dts/k3-j784s4-ddr.dtsi new file +8858 -0
8,858 lines not on this page · raw message
arch/arm/dts/k3-j784s4-evm-u-boot.dtsi new file +31 -0
Lines of this file are not shown. View the raw message.
arch/arm/dts/k3-j784s4-r5-evm.dts new file +106 -0
106 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.34.1
Part of the diff is not shown here. View the raw message.
Re: [PATCH v10 11/15] arm: dts: Introduce j784s4 u-boot dts files
Hi Apurva
Quoted 197 lines · Apurva Nandan
Introduce the base dts files needed for u-boot or to augment the linux dtbs for use in the u-boot-spl and u-boot binaries.
Signed-off-by Hari Nagalla <[email protected]>[ add binman and ddr dtsi files ]Signed-off-by Neha Malcom Francis <[email protected]>Signed-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>---
arch/arm/dts/Makefile | 3 + arch/arm/dts/k3-j784s4-binman.dtsi | 345 +arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi| 8757 +++++++++++++++++ arch/arm/dts/k3-j784s4-ddr.dtsi | 8858 ++++++++++++++++++ arch/arm/dts/k3-j784s4-evm-u-boot.dtsi | 31 + arch/arm/dts/k3-j784s4-r5-evm.dts | 106 + board/ti/j784s4/MAINTAINERS | 4 +7 files changed, 18104 insertions(+)create mode 100644
arch/arm/dts/k3-j784s4-binman.dtsicreate mode 100644arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsicreate mode 100644arch/arm/dts/k3-j784s4-ddr.dtsicreate mode 100644arch/arm/dts/k3-j784s4-evm-u-boot.dtsicreate mode 100644arch/arm/dts/k3-j784s4-r5-evm.dtsarch/arm/dts/Makefile +0
-0@@ -1412,6 +1412,9 @@ dtb-$(CONFIG_SOC_K3_J721S2) += k3-am68-sk-base-board.dtb\ k3-am68-sk-r5-base-board.dtb\ k3-j721s2-common-proc-board.dtb\k3-j721s2-r5-common-proc-board.dtb
arch/arm/dts/Makefile +3
-0+ +dtb-$(CONFIG_SOC_K3_J784S4) += k3-j784s4-r5-evm.dtb +dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \
k3-am642-r5-evm.dtb \
k3-am642-sk.dtb \arch/arm/dts/k3-j784s4-binman.dtsi new file +154
-0@@ -0,0 +1,345 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include "k3-binman.dtsi" + +#ifdef CONFIG_TARGET_J784S4_R5_EVM + +&rcfg_yaml_tifs { + config = "tifs-rm-cfg.yaml"; +}; + +&binman { + tiboot3-j784s4-hs-evm.bin { + filename = "tiboot3-j784s4-hs-evm.bin"; + + ti-secure-rom { + content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>, + <&combined_dm_cfg>, <&sysfw_inner_cert>; + combined; + dm-data; + sysfw-inner-cert; + keyfile = "custMpk.pem"; + sw-rev = <1>; + content-sbl = <&u_boot_spl>; + content-sysfw = <&ti_fs_enc>; + content-sysfw-data = <&combined_tifs_cfg>; + content-sysfw-inner-cert = <&sysfw_inner_cert>; + content-dm-data = <&combined_dm_cfg>; + load = <0x41c00000>; + load-sysfw = <0x40000>; + load-sysfw-data = <0x66800>; + load-dm-data = <0x41c80000>; + }; + + u_boot_spl: u-boot-spl { + no-expanded; + }; + + ti_fs_enc: ti-fs-enc.bin { + filename = "ti-sysfw/ti-fs-firmware-j784s4-hs-enc.bin"; + type = "blob-ext"; + optional; + }; + + combined_tifs_cfg: combined-tifs-cfg.bin { + filename = "combined-tifs-cfg.bin"; + type = "blob-ext"; + }; + + sysfw_inner_cert: sysfw-inner-cert { + filename = "ti-sysfw/ti-fs-firmware-j784s4-hs-cert.bin"; + type = "blob-ext"; + optional; + }; + + combined_dm_cfg: combined-dm-cfg.bin { + filename = "combined-dm-cfg.bin"; + type = "blob-ext"; + }; + }; +}; + +&binman { + tiboot3-j784s4-hs-fs-evm.bin { + filename = "tiboot3-j784s4-hs-fs-evm.bin"; + + ti-secure-rom { + content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>, + <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>; + combined; + dm-data; + sysfw-inner-cert; + keyfile = "custMpk.pem"; + sw-rev = <1>; + content-sbl = <&u_boot_spl_fs>; + content-sysfw = <&ti_fs_enc_fs>; + content-sysfw-data = <&combined_tifs_cfg_fs>; + content-sysfw-inner-cert = <&sysfw_inner_cert_fs>; + content-dm-data = <&combined_dm_cfg_fs>; + load = <0x41c00000>; + load-sysfw = <0x40000>; + load-sysfw-data = <0x66800>; + load-dm-data = <0x41c80000>; + }; + + u_boot_spl_fs: u-boot-spl { + no-expanded; + }; + + ti_fs_enc_fs: ti-fs-enc.bin { + filename = "ti-sysfw/ti-fs-firmware-j784s4-hs-fs-enc.bin"; + type = "blob-ext"; + optional; + }; + + combined_tifs_cfg_fs: combined-tifs-cfg.bin { + filename = "combined-tifs-cfg.bin"; + type = "blob-ext"; + }; + + sysfw_inner_cert_fs: sysfw-inner-cert { + filename = "ti-sysfw/ti-fs-firmware-j784s4-hs-fs-cert.bin"; + type = "blob-ext"; + optional; + }; + + combined_dm_cfg_fs: combined-dm-cfg.bin { + filename = "combined-dm-cfg.bin"; + type = "blob-ext"; + }; + }; +}; + +&binman { + tiboot3-j784s4-gp-evm.bin { + filename = "tiboot3-j784s4-gp-evm.bin"; + symlink = "tiboot3.bin"; + + ti-secure-rom { + content = <&u_boot_spl_unsigned>, <&ti_fs_gp>, + <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>; + combined; + dm-data; + content-sbl = <&u_boot_spl_unsigned>; + load = <0x41c00000>; + content-sysfw = <&ti_fs_gp>; + load-sysfw = <0x40000>; + content-sysfw-data = <&combined_tifs_cfg_gp>; + load-sysfw-data = < 0x66800>; + content-dm-data = <&combined_dm_cfg_gp>; + load-dm-data = <0x41c80000>; + sw-rev = <1>; + keyfile = "ti-degenerate-key.pem"; + }; + + u_boot_spl_unsigned: u-boot-spl { + no-expanded; + }; + + ti_fs_gp: ti-fs-gp.bin { + filename = "ti-sysfw/ti-fs-firmware-j784s4-gp.bin"; + type = "blob-ext"; + optional; + }; + + combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { + filename = "combined-tifs-cfg.bin"; + type = "blob-ext"; + }; + + combined_dm_cfg_gp: combined-dm-cfg-gp.bin { + filename = "combined-dm-cfg.bin";
arch/arm/dts/k3-j784s4-binman.dtsi line 164
Quoted 10 lines
arch/arm/dts/k3-j784s4-binman.dtsi new file +10
-0+ type = "blob-ext"; + }; + + }; +}; +#endif + +#ifdef CONFIG_TARGET_J784S4_A72_EVM + +#define SPL_J784S4_EVM_DTB "spl/dts/ti/k3-j784s4-evm.dtb"
Same device trees vendor folder here.
Quoted 193 lines
arch/arm/dts/k3-j784s4-binman.dtsi new file +181
-0+#define J784S4_EVM_DTB "u-boot.dtb" + +&binman { + ti-dm { + filename = "ti-dm.bin"; + + blob-ext { + filename = "ti-dm/j784s4/ipc_echo_testb_mcu1_0_release_strip.xer5f"; + }; + }; + + ti-spl { + insert-template = <&ti_spl_template>; + + fit { + images { + dm { + ti-secure { + content = <&dm>; + keyfile = "custMpk.pem"; + }; + + dm: blob-ext { + filename = "ti-dm.bin"; + }; + }; + + fdt-0 { + description = "k3-j784s4-evm"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + + ti-secure { + content = <&spl_j784s4_evm_dtb>; + keyfile = "custMpk.pem"; + }; + + spl_j784s4_evm_dtb: blob-ext { + filename = SPL_J784S4_EVM_DTB; + }; + }; + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-j784s4-evm"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-0"; + }; + }; + }; + }; +}; + +&binman { + u-boot { + insert-template = <&u_boot_template>; + + fit { + images { + uboot { + description = "U-Boot for J784S4 board"; + }; + + fdt-0 { + description = "k3-j784s4-evm"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + + ti-secure { + content = <&j784s4_evm_dtb>; + keyfile = "custMpk.pem"; + }; + + j784s4_evm_dtb: blob-ext { + filename = J784S4_EVM_DTB; + }; + + hash { + algo = "crc32"; + }; + }; + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-j784s4-evm"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-0"; + }; + }; + }; + }; +}; + +&binman { + ti-spl_unsigned { + insert-template = <&ti_spl_unsigned_template>; + + fit { + images { + dm { + blob-ext { + filename = "ti-dm.bin"; + }; + }; + + fdt-0 { + description = "k3-j784s4-evm"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + + spl_j784s4_evm_dtb_unsigned: blob { + filename = SPL_J784S4_EVM_DTB; + }; + }; + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-j784s4-evm"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-0"; + }; + }; + }; + }; +}; + +&binman { + u-boot_unsigned { + insert-template = <&u_boot_unsigned_template>; + + fit { + images { + uboot { + description = "U-Boot for J784S4 board"; + }; + + fdt-0 { + description = "k3-j784s4-evm"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + + j784s4_evm_dtb_unsigned: blob { + filename = J784S4_EVM_DTB; + }; + + hash { + algo = "crc32"; + }; + }; + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-j784s4-evm"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-0"; + }; + }; + }; + }; +}; +#endifarch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi new file +6
-0@@ -0,0 +1,8757 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + * This file was generated by the Jacinto7_DDRSS_RegConfigTool, Revision: 0.10.0 + * This file was generated on 04/12/2023 + */
[snip]
Quoted 157 lines
arch/arm/dts/k3-j784s4-evm-u-boot.dtsi new file +31
-0@@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include "k3-j784s4-binman.dtsi" + +/ { + memory@80000000 { + bootph-all; + }; +}; + +&mcu_udmap { + reg = <0x0 0x285c0000 0x0 0x100>, + <0x0 0x284c0000 0x0 0x4000>, + <0x0 0x2a800000 0x0 0x40000>, + <0x0 0x284a0000 0x0 0x4000>, + <0x0 0x2aa00000 0x0 0x40000>, + <0x0 0x28400000 0x0 0x2000>; + reg-names = "gcfg", "rchan", "rchanrt", "tchan", + "tchanrt", "rflow"; + bootph-pre-ram; +}; + +&sms { + k3_sysreset: sysreset-controller { + compatible = "ti,sci-sysreset"; + bootph-pre-ram; + }; +};arch/arm/dts/k3-j784s4-r5-evm.dts new file +106
-0@@ -0,0 +1,106 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; + +#include "k3-j784s4-evm.dts" +#include "k3-j784s4-ddr-evm-lp4-4266.dtsi" +#include "k3-j784s4-ddr.dtsi" +#include "k3-j784s4-evm-u-boot.dtsi" + +/ { + chosen { + tick-timer = &mcu_timer0; + }; + + aliases { + remoteproc0 = &sysctrler; + remoteproc1 = &a72_0; + }; + + a72_0: a72@0 { + compatible = "ti,am654-rproc"; + reg = <0x0 0x00a90000 0x0 0x10>; + power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, + <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>; + resets = <&k3_reset 202 0>; + clocks = <&k3_clks 61 0>; + assigned-clocks = <&k3_clks 61 0>, <&k3_clks 202 0>; + assigned-clock-parents = <&k3_clks 61 2>; + assigned-clock-rates = <200000000>, <2000000000>; + ti,sci = <&sms>; + ti,sci-proc-id = <32>; + ti,sci-host-id = <10>; + bootph-pre-ram; + }; + + dm_tifs: dm-tifs { + compatible = "ti,j721e-dm-sci"; + ti,host-id = <3>; + ti,secure-host; + mbox-names = "rx", "tx"; + mboxes= <&secure_proxy_mcu 21>, <&secure_proxy_mcu 23>; + bootph-pre-ram; + }; +}; + +&mcu_timer0 { + status = "okay"; + clock-frequency = <250000000>; + bootph-pre-ram; +}; + +&secure_proxy_sa3 { + status = "okay"; + bootph-pre-ram; +}; + +&secure_proxy_mcu { + status = "okay"; + bootph-pre-ram; +}; + +&cbass_mcu_wakeup { + sysctrler: sysctrler { + compatible = "ti,am654-system-controller"; + mboxes= <&secure_proxy_mcu 4>, + <&secure_proxy_mcu 5>, + <&secure_proxy_sa3 5>; + mbox-names = "tx", "rx", "boot_notify"; + bootph-pre-ram; + }; +}; + +&sms { + mboxes= <&secure_proxy_mcu 8>, <&secure_proxy_mcu 6>, <&secure_proxy_mcu 5>; + mbox-names = "tx", "rx", "notify"; + ti,host-id = <4>; + ti,secure-host; + bootph-pre-ram; +}; + +/* WKUP UART0 is used for DM firmware logs */ +&wkup_uart0 { + bootph-pre-ram; + status = "okay"; +}; + +&ospi0 { + reg = <0x0 0x47040000 0x0 0x100>, + <0x0 0x50000000 0x0 0x8000000>; +}; + +&ospi1 { + reg = <0x0 0x47050000 0x0 0x100>, + <0x0 0x58000000 0x0 0x8000000>; +}; + +&mcu_ringacc { + ti,sci = <&dm_tifs>; +}; + +&mcu_udmap { + ti,sci = <&dm_tifs>; +};board/ti/j784s4/MAINTAINERS +0
-0@@ -4,3 +4,7 @@ S: MaintainedF: board/ti/j784s4
F:arch/arm/mach-k3/j784s4
F:include/configs/j784s4_evm.h
board/ti/j784s4/MAINTAINERS S: Maintained · line 10
Quoted 4 lines
board/ti/j784s4/MAINTAINERS +4
-0+F: arch/arm/dts/k3-j784s4-evm-u-boot.dtsi +F: arch/arm/dts/k3-j784s4-r5-evm.dts +F: arch/arm/dts/k3-j784s4-ddr.dtsi +F: arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi
Cheers
Marcel
PATCH v10 12/15 arm: dts: Introduce am69-sk u-boot dts files
In reply to Apurva NandanFrom: Dasnavis Sabiya <[email protected]>
Introduce the base dts files needed for u-boot or to augment the linux dtbs for use in the u-boot-spl and u-boot binaries.
--- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am69-r5-sk.dts | 106 ++++++++++++++++++++++++++++ arch/arm/dts/k3-am69-sk-u-boot.dtsi | 54 ++++++++++++++ board/ti/j784s4/MAINTAINERS | 6 ++ 4 files changed, 168 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/k3-am69-r5-sk.dts create mode 100644 arch/arm/dts/k3-am69-sk-u-boot.dtsi
arch/arm/dts/Makefile +2 -1
@@ -1413,7 +1413,8 @@ dtb-$(CONFIG_SOC_K3_J721S2) += k3-am68-sk-base-board.dtb\ k3-j721s2-common-proc-board.dtb\ k3-j721s2-r5-common-proc-board.dtb -dtb-$(CONFIG_SOC_K3_J784S4) += k3-j784s4-r5-evm.dtb +dtb-$(CONFIG_SOC_K3_J784S4) += k3-am69-r5-sk.dtb \ + k3-j784s4-r5-evm.dtb dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \ k3-am642-r5-evm.dtb \
arch/arm/dts/k3-am69-r5-sk.dts new file +106 -0
106 lines not on this page · raw message
arch/arm/dts/k3-am69-sk-u-boot.dtsi new file +54 -0
54 lines not on this page · raw message
board/ti/j784s4/MAINTAINERS +6 -0
@@ -8,3 +8,9 @@ F: arch/arm/dts/k3-j784s4-evm-u-boot.dtsi F: arch/arm/dts/k3-j784s4-r5-evm.dts F: arch/arm/dts/k3-j784s4-ddr.dtsi F: arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi + +AM69 SK BOARD +M: Apurva Nandan <[email protected]> +S: Maintained +F: arch/arm/dts/k3-am69-sk-u-boot.dtsi +F: arch/arm/dts/k3-am69-r5-sk.dts
Signature · 1 line
2.34.1
Re: [PATCH v10 12/15] arm: dts: Introduce am69-sk u-boot dts files
Hi Apurva
Quoted 173 lines · Apurva Nandan
From: Dasnavis Sabiya <[email protected]>
Introduce the base dts files needed for u-boot or to augment the linux dtbs for use in the u-boot-spl and u-boot binaries.
Signed-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>---
arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am69-r5-sk.dts | 106 ++++++++++++++++++++++++++++arch/arm/dts/k3-am69-sk-u-boot.dtsi| 54 ++++++++++++++ board/ti/j784s4/MAINTAINERS | 6 ++4 files changed, 168 insertions(+), 1 deletion(-)create mode 100644
arch/arm/dts/k3-am69-r5-sk.dtscreate mode 100644arch/arm/dts/k3-am69-sk-u-boot.dtsiarch/arm/dts/Makefile +0
-0@@ -1413,7 +1413,8 @@ dtb-$(CONFIG_SOC_K3_J721S2) += k3-am68-sk-base-board.dtb\ k3-j721s2-common-proc-board.dtb\k3-j721s2-r5-common-proc-board.dtb
arch/arm/dts/Makefile +2
-1-dtb-$(CONFIG_SOC_K3_J784S4) += k3-j784s4-r5-evm.dtb +dtb-$(CONFIG_SOC_K3_J784S4) += k3-am69-r5-sk.dtb \ + k3-j784s4-r5-evm.dtb
dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \
k3-am642-r5-evm.dtb \arch/arm/dts/k3-am69-r5-sk.dts new file +106
-0@@ -0,0 +1,106 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; + +#include "k3-am69-sk.dts" +#include "k3-j784s4-ddr-evm-lp4-4266.dtsi" +#include "k3-j784s4-ddr.dtsi" +#include "k3-am69-sk-u-boot.dtsi" + +/ { + chosen { + tick-timer = &mcu_timer0; + }; + + aliases { + remoteproc0 = &sysctrler; + remoteproc1 = &a72_0; + }; + + a72_0: a72@0 { + compatible = "ti,am654-rproc"; + reg = <0x0 0x00a90000 0x0 0x10>; + power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, + <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>; + resets = <&k3_reset 202 0>; + clocks = <&k3_clks 61 0>; + assigned-clocks = <&k3_clks 61 0>, <&k3_clks 202 0>; + assigned-clock-parents = <&k3_clks 61 2>; + assigned-clock-rates = <200000000>, <2000000000>; + ti,sci = <&sms>; + ti,sci-proc-id = <32>; + ti,sci-host-id = <10>; + bootph-pre-ram; + }; + + dm_tifs: dm-tifs { + compatible = "ti,j721e-dm-sci"; + ti,host-id = <3>; + ti,secure-host; + mbox-names = "rx", "tx"; + mboxes= <&secure_proxy_mcu 21>, <&secure_proxy_mcu 23>; + bootph-pre-ram; + }; +}; + +&mcu_timer0 { + status = "okay"; + clock-frequency = <250000000>; + bootph-pre-ram; +}; + +&secure_proxy_sa3 { + status = "okay"; + bootph-pre-ram; +}; + +&secure_proxy_mcu { + status = "okay"; + bootph-pre-ram; +}; + +&cbass_mcu_wakeup { + sysctrler: sysctrler { + compatible = "ti,am654-system-controller"; + mboxes= <&secure_proxy_mcu 4>, + <&secure_proxy_mcu 5>, + <&secure_proxy_sa3 5>; + mbox-names = "tx", "rx", "boot_notify"; + bootph-pre-ram; + }; +}; + +&sms { + mboxes= <&secure_proxy_mcu 8>, <&secure_proxy_mcu 6>, <&secure_proxy_mcu 5>; + mbox-names = "tx", "rx", "notify"; + ti,host-id = <4>; + ti,secure-host; + bootph-pre-ram; +}; + +/* WKUP UART0 is used for DM firmware logs */ +&wkup_uart0 { + bootph-pre-ram; + status = "okay"; +}; + +&ospi0 { + reg = <0x0 0x47040000 0x0 0x100>, + <0x0 0x50000000 0x0 0x8000000>; +}; + +&ospi1 { + reg = <0x0 0x47050000 0x0 0x100>, + <0x0 0x58000000 0x0 0x8000000>; +}; + +&mcu_ringacc { + ti,sci = <&dm_tifs>; +}; + +&mcu_udmap { + ti,sci = <&dm_tifs>; +};arch/arm/dts/k3-am69-sk-u-boot.dtsi new file +25
-0@@ -0,0 +1,54 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include "k3-j784s4-binman.dtsi" + +/ { + memory@80000000 { + bootph-all; + }; +}; + +&mcu_udmap { + reg = <0x0 0x285c0000 0x0 0x100>, + <0x0 0x284c0000 0x0 0x4000>, + <0x0 0x2a800000 0x0 0x40000>, + <0x0 0x284a0000 0x0 0x4000>, + <0x0 0x2aa00000 0x0 0x40000>, + <0x0 0x28400000 0x0 0x2000>; + reg-names = "gcfg", "rchan", "rchanrt", "tchan", + "tchanrt", "rflow"; + bootph-pre-ram; +}; +
arch/arm/dts/k3-am69-sk-u-boot.dtsi line 35
Quoted 10 lines
arch/arm/dts/k3-am69-sk-u-boot.dtsi new file +10
-0+&sms { + k3_sysreset: sysreset-controller { + compatible = "ti,sci-sysreset"; + bootph-pre-ram; + }; +}; + +#ifdef CONFIG_TARGET_J784S4_A72_EVM + +#define SPL_AM69_SK_DTB "spl/dts/ti/k3-am69-sk.dtb"
Did I miss anything and the device trees are now really also in a vendor folder in U-Boot as well?
Quoted 27 lines
arch/arm/dts/k3-am69-sk-u-boot.dtsi new file +19
-0+#define AM69_SK_DTB "u-boot.dtb" + +&spl_j784s4_evm_dtb { + filename = SPL_AM69_SK_DTB; +}; + +&j784s4_evm_dtb { + filename = AM69_SK_DTB; +}; + +&spl_j784s4_evm_dtb_unsigned { + filename = SPL_AM69_SK_DTB; +}; + +&j784s4_evm_dtb_unsigned { + filename = AM69_SK_DTB; +}; + +#endifboard/ti/j784s4/MAINTAINERS +0
-0@@ -8,3 +8,9 @@ F: arch/arm/dts/k3-j784s4-evm-u-boot.dtsiF:
arch/arm/dts/k3-j784s4-r5-evm.dts
F:arch/arm/dts/k3-j784s4-ddr.dtsi
F:arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi
board/ti/j784s4/MAINTAINERS F: arch/arm/dts/k3-j784s4-evm-u-boot.dtsi · line 16
Quoted 6 lines
board/ti/j784s4/MAINTAINERS +6
-0+ +AM69 SK BOARD +M: Apurva Nandan <[email protected]> +S: Maintained +F: arch/arm/dts/k3-am69-sk-u-boot.dtsi +F: arch/arm/dts/k3-am69-r5-sk.dts
Cheers
Marcel
Re: [PATCH v10 12/15] arm: dts: Introduce am69-sk u-boot dts files
Quoted 181 lines · Marcel Ziswiler
Hi Apurva
Quoted 177 lines · Apurva Nandan
From: Dasnavis Sabiya <[email protected]>
Introduce the base dts files needed for u-boot or to augment the linux dtbs for use in the u-boot-spl and u-boot binaries.
Signed-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>--- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am69-r5-sk.dts | 106 ++++++++++++++++++++++++++++ arch/arm/dts/k3-am69-sk-u-boot.dtsi | 54 ++++++++++++++ board/ti/j784s4/MAINTAINERS | 6 ++ 4 files changed, 168 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/k3-am69-r5-sk.dts create mode 100644 arch/arm/dts/k3-am69-sk-u-boot.dtsiarch/arm/dts/Makefile +2
-1@@ -1413,7 +1413,8 @@ dtb-$(CONFIG_SOC_K3_J721S2) += k3-am68-sk-base-board.dtb\ k3-j721s2-common-proc-board.dtb\ k3-j721s2-r5-common-proc-board.dtb -dtb-$(CONFIG_SOC_K3_J784S4) += k3-j784s4-r5-evm.dtb +dtb-$(CONFIG_SOC_K3_J784S4) += k3-am69-r5-sk.dtb \ + k3-j784s4-r5-evm.dtb dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \ k3-am642-r5-evm.dtb \arch/arm/dts/k3-am69-r5-sk.dts new file +106
-0@@ -0,0 +1,106 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; + +#include "k3-am69-sk.dts" +#include "k3-j784s4-ddr-evm-lp4-4266.dtsi" +#include "k3-j784s4-ddr.dtsi" +#include "k3-am69-sk-u-boot.dtsi" + +/ { + chosen { + tick-timer = &mcu_timer0; + }; + + aliases { + remoteproc0 = &sysctrler; + remoteproc1 = &a72_0; + }; + + a72_0: a72@0 { + compatible = "ti,am654-rproc"; + reg = <0x0 0x00a90000 0x0 0x10>; + power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, + <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>; + resets = <&k3_reset 202 0>; + clocks = <&k3_clks 61 0>; + assigned-clocks = <&k3_clks 61 0>, <&k3_clks 202 0>; + assigned-clock-parents = <&k3_clks 61 2>; + assigned-clock-rates = <200000000>, <2000000000>; + ti,sci = <&sms>; + ti,sci-proc-id = <32>; + ti,sci-host-id = <10>; + bootph-pre-ram; + }; + + dm_tifs: dm-tifs { + compatible = "ti,j721e-dm-sci"; + ti,host-id = <3>; + ti,secure-host; + mbox-names = "rx", "tx"; + mboxes= <&secure_proxy_mcu 21>, <&secure_proxy_mcu 23>; + bootph-pre-ram; + }; +}; + +&mcu_timer0 { + status = "okay"; + clock-frequency = <250000000>; + bootph-pre-ram; +}; + +&secure_proxy_sa3 { + status = "okay"; + bootph-pre-ram; +}; + +&secure_proxy_mcu { + status = "okay"; + bootph-pre-ram; +}; + +&cbass_mcu_wakeup { + sysctrler: sysctrler { + compatible = "ti,am654-system-controller"; + mboxes= <&secure_proxy_mcu 4>, + <&secure_proxy_mcu 5>, + <&secure_proxy_sa3 5>; + mbox-names = "tx", "rx", "boot_notify"; + bootph-pre-ram; + }; +}; + +&sms { + mboxes= <&secure_proxy_mcu 8>, <&secure_proxy_mcu 6>, <&secure_proxy_mcu 5>; + mbox-names = "tx", "rx", "notify"; + ti,host-id = <4>; + ti,secure-host; + bootph-pre-ram; +}; + +/* WKUP UART0 is used for DM firmware logs */ +&wkup_uart0 { + bootph-pre-ram; + status = "okay"; +}; + +&ospi0 { + reg = <0x0 0x47040000 0x0 0x100>, + <0x0 0x50000000 0x0 0x8000000>; +}; + +&ospi1 { + reg = <0x0 0x47050000 0x0 0x100>, + <0x0 0x58000000 0x0 0x8000000>; +}; + +&mcu_ringacc { + ti,sci = <&dm_tifs>; +}; + +&mcu_udmap { + ti,sci = <&dm_tifs>; +};arch/arm/dts/k3-am69-sk-u-boot.dtsi new file +29
-0@@ -0,0 +1,54 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include "k3-j784s4-binman.dtsi" + +/ { + memory@80000000 { + bootph-all; + }; +}; + +&mcu_udmap { + reg = <0x0 0x285c0000 0x0 0x100>, + <0x0 0x284c0000 0x0 0x4000>, + <0x0 0x2a800000 0x0 0x40000>, + <0x0 0x284a0000 0x0 0x4000>, + <0x0 0x2aa00000 0x0 0x40000>, + <0x0 0x28400000 0x0 0x2000>; + reg-names = "gcfg", "rchan", "rchanrt", "tchan", + "tchanrt", "rflow"; + bootph-pre-ram; +}; + +&sms { + k3_sysreset: sysreset-controller { + compatible = "ti,sci-sysreset"; + bootph-pre-ram;
Quoted 9 lines
arch/arm/dts/k3-am69-sk-u-boot.dtsi line 35
Quoted 6 lines
arch/arm/dts/k3-am69-sk-u-boot.dtsi new file +6
-0+ }; +}; + +#ifdef CONFIG_TARGET_J784S4_A72_EVM + +#define SPL_AM69_SK_DTB "spl/dts/ti/k3-am69-sk.dtb"Did I miss anything and the device trees are now really also in a vendor folder in U-Boot as well?
Yes, with this patch-set [1] we are moving away from manual devicetree copy/sync from Linux kernel but rather towards automatic sync with better alignment.
[1] https://lore.kernel.org/all/[email protected]/
-Sumit
Re: [PATCH v10 12/15] arm: dts: Introduce am69-sk u-boot dts files
In reply to Apurva NandanHi Apurva
Quoted 207 lines · Apurva Nandan
From: Dasnavis Sabiya <[email protected]>
Introduce the base dts files needed for u-boot or to augment the linux dtbs for use in the u-boot-spl and u-boot binaries.
Signed-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>--- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am69-r5-sk.dts | 106 ++++++++++++++++++++++++++++ arch/arm/dts/k3-am69-sk-u-boot.dtsi | 54 ++++++++++++++ board/ti/j784s4/MAINTAINERS | 6 ++ 4 files changed, 168 insertions(+), 1 deletion(-)create mode 100644
arch/arm/dts/k3-am69-r5-sk.dtscreate mode 100644arch/arm/dts/k3-am69-sk-u-boot.dtsiarch/arm/dts/Makefile +2
-1@@ -1413,7 +1413,8 @@ dtb-$(CONFIG_SOC_K3_J721S2) += k3-am68-sk-base-board.dtb\ k3-j721s2-common-proc-board.dtb\ k3-j721s2-r5-common-proc-board.dtb -dtb-$(CONFIG_SOC_K3_J784S4) += k3-j784s4-r5-evm.dtb +dtb-$(CONFIG_SOC_K3_J784S4) += k3-am69-r5-sk.dtb \ + k3-j784s4-r5-evm.dtb dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \ k3-am642-r5-evm.dtb \arch/arm/dts/k3-am69-r5-sk.dts new file +106
-0@@ -0,0 +1,106 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; + +#include "k3-am69-sk.dts" +#include "k3-j784s4-ddr-evm-lp4-4266.dtsi" +#include "k3-j784s4-ddr.dtsi" +#include "k3-am69-sk-u-boot.dtsi" + +/ { + chosen { + tick-timer = &mcu_timer0; + }; + + aliases { + remoteproc0 = &sysctrler; + remoteproc1 = &a72_0; + }; + + a72_0: a72@0 { + compatible = "ti,am654-rproc"; + reg = <0x0 0x00a90000 0x0 0x10>; + power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, + <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>; + resets = <&k3_reset 202 0>; + clocks = <&k3_clks 61 0>; + assigned-clocks = <&k3_clks 61 0>, <&k3_clks 202 0>; + assigned-clock-parents = <&k3_clks 61 2>; + assigned-clock-rates = <200000000>, <2000000000>; + ti,sci = <&sms>; + ti,sci-proc-id = <32>; + ti,sci-host-id = <10>; + bootph-pre-ram; + }; + + dm_tifs: dm-tifs { + compatible = "ti,j721e-dm-sci"; + ti,host-id = <3>; + ti,secure-host; + mbox-names = "rx", "tx"; + mboxes= <&secure_proxy_mcu 21>, <&secure_proxy_mcu 23>; + bootph-pre-ram; + }; +}; + +&mcu_timer0 { + status = "okay"; + clock-frequency = <250000000>; + bootph-pre-ram; +}; + +&secure_proxy_sa3 { + status = "okay"; + bootph-pre-ram; +}; + +&secure_proxy_mcu { + status = "okay"; + bootph-pre-ram; +}; + +&cbass_mcu_wakeup { + sysctrler: sysctrler { + compatible = "ti,am654-system-controller"; + mboxes= <&secure_proxy_mcu 4>, + <&secure_proxy_mcu 5>, + <&secure_proxy_sa3 5>; + mbox-names = "tx", "rx", "boot_notify"; + bootph-pre-ram; + }; +}; + +&sms { + mboxes= <&secure_proxy_mcu 8>, <&secure_proxy_mcu 6>, <&secure_proxy_mcu 5>; + mbox-names = "tx", "rx", "notify"; + ti,host-id = <4>; + ti,secure-host; + bootph-pre-ram; +}; + +/* WKUP UART0 is used for DM firmware logs */ +&wkup_uart0 { + bootph-pre-ram; + status = "okay"; +}; + +&ospi0 { + reg = <0x0 0x47040000 0x0 0x100>, + <0x0 0x50000000 0x0 0x8000000>; +}; + +&ospi1 { + reg = <0x0 0x47050000 0x0 0x100>, + <0x0 0x58000000 0x0 0x8000000>; +}; + +&mcu_ringacc { + ti,sci = <&dm_tifs>; +}; + +&mcu_udmap { + ti,sci = <&dm_tifs>; +};arch/arm/dts/k3-am69-sk-u-boot.dtsi new file +54
-0@@ -0,0 +1,54 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include "k3-j784s4-binman.dtsi" + +/ { + memory@80000000 { + bootph-all; + }; +}; + +&mcu_udmap { + reg = <0x0 0x285c0000 0x0 0x100>, + <0x0 0x284c0000 0x0 0x4000>, + <0x0 0x2a800000 0x0 0x40000>, + <0x0 0x284a0000 0x0 0x4000>, + <0x0 0x2aa00000 0x0 0x40000>, + <0x0 0x28400000 0x0 0x2000>; + reg-names = "gcfg", "rchan", "rchanrt", "tchan", + "tchanrt", "rflow"; + bootph-pre-ram; +}; + +&sms { + k3_sysreset: sysreset-controller { + compatible = "ti,sci-sysreset"; + bootph-pre-ram; + }; +}; + +#ifdef CONFIG_TARGET_J784S4_A72_EVM + +#define SPL_AM69_SK_DTB "spl/dts/ti/k3-am69-sk.dtb" +#define AM69_SK_DTB "u-boot.dtb" + +&spl_j784s4_evm_dtb { + filename = SPL_AM69_SK_DTB; +}; + +&j784s4_evm_dtb { + filename = AM69_SK_DTB; +}; + +&spl_j784s4_evm_dtb_unsigned { + filename = SPL_AM69_SK_DTB; +}; + +&j784s4_evm_dtb_unsigned { + filename = AM69_SK_DTB; +}; + +#endifboard/ti/j784s4/MAINTAINERS +0
-0
board/ti/j784s4/MAINTAINERS F: arch/arm/dts/k3-j784s4-evm-u-boot.dtsi · line 16
Quoted 9 lines
board/ti/j784s4/MAINTAINERS +6
-0@@ -8,3 +8,9 @@ F: arch/arm/dts/k3-j784s4-evm-u-boot.dtsi F: arch/arm/dts/k3-j784s4-r5-evm.dts F: arch/arm/dts/k3-j784s4-ddr.dtsi F: arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi + +AM69 SK BOARD +M: Apurva Nandan <[email protected]> +S: Maintained +F: arch/arm/dts/k3-am69-sk-u-boot.dtsi +F: arch/arm/dts/k3-am69-r5-sk.dts
Signature · 2 lines
Thanking You Neha Malcom Francis
PATCH v10 13/15 configs: j784s4_evm: Add defconfig for J784S4 EVM board
In reply to Apurva NandanAdd defconfigs for building R5 U-Boot SPL and A72 U-Boot.
--- board/ti/j784s4/MAINTAINERS | 2 + configs/j784s4_evm_a72_defconfig | 159 +++++++++++++++++++++++++++++++ configs/j784s4_evm_r5_defconfig | 153 +++++++++++++++++++++++++++++ 3 files changed, 314 insertions(+) create mode 100644 configs/j784s4_evm_a72_defconfig create mode 100644 configs/j784s4_evm_r5_defconfig
board/ti/j784s4/MAINTAINERS +2 -0
@@ -4,6 +4,8 @@ S: Maintained F: board/ti/j784s4 F: arch/arm/mach-k3/j784s4 F: include/configs/j784s4_evm.h +F: configs/j784s4_evm_r5_defconfig +F: configs/j784s4_evm_a72_defconfig F: arch/arm/dts/k3-j784s4-evm-u-boot.dtsi F: arch/arm/dts/k3-j784s4-r5-evm.dts F: arch/arm/dts/k3-j784s4-ddr.dtsi
configs/j784s4_evm_a72_defconfig new file +159 -0
159 lines not on this page · raw message
configs/j784s4_evm_r5_defconfig new file +153 -0
153 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH v10 13/15] configs: j784s4_evm: Add defconfig for J784S4 EVM board
Hi Apurva
Quoted 39 lines · Apurva Nandan
Add defconfigs for building R5 U-Boot SPL and A72 U-Boot.
Signed-off-by Hari Nagalla <[email protected]>Signed-off-by Apurva Nandan <[email protected]>---
board/ti/j784s4/MAINTAINERS | 2 + configs/j784s4_evm_a72_defconfig | 159 +++++++++++++++++++++++++++++++ configs/j784s4_evm_r5_defconfig | 153 +++++++++++++++++++++++++++++3 files changed, 314 insertions(+)create mode 100644 configs/j784s4_evm_a72_defconfig create mode 100644 configs/j784s4_evm_r5_defconfig
board/ti/j784s4/MAINTAINERS +0
-0@@ -4,6 +4,8 @@ S: MaintainedF: board/ti/j784s4
F:arch/arm/mach-k3/j784s4
F:include/configs/j784s4_evm.hboard/ti/j784s4/MAINTAINERS +2
-0+F: configs/j784s4_evm_r5_defconfig +F: configs/j784s4_evm_a72_defconfigF:
arch/arm/dts/k3-j784s4-evm-u-boot.dtsi
F:arch/arm/dts/k3-j784s4-r5-evm.dts
F:arch/arm/dts/k3-j784s4-ddr.dtsiconfigs/j784s4_evm_a72_defconfig new file +8
-0@@ -0,0 +1,159 @@ +CONFIG_ARM=y +CONFIG_ARCH_K3=y +CONFIG_TI_SECURE_DEVICE=y +CONFIG_SYS_MALLOC_F_LEN=0x8000 +CONFIG_SPL_GPIO=y +CONFIG_SPL_LIBCOMMON_SUPPORT=y +CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_NR_DRAM_BANKS=2
configs/j784s4_evm_a72_defconfig line 18
Quoted 10 lines
configs/j784s4_evm_a72_defconfig new file +10
-0+CONFIG_SOC_K3_J784S4=y +CONFIG_TARGET_J784S4_A72_EVM=y +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000 +CONFIG_SF_DEFAULT_SPEED=25000000 +CONFIG_ENV_SIZE=0x20000 +CONFIG_DM_GPIO=y +CONFIG_SPL_DM_SPI=y +CONFIG_OF_UPSTREAM=y +CONFIG_DEFAULT_DEVICE_TREE="ti/k3-j784s4-evm"
Same device trees vendor folder here.
Quoted 48 lines
configs/j784s4_evm_a72_defconfig new file +48
-0+CONFIG_SPL_TEXT_BASE=0x80080000 +CONFIG_OF_LIBFDT_OVERLAY=y +CONFIG_DM_RESET=y +CONFIG_SPL_MMC=y +CONFIG_SPL_SERIAL=y +CONFIG_SPL_DRIVERS_MISC=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=y +CONFIG_SPL_LOAD_FIT=y +CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000 +CONFIG_BOOTSTD_FULL=y +CONFIG_BOOTSTD_DEFAULTS=y +CONFIG_BOOTCOMMAND="run envboot; bootflow scan -lb" +CONFIG_BOARD_LATE_INIT=y +CONFIG_LOGLEVEL=7 +CONFIG_SPL_MAX_SIZE=0xc0000 +CONFIG_SPL_HAS_BSS_LINKER_SECTION=y +CONFIG_SPL_BSS_START_ADDR=0x80a00000 +CONFIG_SPL_BSS_MAX_SIZE=0x80000 +CONFIG_SPL_BOARD_INIT=y +CONFIG_SPL_SYS_MALLOC_SIMPLE=y +CONFIG_SPL_STACK_R=y +CONFIG_SYS_SPL_MALLOC=y +CONFIG_SYS_SPL_MALLOC_SIZE=0x800000 +CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y +CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1400 +CONFIG_SPL_DMA=y +CONFIG_SPL_ENV_SUPPORT=y +CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img" +CONFIG_SPL_I2C=y +CONFIG_SPL_DM_MAILBOX=y +CONFIG_SPL_MTD_SUPPORT=y +CONFIG_SPL_DM_SPI_FLASH=y +CONFIG_SPL_DM_RESET=y +CONFIG_SPL_POWER_DOMAIN=y +CONFIG_SPL_RAM_SUPPORT=y +CONFIG_SPL_RAM_DEVICE=y +CONFIG_SPL_SPI_FLASH_SFDP_SUPPORT=y +CONFIG_SPL_SPI_LOAD=y +CONFIG_SYS_SPI_U_BOOT_OFFS=0x280000 +CONFIG_SPL_THERMAL=y +CONFIG_SPL_YMODEM_SUPPORT=y +CONFIG_SYS_MAXARGS=64 +CONFIG_CMD_ASKENV=y +CONFIG_CMD_GPIO=y
configs/j784s4_evm_a72_defconfig line 76
Quoted 10 lines
configs/j784s4_evm_a72_defconfig new file +10
-0+CONFIG_CMD_GPT=y +CONFIG_CMD_I2C=y +CONFIG_CMD_MMC=y +CONFIG_CMD_MTD=y +CONFIG_CMD_TIME=y +CONFIG_CMD_EXT4_WRITE=y +CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y +CONFIG_SPL_MULTI_DTB_FIT=y +CONFIG_OF_LIST="ti/k3-j784s4-evm"
And here.
Quoted 232 lines
configs/j784s4_evm_a72_defconfig new file +83
-0+CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y +CONFIG_SYS_REDUNDAND_ENVIRONMENT=y +CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_NET_RANDOM_ETHADDR=y +CONFIG_SPL_DM=y +CONFIG_SPL_DM_SEQ_ALIAS=y +CONFIG_REGMAP=y +CONFIG_SPL_REGMAP=y +CONFIG_SPL_SYSCON=y +CONFIG_SPL_OF_TRANSLATE=y +CONFIG_CLK=y +CONFIG_SPL_CLK=y +CONFIG_CLK_CCF=y +CONFIG_CLK_TI_SCI=y +CONFIG_DMA_CHANNELS=y +CONFIG_TI_K3_NAVSS_UDMA=y +CONFIG_TI_SCI_PROTOCOL=y +CONFIG_DA8XX_GPIO=y +CONFIG_DM_PCA953X=y +CONFIG_DM_I2C=y +CONFIG_DM_I2C_GPIO=y +CONFIG_SYS_I2C_OMAP24XX=y +CONFIG_DM_MAILBOX=y +CONFIG_K3_SEC_PROXY=y +CONFIG_SUPPORT_EMMC_BOOT=y +CONFIG_MMC_IO_VOLTAGE=y +CONFIG_MMC_UHS_SUPPORT=y +CONFIG_MMC_HS400_SUPPORT=y +CONFIG_SPL_MMC_HS400_SUPPORT=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_ADMA=y +CONFIG_SPL_MMC_SDHCI_ADMA=y +CONFIG_MMC_SDHCI_AM654=y +CONFIG_MTD=y +CONFIG_DM_MTD=y +CONFIG_MTD_NOR_FLASH=y +CONFIG_CFI_FLASH=y +CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y +CONFIG_FLASH_CFI_MTD=y +CONFIG_SYS_FLASH_CFI=y +CONFIG_SYS_MAX_FLASH_BANKS_DETECT=y +CONFIG_DM_SPI_FLASH=y +CONFIG_SPI_FLASH_SFDP_SUPPORT=y +CONFIG_SPI_FLASH_SOFT_RESET=y +CONFIG_SPI_FLASH_SOFT_RESET_ON_BOOT=y +CONFIG_SPI_FLASH_SPANSION=y +CONFIG_SPI_FLASH_S28HX_T=y +CONFIG_SPI_FLASH_STMICRO=y +CONFIG_SPI_FLASH_MT35XU=y +CONFIG_SPI_FLASH_MTD=y +CONFIG_MULTIPLEXER=y +CONFIG_MUX_MMIO=y +CONFIG_PHY_TI_DP83867=y +CONFIG_PHY_FIXED=y +CONFIG_TI_AM65_CPSW_NUSS=y +CONFIG_PHY=y +CONFIG_SPL_PHY=y +CONFIG_PHY_CADENCE_TORRENT=y +CONFIG_PHY_J721E_WIZ=y +CONFIG_PINCTRL=y +CONFIG_SPL_PINCTRL=y +CONFIG_PINCTRL_SINGLE=y +CONFIG_POWER_DOMAIN=y +CONFIG_TI_SCI_POWER_DOMAIN=y +CONFIG_DM_REGULATOR=y +CONFIG_DM_REGULATOR_FIXED=y +CONFIG_DM_REGULATOR_GPIO=y +CONFIG_RAM=y +CONFIG_SPL_RAM=y +CONFIG_RESET_TI_SCI=y +CONFIG_SCSI=y +CONFIG_DM_SCSI=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 +CONFIG_CADENCE_QSPI=y +CONFIG_SYSRESET=y +CONFIG_SPL_SYSRESET=y +CONFIG_SYSRESET_TI_SCI=y +CONFIG_DM_THERMAL=yconfigs/j784s4_evm_r5_defconfig new file +143
-0@@ -0,0 +1,153 @@ +CONFIG_ARM=y +CONFIG_ARCH_K3=y +CONFIG_TI_SECURE_DEVICE=y +CONFIG_SYS_MALLOC_F_LEN=0x10000 +CONFIG_SPL_GPIO=y +CONFIG_SPL_LIBCOMMON_SUPPORT=y +CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_SOC_K3_J784S4=y +CONFIG_K3_EARLY_CONS=y +CONFIG_TARGET_J784S4_R5_EVM=y +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x41c76000 +CONFIG_SF_DEFAULT_SPEED=25000000 +CONFIG_ENV_SIZE=0x20000 +CONFIG_DM_GPIO=y +CONFIG_SPL_DM_SPI=y +CONFIG_DEFAULT_DEVICE_TREE="k3-j784s4-r5-evm" +CONFIG_SPL_TEXT_BASE=0x41c00000 +CONFIG_DM_RESET=y +CONFIG_SPL_MMC=y +CONFIG_SPL_SERIAL=y +CONFIG_SPL_DRIVERS_MISC=y +CONFIG_SPL_STACK_R_ADDR=0x82000000 +CONFIG_SPL_SIZE_LIMIT=0x80000 +CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x4000 +CONFIG_SPL_FS_FAT=y +CONFIG_SPL_LIBDISK_SUPPORT=y +CONFIG_SPL_SPI_FLASH_SUPPORT=y +CONFIG_SPL_SPI=y +CONFIG_SPL_LOAD_FIT=y +CONFIG_SPL_LOAD_FIT_ADDRESS=0x80080000 +CONFIG_USE_BOOTCOMMAND=y +CONFIG_SPL_SIZE_LIMIT_SUBTRACT_GD=y +CONFIG_SPL_SIZE_LIMIT_SUBTRACT_MALLOC=y +CONFIG_SPL_MAX_SIZE=0xc0000 +CONFIG_SPL_HAS_BSS_LINKER_SECTION=y +CONFIG_SPL_BSS_START_ADDR=0x41c76000 +CONFIG_SPL_BSS_MAX_SIZE=0xa000 +CONFIG_SPL_SYS_REPORT_STACK_F_USAGE=y +CONFIG_SPL_BOARD_INIT=y +CONFIG_SPL_SYS_MALLOC_SIMPLE=y +CONFIG_SPL_STACK_R=y +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x140000 +CONFIG_SPL_SEPARATE_BSS=y +CONFIG_SYS_SPL_MALLOC=y +CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y +CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x84000000 +CONFIG_SYS_SPL_MALLOC_SIZE=0x1000000 +CONFIG_SPL_EARLY_BSS=y +CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y +CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x400 +CONFIG_SPL_DMA=y +CONFIG_SPL_ENV_SUPPORT=y +CONFIG_SPL_FS_EXT4=y +CONFIG_SPL_I2C=y +CONFIG_SPL_DM_MAILBOX=y +CONFIG_SPL_MTD_SUPPORT=y +CONFIG_SPL_DM_SPI_FLASH=y +CONFIG_SPL_DM_RESET=y +CONFIG_SPL_POWER_DOMAIN=y +CONFIG_SPL_RAM_SUPPORT=y +CONFIG_SPL_RAM_DEVICE=y +CONFIG_SPL_REMOTEPROC=y +CONFIG_SPL_SPI_FLASH_SFDP_SUPPORT=y +CONFIG_SPL_SPI_LOAD=y +CONFIG_SYS_SPI_U_BOOT_OFFS=0x80000 +CONFIG_SPL_THERMAL=y +CONFIG_SPL_YMODEM_SUPPORT=y +CONFIG_HUSH_PARSER=y +CONFIG_SYS_MAXARGS=64 +CONFIG_SYS_BOOTM_LEN=0x4000000 +CONFIG_CMD_GPT=y +CONFIG_CMD_MMC=y +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_OF_LIST="k3-j784s4-r5-evm" +CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y +CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_SPL_DM=y +CONFIG_SPL_DM_SEQ_ALIAS=y +CONFIG_REGMAP=y +CONFIG_SPL_REGMAP=y +CONFIG_SYSCON=y +CONFIG_SPL_SYSCON=y +CONFIG_SPL_OF_TRANSLATE=y +CONFIG_CLK=y +CONFIG_SPL_CLK=y +CONFIG_SPL_CLK_CCF=y +CONFIG_SPL_CLK_K3_PLL=y +CONFIG_SPL_CLK_K3=y +CONFIG_DMA_CHANNELS=y +CONFIG_TI_K3_NAVSS_UDMA=y +CONFIG_TI_SCI_PROTOCOL=y +CONFIG_DA8XX_GPIO=y +CONFIG_DM_PCA953X=y +CONFIG_DM_I2C=y +CONFIG_I2C_SET_DEFAULT_BUS_NUM=y +CONFIG_SYS_I2C_OMAP24XX=y +CONFIG_DM_MAILBOX=y +CONFIG_K3_SEC_PROXY=y +CONFIG_FS_LOADER=y +CONFIG_SPL_FS_LOADER=y +CONFIG_SUPPORT_EMMC_BOOT=y +CONFIG_SPL_MMC_HS400_SUPPORT=y +CONFIG_MMC_SDHCI=y +CONFIG_SPL_MMC_SDHCI_ADMA=y +CONFIG_MMC_SDHCI_AM654=y +CONFIG_MTD=y +CONFIG_DM_MTD=y +CONFIG_MTD_NOR_FLASH=y +CONFIG_CFI_FLASH=y +CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y +CONFIG_FLASH_CFI_MTD=y +CONFIG_SYS_FLASH_CFI=y +CONFIG_SYS_MAX_FLASH_BANKS_DETECT=y +CONFIG_DM_SPI_FLASH=y +CONFIG_SPI_FLASH_SFDP_SUPPORT=y +CONFIG_SPI_FLASH_SOFT_RESET=y +CONFIG_SPI_FLASH_SOFT_RESET_ON_BOOT=y +CONFIG_SPI_FLASH_SPANSION=y +CONFIG_SPI_FLASH_S28HX_T=y +CONFIG_SPI_FLASH_STMICRO=y +CONFIG_SPI_FLASH_MT35XU=y +CONFIG_PINCTRL=y +CONFIG_SPL_PINCTRL=y +CONFIG_PINCTRL_SINGLE=y +CONFIG_POWER_DOMAIN=y +CONFIG_TI_POWER_DOMAIN=y +CONFIG_K3_SYSTEM_CONTROLLER=y +CONFIG_REMOTEPROC_TI_K3_ARM64=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 +CONFIG_CADENCE_QSPI=y +CONFIG_SYSRESET=y +CONFIG_SPL_SYSRESET=y
configs/j784s4_evm_r5_defconfig line 153
Quoted 10 lines
configs/j784s4_evm_r5_defconfig new file +10
-0+CONFIG_SYSRESET_TI_SCI=y +CONFIG_DM_THERMAL=y +CONFIG_TIMER=y +CONFIG_SPL_TIMER=y +CONFIG_OMAP_TIMER=y +CONFIG_FS_EXT4=y +CONFIG_FS_FAT_MAX_CLUSTSIZE=16384 +CONFIG_PANIC_HANG=y +CONFIG_LIB_RATIONAL=y +CONFIG_SPL_LIB_RATIONAL=y
Cheers
Marcel
PATCH v10 14/15 configs: am69_sk: Add defconfig for AM69 SK board
In reply to Apurva NandanFrom: Dasnavis Sabiya <[email protected]>
Add defconfig for AM69 SK A72 and R5 configuration.
This inlcudes and modifies the J784S4 EVM defconfigs:j784s4_evm_a72_defconfig -> am69_sk_a72_defconfig j784s4_evm_r5_defconfig -> am69_sk_r5_defconfig
--- board/ti/j784s4/MAINTAINERS | 2 ++ configs/am69_sk_a72_defconfig | 9 +++++++++ configs/am69_sk_r5_defconfig | 10 ++++++++++ 3 files changed, 21 insertions(+) create mode 100644 configs/am69_sk_a72_defconfig create mode 100644 configs/am69_sk_r5_defconfig
board/ti/j784s4/MAINTAINERS +2 -0
@@ -16,3 +16,5 @@ M: Apurva Nandan <[email protected]> S: Maintained F: arch/arm/dts/k3-am69-sk-u-boot.dtsi F: arch/arm/dts/k3-am69-r5-sk.dts +F: configs/am69_sk_r5_defconfig +F: configs/am69_sk_a72_defconfig
configs/am69_sk_a72_defconfig new file +9 -0
@@ -0,0 +1,9 @@ +#include <configs/j784s4_evm_a72_defconfig> + +CONFIG_ARM=y +CONFIG_ARCH_K3=y +CONFIG_SOC_K3_J784S4=y +CONFIG_TARGET_J784S4_A72_EVM=y + +CONFIG_DEFAULT_DEVICE_TREE="ti/k3-am69-sk" +CONFIG_OF_LIST="ti/k3-am69-sk"
configs/am69_sk_r5_defconfig new file +10 -0
@@ -0,0 +1,10 @@ +#include <configs/j784s4_evm_r5_defconfig> + +CONFIG_ARM=y +CONFIG_ARCH_K3=y +CONFIG_SOC_K3_J784S4=y +CONFIG_TARGET_J784S4_R5_EVM=y + +CONFIG_DEFAULT_DEVICE_TREE="k3-am69-r5-sk" +CONFIG_SPL_OF_LIST="k3-am69-r5-sk" +CONFIG_OF_LIST="k3-am69-r5-sk"
Signature · 1 line
2.34.1
Re: [PATCH v10 14/15] configs: am69_sk: Add defconfig for AM69 SK board
Quoted 11 lines · Apurva Nandan
From: Dasnavis Sabiya <[email protected]>
Add defconfig for AM69 SK A72 and R5 configuration.
This inlcudes and modifies the J784S4 EVM defconfigs:
j784s4_evm_a72_defconfig->am69_sk_a72_defconfigj784s4_evm_r5_defconfig->am69_sk_r5_defconfigSigned-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>---
Quoted 48 lines
board/ti/j784s4/MAINTAINERS | 2 ++ configs/am69_sk_a72_defconfig | 9 +++++++++ configs/am69_sk_r5_defconfig | 10 ++++++++++ 3 files changed, 21 insertions(+)create mode 100644 configs/am69_sk_a72_defconfig create mode 100644 configs/am69_sk_r5_defconfig
board/ti/j784s4/MAINTAINERS +2
-0@@ -16,3 +16,5 @@ M: Apurva Nandan <[email protected]> S: Maintained F: arch/arm/dts/k3-am69-sk-u-boot.dtsi F: arch/arm/dts/k3-am69-r5-sk.dts +F: configs/am69_sk_r5_defconfig +F: configs/am69_sk_a72_defconfigconfigs/am69_sk_a72_defconfig new file +9
-0@@ -0,0 +1,9 @@ +#include <configs/j784s4_evm_a72_defconfig> + +CONFIG_ARM=y +CONFIG_ARCH_K3=y +CONFIG_SOC_K3_J784S4=y +CONFIG_TARGET_J784S4_A72_EVM=y + +CONFIG_DEFAULT_DEVICE_TREE="ti/k3-am69-sk" +CONFIG_OF_LIST="ti/k3-am69-sk"configs/am69_sk_r5_defconfig new file +10
-0@@ -0,0 +1,10 @@ +#include <configs/j784s4_evm_r5_defconfig> + +CONFIG_ARM=y +CONFIG_ARCH_K3=y +CONFIG_SOC_K3_J784S4=y +CONFIG_TARGET_J784S4_R5_EVM=y + +CONFIG_DEFAULT_DEVICE_TREE="k3-am69-r5-sk" +CONFIG_SPL_OF_LIST="k3-am69-r5-sk" +CONFIG_OF_LIST="k3-am69-r5-sk"
PATCH v10 15/15 doc: board: ti: k3: Add J784S4 EVM and AM69 SK documentation
In reply to Apurva NandanTI K3 J784S4 and AM69 are new additions to the K3 SoC family. Add documentation about the J784S4 EVM and AM69 SK.
--- board/ti/j784s4/MAINTAINERS | 1 + doc/board/ti/j784s4_evm.rst | 299 ++++++++++++++++++++++++++++++++++++ doc/board/ti/k3.rst | 1 + 3 files changed, 301 insertions(+) create mode 100644 doc/board/ti/j784s4_evm.rst
board/ti/j784s4/MAINTAINERS +1 -0
@@ -10,6 +10,7 @@ F: arch/arm/dts/k3-j784s4-evm-u-boot.dtsi F: arch/arm/dts/k3-j784s4-r5-evm.dts F: arch/arm/dts/k3-j784s4-ddr.dtsi F: arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi +F: doc/board/ti/j784s4_evm.rst AM69 SK BOARD M: Apurva Nandan <[email protected]>
doc/board/ti/j784s4_evm.rst new file +299 -0
299 lines not on this page · raw message
doc/board/ti/k3.rst +1 -0
@@ -41,6 +41,7 @@ K3 Based SoCs ../beagle/j721e_beagleboneai64 j721e_evm j721s2_evm + j784s4_evm Boot Flow Overview ------------------
Signature · 1 line
2.34.1
Re: [PATCH v10 15/15] doc: board: ti: k3: Add J784S4 EVM and AM69 SK documentation
Hi Apurva
Quoted 334 lines · Apurva Nandan
TI K3 J784S4 and AM69 are new additions to the K3 SoC family. Add documentation about the J784S4 EVM and AM69 SK.
Signed-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>--- board/ti/j784s4/MAINTAINERS | 1 + doc/board/ti/j784s4_evm.rst | 299 ++++++++++++++++++++++++++++++++++++ doc/board/ti/k3.rst | 1 + 3 files changed, 301 insertions(+)create mode 100644
doc/board/ti/j784s4_evm.rstboard/ti/j784s4/MAINTAINERS +1
-0@@ -10,6 +10,7 @@ F: arch/arm/dts/k3-j784s4-evm-u-boot.dtsi F: arch/arm/dts/k3-j784s4-r5-evm.dts F: arch/arm/dts/k3-j784s4-ddr.dtsi F: arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi +F: doc/board/ti/j784s4_evm.rst AM69 SK BOARD M: Apurva Nandan <[email protected]>doc/board/ti/j784s4_evm.rst new file +299
-0@@ -0,0 +1,299 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause +.. sectionauthor:: Apurva Nandan <[email protected]> + +J784S4 and AM69 Platforms +========================= + +Introduction +------------ +The J784S4 SoC belongs to the K3 Multicore SoC architecture +platform, providing advanced system integration in automotive, +ADAS and industrial applications requiring AI at the network edge. +This SoC extends the K3 Jacinto 7 family of SoCs with focus on +raising performance and integration while providing interfaces, +memory architecture and compute performance for multi-sensor, high +concurrency applications. + +The device is partitioned into three functional domains, each containing +specific processing cores and peripherals: + +1. Wake-up (WKUP) domain + * ARM Cortex-M4F processor, runs TI Foundational Security (TIFS) + +2. Microcontroller (MCU) domain + * Dual core ARM Cortex-R5F processor, runs device management + and SoC early boot + +3. MAIN domain + * Two clusters of quad core 64-bit ARM Cortex-A72, runs HLOS + * Dual core ARM Cortex-R5F processor used for RTOS applications + * Four C7x DSPs used for Machine Learning applications. + + +More info can be found in TRM: http://www.ti.com/lit/zip/spruj52 + +Platform information: + +* https://www.ti.com/tool/J784S4XEVM +* https://www.ti.com/tool/SK-AM69 + +Boot Flow +--------- +Below is the pictorial representation of boot flow: + +.. image:: img/boot_diagram_k3_current.svg + :alt: K3 boot flow + +- On this platform, "TI Foundational Security" (TIFS) functions as the + security enclave master. While "Device Manager" (DM), also known as the + "TISCI server" in TI terminology, offers all the essential services. + +- As illustrated in the diagram above, R5 SPL manages power and clock + services independently before handing over control to DM. The A72 or + the C7x (Aux core) software components request TIFS/DM to handle + security or device management services. + +Sources +------- + +.. include:: k3.rst + :start-after: .. k3_rst_include_start_boot_sources + :end-before: .. k3_rst_include_end_boot_sources + +Build procedure +--------------- +0. Setup the environment variables: + +.. include:: k3.rst + :start-after: .. k3_rst_include_start_common_env_vars_desc + :end-before: .. k3_rst_include_end_common_env_vars_desc + +.. include:: k3.rst + :start-after: .. k3_rst_include_start_board_env_vars_desc + :end-before: .. k3_rst_include_end_board_env_vars_desc + +Set the variables corresponding to this platform: + +.. include:: k3.rst + :start-after: .. k3_rst_include_start_common_env_vars_defn + :end-before: .. k3_rst_include_end_common_env_vars_defn +.. code-block:: bash + + $ export UBOOT_CFG_CORTEXR=j784s4_evm_r5_defconfig + $ export UBOOT_CFG_CORTEXA=j784s4_evm_a72_defconfig + $ export TFA_BOARD=j784s4 + $ export TFA_EXTRA_ARGS="K3_USART=0x8" + $ export OPTEE_PLATFORM=k3-j784s4 + $ export OPTEE_EXTRA_ARGS="CFG_CONSOLE_UART=0x8" + +.. j784s4_evm_rst_include_start_build_steps + +1. Trusted Firmware-A + +.. include:: k3.rst + :start-after: .. k3_rst_include_start_build_steps_tfa + :end-before: .. k3_rst_include_end_build_steps_tfa + + +2. OP-TEE + +.. include:: k3.rst + :start-after: .. k3_rst_include_start_build_steps_optee + :end-before: .. k3_rst_include_end_build_steps_optee + +3. U-Boot + +.. _j784s4_evm_rst_u_boot_r5: + +* 3.1 R5 + +.. include:: k3.rst + :start-after: .. k3_rst_include_start_build_steps_spl_r5 + :end-before: .. k3_rst_include_end_build_steps_spl_r5 + +.. _j784s4_evm_rst_u_boot_a72: + +* 3.2 A72 + +.. include:: k3.rst + :start-after: .. k3_rst_include_start_build_steps_uboot + :end-before: .. k3_rst_include_end_build_steps_uboot +.. j784s4_evm_rst_include_end_build_steps + +Target Images +------------- +In order to boot we need tiboot3.bin, tispl.bin and u-boot.img. Each SoC +variant (GP, HS-FS, HS-SE) requires a different source for these files. + + - GP + + * tiboot3-j784s4-gp-evm.bin from :ref:`step 3.1 <j784s4_evm_rst_u_boot_r5>` + * tispl.bin_unsigned, u-boot.img_unsigned from :ref:`step 3.2 <j784s4_evm_rst_u_boot_a72>` + + - HS-FS + + * tiboot3-j784s4-hs-fs-evm.bin from :ref:`step 3.1 <j784s4_evm_rst_u_boot_r5>` + * tispl.bin, u-boot.img from :ref:`step 3.2 <j784s4_evm_rst_u_boot_a72>` + + - HS-SE + + * tiboot3-j784s4-hs-evm.bin from :ref:`step 3.1 <j784s4_evm_rst_u_boot_r5>` + * tispl.bin, u-boot.img from :ref:`step 3.2 <j784s4_evm_rst_u_boot_a72>` + +Image formats +------------- + +- tiboot3.bin + +.. image:: img/multi_cert_tiboot3.bin.svg + :alt: tiboot3.bin format + +- tispl.bin + +.. image:: img/dm_tispl.bin.svg + :alt: tispl.bin format + +R5 Memory Map +------------- + +.. list-table:: + :widths: 16 16 16 + :header-rows: 1 + + * - Region + - Start Address + - End Address + + * - SPL + - 0x41c00000 + - 0x41c40000 + + * - EMPTY + - 0x41c40000 + - 0x41c61f20 + + * - STACK + - 0x41c65f20 + - 0x41c61f20 + + * - Global data + - 0x41c65f20 + - 0x41c66000 + + * - Heap + - 0x41c66000 + - 0x41c76000 + + * - BSS + - 0x41c76000 + - 0x41c80000 + + * - DM DATA + - 0x41c80000 + - 0x41c84130 + + * - EMPTY + - 0x41c84130 + - 0x41cff9fc + + * - MCU Scratchpad + - 0x41cff9fc + - 0x41cffbfc + + * - ROM DATA + - 0x41cffbfc + - 0x41cfffff + +Switch Setting for Boot Mode +---------------------------- + +Boot Mode pins provide means to select the boot mode and options before the +device is powered up. After every POR, they are the main source to populate +the Boot Parameter Tables. + +Boot Mode Pins for J784S4-EVM +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The following tables show some common boot modes used on J784S4 EVM platform. +More details can be found in the Technical Reference Manual: +http://www.ti.com/lit/zip/spruj52 under the `Boot Mode Pins` section. + +.. list-table:: J784S4 EVM Boot Modes + :widths: 16 16 16 + :header-rows: 1 + + * - Switch Label + - SW11: 12345678 + - SW7: 12345678 + + * - SD + - 10000010 + - 00000000 + + * - EMMC + - 10000000 + - 01000000 + + * - OSPI + - 00000110 + - 01000000 + + * - UART + - 00000000 + - 01110000 + +For SW7 and SW11, the switch state in the "ON" position = 1. + +Boot Mode Pins for AM69-SK +^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The following table show some common boot modes used on AM69-SK platform. +More details can be found in the User Guide for AM69-SK: +https://www.ti.com/lit/ug/spruj70/spruj70.pdf under the `Bootmode Settings` +section. + +.. list-table:: AM69 SK Boot Modes + :widths: 16 16 + :header-rows: 1 + + * - Switch Label + - SW2: 1234 + + * - SD + - 0000 + + * - EMMC + - 0110 + + * - UART + - 1010 + +For SW2, the switch state in the "ON" position = 1. + +Debugging U-Boot +---------------- + +See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for +detailed setup information. + +.. warning:: + + **OpenOCD support since**: September 2023 (git master) + + Until the next stable release of OpenOCD is available in your development + environment's distribution, it might be necessary to build OpenOCD `from the + source <https://github.com/openocd-org/openocd>`_. + +Debugging U-Boot on J784S4-EVM and AM69-SK +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +.. include:: k3.rst + :start-after: .. k3_rst_include_start_openocd_connect_XDS110 + :end-before: .. k3_rst_include_end_openocd_connect_XDS110 + +To start OpenOCD and connect to J784S4-EVM or AM69-SK board, use the +following. + +.. code-block:: bash + + openocd -f board/ti_j784s4evm.cfgdoc/board/ti/k3.rst +0
-0
doc/board/ti/k3.rst K3 Based SoCs · line 47
Quoted 7 lines
doc/board/ti/k3.rst +1
-0@@ -41,6 +41,7 @@ K3 Based SoCs ../beagle/j721e_beagleboneai64 j721e_evm j721s2_evm + j784s4_evm Boot Flow Overview ------------------
Signature · 2 lines
Thanking You Neha Malcom Francis
Hi Apurva
Quoted 7 lines · Apurva Nandan
Hello Everyone!
This series will introduce basic support (SD and UART) support for Texas Instruments J784S4 EVM.
The J784S4 SoC device tree patches are taken from kernel patch submissions and will be updated as they are accepted and merged to the kernel tree.
This patch set does not include any such, right?
Anyway, for my tests I took them from linux-next on kernel.org.
However, I could not get the SD card working apart from it booting U-Boot off of it:
U-Boot SPL 2024.04-rc3-00015-g7186697f1ff (Feb 27 2024 - 14:27:29 +0100) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.9--v09.01.09 (Kool Koala)') Initialized 4 DRAM controllers
SPL initial stack usage: 13416 bytes
Trying to boot from MMC2
Authentication passed
Authentication passed
Authentication passed
Loading Environment from nowhere... OK
Authentication passed
Authentication passed
Starting ATF on ARM64 core...
NOTICE: BL31: v2.10.0(release):v2.10.0-412-g885e93f90 NOTICE: BL31: Built : 09:48:15, Feb 27 2024
I/TC:
I/TC: OP-TEE version: 4.1.0-140-g4078bcde9 (gcc version 13.2.1 20231009 (Arm GNU
Toolchain 13.2.rel1 (Build arm-13.7))) #1 Tue Feb 27 08:54:24 UTC 2024 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/
porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: GIC redistributor base address not provided
I/TC: Assuming default GIC group status and modifier
I/TC: SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.9--v09.01.09 (Kool Koala)') I/TC: HUK Initialized
I/TC: Activated SA2UL device
I/TC: Enabled firewalls for SA2UL TRNG device
I/TC: SA2UL TRNG initialized
I/TC: SA2UL Drivers initialized
I/TC: Primary CPU switching to normal world boot
U-Boot SPL 2024.04-rc3-00015-g7186697f1ff-dirty (Feb 27 2024 - 16:40:07 +0100) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.9--v09.01.09 (Kool Koala)') Trying to boot from MMC2
Authentication passed
Authentication passed
U-Boot 2024.04-rc3-00015-g7186697f1ff-dirty (Feb 27 2024 - 16:40:07 +0100)
SoC: J784S4 SR1.0 HS-FS Model: Texas Instruments J784S4 EVM DRAM: 2 GiB (effective 32 GiB) Core: 87 devices, 30 uclasses, devicetree: separate Flash: 0 Bytes MMC: mmc@4f80000: 0, mmc@4fb0000: 1 Loading Environment from nowhere... OK In: serial@2880000 Out: serial@2880000 Err: serial@2880000 am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000 Net: eth0: ethernet@46000000port@1 Hit any key to stop autoboot: 0
=> mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
=> mmc info
Device: mmc@4f80000
Manufacturer ID: 13
OEM: 4e
Name: G1M15L
Bus Speed: 200000000
Mode: HS400 (200MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 29.6 GiB
Bus Width: 8-bit DDR
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 29.6 GiB WRREL
Boot Capacity: 31.5 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected
=> mmc dev 1i2c_write: error waiting for data ACK (status=0x116) pca953x gpio@22: Error reading output register Card did not respond to voltage select! : -110mmc_init: -95, time 114
=>
Not sure what the issue may be.
Quoted 270 lines
All other patches are specific to SPL and u-boot and do not have dependency on other trees. Appreciate a review for acceptance to u-boot tree.
Here are some of the salient features of the J784S4 automotive grade application processor:
The J784S4 SoC belongs to the K3 Multicore SoC architecture platform, providing advanced system integration in automotive, ADAS and industrial applications requiring AI at the network edge. This SoC extends the K3 Jacinto 7 family of SoCs with focus on raising performance and integration while providing interfaces, memory architecture and compute performance for multi-sensor, high concurrency applications.
Some highlights of this SoC are:
* Up to 8 Cortex-A72s, four clusters of lockstep capable dual Cortex-R5F MCUs, 4 C7x floating point vector DSPs with Matrix Multiply Accelerator(MMA) for deep learning and CNN.
* 3D GPU: Automotive grade IMG BXS-4-64 MC1
* Vision Processing Accelerator (VPAC) with image signal processor and Depth and Motion Processing Accelerator (DMPAC)
* Three CSI2.0 4L RX plus two CSI2.0 4L TX, two DSI Tx, one eDP/DP and one DPI interface.
* Integrated gigabit ethernet switch, up to 8 ports (TDA4VH), two ports support 10Gb USXGMII; Two 4 lane PCIe-GEN3 controllers, USB3.0 Dual-role device subsystems, Up to 20 MCANs, among other peripherals.See J784S4 Technical Reference Manual (SPRUJ52 - JUNE 2022) for further details: http://www.ti.com/lit/zip/spruj52
In addtion, the J784S4 EVM board is designed for TI J784S4 SoC. It supports the following interfaces:
* 32 GB DDR4 RAM
* x2 Gigabit Ethernet interfaces capable of working in Switch and MAC mode
* x1 Input Audio Jack, x1 Output Audio Jack
* x1 USB2.0 Hub with two Type A host and x1 USB 3.1 Type-C Port
* x2 4L PCIe connector
* x1 UHS-1 capable micro-SD card slot
* 512 Mbit OSPI flash, 1 Gbit Octal NAND flash, 512 Mbit QSPI flash, UFS flash.
* x6 UART through UART-USB bridge
* XDS110 for onboard JTAG debug using USB
* Temperature sensors, user push buttons and LEDs
* 40-pin User Expansion Connector
* x2 ENET Expansion Connector, x1 GESI expander, x2 Display connector
* x1 15-pin CSI header
* x6 MCAN instancesSchematics: https://www.ti.com/lit/zip/sprr458
AM69 SD mode bootlog:
https://gist.githubusercontent.com/apurvanandan1997/1b2c55d0204ff0f5a47ebbc196a97e99/raw/
J784S4 SD mode bootlog:
https://gist.githubusercontent.com/apurvanandan1997/5e2ef85ee4322798d22b57a60dc917db/raw/
eMMC UDA moode bootlog:
https://gist.githubusercontent.com/apurvanandan1997/3cffada252d50a8aa0c00a91f1f2f856/raw/Note: This series is dependent on the following series for
OF_UPSTREAMsupport
https://lore.kernel.org/all/[email protected]/And, '[PATCH 01/15]
Makefile: remove hardcoded device tree source directory' has been cherry-picked from PATCH 11 of https://lore.kernel.org/all/[email protected]/ by Bryan BrattlofChanges in v10:
1) Fixed build failure due to missingOF_UPSTREAMin a72 defconfigs
2) Updated paths of board dtbs inbinman.dtsi,CONFIG_OF_LISTandCONFIG_DEFAULT_DEVICE_TREEChanges in v9:
1) Added support forOF_UPSTREAMand removed Linux dts copy/sync patches
2) Fixed DRAM enumeration algorithm inj784s4_init.cby adding max no. of controllers
3) Squashed bootph-all property of memory node into appropriate patch
4) Moved DDR changes out of the DMA patch
5) Fixed commit messages,MAINTAINERSfile, and removed unnecessary C headers
6) Added comment forWKUP_UART0
7) Used #include for defconfig for AM69-SK platform instead of config fragments
8) Fixed J784S4 EVM boot switch nameing in docLink to v8:
https://lore.kernel.org/u-boot/[email protected]/Changes in v8:
1) Squashed Linux am69-sk and j784s4-evm dts patches into one
2) Sorted config addition of SoC in arm/mach-K3/Kconfig
3) Updated commit messages according to the reviews
4) Removed #inlcude <config.h>
5) Removedk3_mmc_stop_clockandk3_mmc_restart_clock
6) Movedboard_init_flogic to separate smaller functions
7) Removed J784S4 EVM specificKconfigoptions inj784s4_int.c
8) Cleaned up emmc boot flow based on commit66459346463439c72f84cfd1f985496b8a6142d8
9) Removed the dependency of findfdt and updated toti_set_fdt_env
10) Updated copyright messages
11) Did cleanup/formatting of yaml files, removing linting errors
12) Removed k3-am69-sk specific things fromk3-j784s4-binman.dtsi
13) ChangedOF_LISTto a single dtb
14) Added bootph-all tag in EVM and SK dts instead ofu-boot.dtsi
15) Trimmed the defconfig files to minimal
16) Merged the MAINTAINER file in right patches
17) Updated OpenOCD tag in U-Boot doc
18) And fixed other formatting mistakes.Link to v7:
https://lore.kernel.org/u-boot/[email protected]/Changes in v7:
1) Moved to unified memory map inarm64-mmu.cbased on
https://lore.kernel.org/all/[email protected]/
2) UsedARRAY_SIZEinclk-data.canddev-data.c
3) Removed I2C board detect fromj784s4_init.c
4) Rebased to latest nextLink to v6:
https://lore.kernel.org/all/[email protected]/Changes in v6:
1) Move bootph-all of memory node tou-boot.dtsi
2) Used a while loop for DRAM controller init, instead of hard-coding for 4 DRAM
3) Fixed build error by adding board/ti/j784s4/Kconfig
4) Trimmed outj784s4_evm.h
5) Fixed checkpatch warningsLink to v5:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/Changes in v5:
1) Incorporated Andrew Davis' "Move R5 specific code into new r5/ directory" and "Move board selection to mach-k3" series changes.
2) Incorporated Neha Francis' "Move to using templated FITs" series changes.
3) Synced device tree files with Linux v6.7-rc1
4) Changedti_mmcto mmc1 target from bootstd
5) Updated doc based on review comments
6) Removed remoteproc support from the series
7) Splitted board files patch into smaller patches
8) Trimmed j784s4.env to necessary variables
9) Usedfdtdec_setup_mem_size_basefdtdec_setup_memory_banksizeinevm.c
10) Trimmed downevm.cto essential header files.
11) Switched to multi-dtb fit compilation with config fragmentsLink to v4:
https://lore.kernel.org/u-boot/[email protected]/Changes in v4:
1) Cleaned up Copyright and SPDX identifiers
2) Synced the device trees to Linux v6.6-rc1 tag
3) Added cleanup patch for sorting SoC JTAG ID entries
4) Removed EEPROM board detect fromevm.cand added am69 config fragments
5) UpdatedMAINTAINERSfiles and commit messages
6) Removed struct renaming inti_k3_r5f_rprocdriverLink to v3:
https://lore.kernel.org/u-boot/[email protected]/Changes in v3:
1) Added AM69 SK support in the series
2) Switched from distroboot to bootstd support
3) Added remoteproc support for J784S4
4) Added documentation for both SoCs
5) Added binman support
6) Removed unnecessarry nodes fromr5-evm.dtsandevm-u-boot.dtsi
7) Added HS device support
8) Added env file for environement variables
9) Removed ti-serdes-mux bindings
10) Cleaned up all files and synced with latest
11) Addressed all previous review commentsNote: The base dts files have been sync from next-20230905 linux tag as per review comment received on previous re-roll:
https://lore.kernel.org/u-boot/20230321155227.GV8135@bill-the-cat/Link to v2:
https://lore.kernel.org/u-boot/[email protected]/Apurva Nandan (12):
arm: mach-k3:Kconfig: SortSOC_K3config entries
arm: mach-k3: Add basic support for J784S4 SoC definition
arm: mach-k3: Sort SoCJTAG_IDentries
soc: ti: k3-socinfo: Add entry for J784S4 SoC
arm: mach-k3: j784s4: Add clk and power support
drivers: dma: Add support for J784S4 SoC
board: ti: j784s4: Add board support for J784S4 EVM
board: ti: j748s4: Add board config yaml files
board: ti: j784s4: Add boot environment variables
arm: dts: Introduce j784s4 u-boot dts files
configs:j784s4_evm: Add defconfig for J784S4 EVM board
doc: board: ti: k3: Add J784S4 EVM and AM69 SK documentationBryan Brattlof (1):
Makefile: remove hardcoded device tree source directoryDasnavis Sabiya (2):
arm: dts: Introduce am69-sk u-boot dts files
configs:am69_sk: Add defconfig for AM69 SK boardMakefile | 18 +- arch/arm/dts/Makefile | 4 + arch/arm/dts/k3-am69-r5-sk.dts | 106 + arch/arm/dts/k3-am69-sk-u-boot.dtsi | 54 + arch/arm/dts/k3-j784s4-binman.dtsi | 345 + arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi | 8757 ++++++++++++++++ arch/arm/dts/k3-j784s4-ddr.dtsi | 8858 +++++++++++++++++ arch/arm/dts/k3-j784s4-evm-u-boot.dtsi | 31 + arch/arm/dts/k3-j784s4-r5-evm.dts | 106 + arch/arm/mach-k3/Kconfig | 33 +- arch/arm/mach-k3/Makefile | 2 + arch/arm/mach-k3/include/mach/hardware.h | 13 +- .../mach-k3/include/mach/j784s4_hardware.h | 59 + arch/arm/mach-k3/include/mach/j784s4_spl.h | 47 + arch/arm/mach-k3/include/mach/spl.h | 4 + arch/arm/mach-k3/j784s4/Kconfig | 34 + arch/arm/mach-k3/j784s4_fdt.c | 15 + arch/arm/mach-k3/j784s4_init.c | 310 + arch/arm/mach-k3/r5/Makefile | 1 + arch/arm/mach-k3/r5/j784s4/Makefile | 7 + arch/arm/mach-k3/r5/j784s4/clk-data.c | 428 + arch/arm/mach-k3/r5/j784s4/dev-data.c | 98 + board/ti/j784s4/Kconfig | 37 + board/ti/j784s4/MAINTAINERS | 21 + board/ti/j784s4/Makefile | 7 + board/ti/j784s4/board-cfg.yaml | 37 + board/ti/j784s4/evm.c | 41 + board/ti/j784s4/j784s4.env | 17 + board/ti/j784s4/pm-cfg.yaml | 13 + board/ti/j784s4/rm-cfg.yaml | 3058 ++++++ board/ti/j784s4/sec-cfg.yaml | 380 + board/ti/j784s4/tifs-rm-cfg.yaml | 2656 +++++ configs/am69_sk_a72_defconfig | 9 + configs/am69_sk_r5_defconfig | 10 + configs/j784s4_evm_a72_defconfig | 159 + configs/j784s4_evm_r5_defconfig | 153 + doc/board/ti/j784s4_evm.rst | 299 + doc/board/ti/k3.rst | 1 + drivers/clk/ti/clk-k3.c | 6 + drivers/dma/ti/Makefile | 1 + drivers/dma/ti/k3-psil-j784s4.c | 166 + drivers/dma/ti/k3-psil-priv.h | 1 + drivers/dma/ti/k3-psil.c | 2 + drivers/firmware/ti_sci_static_data.h | 34 + drivers/power/domain/ti-power-domain.c | 6 + drivers/ram/Kconfig | 2 +- drivers/soc/soc_ti_k3.c | 3 + include/configs/j784s4_evm.h | 15 + include/k3-clk.h | 1 + include/k3-dev.h | 1 + scripts/Makefile.spl | 17 +-
51 files changed, 26455 insertions(+), 28 deletions(-)create mode 100644
arch/arm/dts/k3-am69-r5-sk.dtscreate mode 100644arch/arm/dts/k3-am69-sk-u-boot.dtsicreate mode 100644arch/arm/dts/k3-j784s4-binman.dtsicreate mode 100644arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsicreate mode 100644arch/arm/dts/k3-j784s4-ddr.dtsicreate mode 100644arch/arm/dts/k3-j784s4-evm-u-boot.dtsicreate mode 100644arch/arm/dts/k3-j784s4-r5-evm.dtscreate mode 100644arch/arm/mach-k3/include/mach/j784s4_hardware.hcreate mode 100644arch/arm/mach-k3/include/mach/j784s4_spl.hcreate mode 100644arch/arm/mach-k3/j784s4/Kconfigcreate mode 100644arch/arm/mach-k3/j784s4_fdt.c
create mode 100644arch/arm/mach-k3/j784s4_init.ccreate mode 100644arch/arm/mach-k3/r5/j784s4/Makefilecreate mode 100644arch/arm/mach-k3/r5/j784s4/clk-data.ccreate mode 100644arch/arm/mach-k3/r5/j784s4/dev-data.ccreate mode 100644 board/ti/j784s4/Kconfig
create mode 100644 board/ti/j784s4/MAINTAINERS
create mode 100644 board/ti/j784s4/Makefile
create mode 100644board/ti/j784s4/board-cfg.yamlcreate mode 100644board/ti/j784s4/evm.c
create mode 100644 board/ti/j784s4/j784s4.env
create mode 100644board/ti/j784s4/pm-cfg.yaml
create mode 100644board/ti/j784s4/rm-cfg.yaml
create mode 100644board/ti/j784s4/sec-cfg.yaml
Quoted 8 lines
create mode 100644
board/ti/j784s4/tifs-rm-cfg.yamlcreate mode 100644 configs/am69_sk_a72_defconfig create mode 100644 configs/am69_sk_r5_defconfig create mode 100644 configs/j784s4_evm_a72_defconfig create mode 100644 configs/j784s4_evm_r5_defconfig create mode 100644doc/board/ti/j784s4_evm.rstcreate mode 100644drivers/dma/ti/k3-psil-j784s4.ccreate mode 100644include/configs/j784s4_evm.h
Cheers
Marcel
Hi Marcel,
Quoted 6 lines · Marcel Ziswiler
Hi Apurva
Quoted 2 lines · Apurva Nandan
Hello Everyone!
Quoted 8 lines
Quoted 5 lines
This series will introduce basic support (SD and UART) support for Texas Instruments J784S4 EVM.
The J784S4 SoC device tree patches are taken from kernel patch submissions and will be updated as they are accepted and merged to the kernel tree.
This patch set does not include any such, right?
I suppose you have missed to apply dependencies for this patch-set, look for following:
Note: This series is dependent on the following series for OF_UPSTREAM support
https://lore.kernel.org/all/[email protected]/
And, '[PATCH 01/15] Makefile: remove hardcoded device tree source directory' has been
cherry-picked from PATCH 11 of
https://lore.kernel.org/all/[email protected]/ by Bryan
Brattlof
-Sumit
[snip]
Hi Sumit
Quoted 16 lines · Sumit Garg
Hi Marcel,
Quoted 12 lines · Marcel Ziswiler
Hi Apurva
Quoted 7 lines · Apurva Nandan
Hello Everyone!
This series will introduce basic support (SD and UART) support for Texas Instruments J784S4 EVM.
The J784S4 SoC device tree patches are taken from kernel patch submissions and will be updated as they are accepted and merged to the kernel tree.
Quoted 8 lines
Quoted 2 lines
This patch set does not include any such, right?
I suppose you have missed to apply dependencies for this patch-set, look for following:
Note: This series is dependent on the following series for
OF_UPSTREAMsupport
https://lore.kernel.org/all/[email protected]/
Yes, sorry, I missed that one. With that it applies/compiles perfectly. Thanks!
However, still the same issue with the SD card:
U-Boot SPL 2024.04-rc3-00028-g9edcd6ffd06 (Feb 28 2024 - 11:53:27 +0100) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.9--v09.01.09 (Kool Koala)') Initialized 4 DRAM controllers
SPL initial stack usage: 13416 bytes
Trying to boot from MMC2
Authentication passed
Authentication passed
Authentication passed
Loading Environment from nowhere... OK
Authentication passed
Authentication passed
Starting ATF on ARM64 core...
NOTICE: BL31: v2.10.0(release):v2.10.0-412-g885e93f90 NOTICE: BL31: Built : 09:48:15, Feb 27 2024
I/TC:
I/TC: OP-TEE version: 4.1.0-140-g4078bcde9 (gcc version 13.2.1 20231009 (Arm GNU
Toolchain 13.2.rel1 (Build arm-13.7))) #1 Tue Feb 27 08:54:24 UTC 2024 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/
porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: GIC redistributor base address not provided
I/TC: Assuming default GIC group status and modifier
I/TC: SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.9--v09.01.09 (Kool Koala)') I/TC: HUK Initialized
I/TC: Activated SA2UL device
I/TC: Enabled firewalls for SA2UL TRNG device
I/TC: SA2UL TRNG initialized
I/TC: SA2UL Drivers initialized
I/TC: Primary CPU switching to normal world boot
U-Boot SPL 2024.04-rc3-00028-g9edcd6ffd06 (Feb 28 2024 - 11:54:01 +0100) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.9--v09.01.09 (Kool Koala)') Trying to boot from MMC2
Authentication passed
Authentication passed
U-Boot 2024.04-rc3-00028-g9edcd6ffd06 (Feb 28 2024 - 11:54:01 +0100)
SoC: J784S4 SR1.0 HS-FS Model: Texas Instruments J784S4 EVM DRAM: 2 GiB (effective 32 GiB) Core: 81 devices, 30 uclasses, devicetree: separate Flash: 0 Bytes MMC: mmc@4f80000: 0, mmc@4fb0000: 1 Loading Environment from nowhere... OK In: serial@2880000 Out: serial@2880000 Err: serial@2880000 am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000 Net: eth0: ethernet@46000000port@1 Hit any key to stop autoboot: 0
=> mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
=> mmc info
Device: mmc@4f80000
Manufacturer ID: 13
OEM: 4e
Name: G1M15L
Bus Speed: 200000000
Mode: HS400 (200MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 29.6 GiB
Bus Width: 8-bit DDR
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 29.6 GiB WRREL
Boot Capacity: 31.5 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected
=> mmc dev 1i2c_write: error waiting for data ACK (status=0x116) pca953x gpio@22: Error reading output register Card did not respond to voltage select! : -110mmc_init: -95, time 114
=>
And yes, the SD card previously did work properly. Any ideas?
Quoted 10 lines
And, '[PATCH 01/15]
Makefile: remove hardcoded device tree source directory' has been
cherry-picked from PATCH 11 of
https://lore.kernel.org/all/[email protected]/ by
Bryan
Brattlof-Sumit
[snip]
Cheers
Marcel
Hi Marcel,
Quoted 10 lines · Marcel Ziswiler
Hi Apurva
Quoted 7 lines · Apurva Nandan
Hello Everyone!
This series will introduce basic support (SD and UART) support for Texas Instruments J784S4 EVM.
The J784S4 SoC device tree patches are taken from kernel patch submissions and will be updated as they are accepted and merged to the kernel tree.
Sorry about that. I didn't update that part of the cover letter. So now, we will be using Linux dts as a git subtree inside U-Boot. And hence, this series doesn't has a Linux DTS sync/copy patch.
You can get all details in this series:
https://lore.kernel.org/all/[email protected]/#r
Quoted 90 lines
This patch set does not include any such, right?
Anyway, for my tests I took them from linux-next on kernel.org.
However, I could not get the SD card working apart from it booting U-Boot off of it:
U-Boot SPL 2024.04-rc3-00015-g7186697f1ff (Feb 27 2024 - 14:27:29 +0100) SYSFW ABI: 3.1 (firmware rev
0x0009'9.1.9--v09.01.09 (Kool Koala)') Initialized 4 DRAM controllers
SPL initial stack usage: 13416 bytes
Trying to boot from MMC2
Authentication passed
Authentication passed
Authentication passed
Loading Environment from nowhere... OK
Authentication passed
Authentication passed
Starting ATF on ARM64 core...NOTICE: BL31: v2.10.0(release):v2.10.0-412-g885e93f90 NOTICE: BL31: Built : 09:48:15, Feb 27 2024I/TC:
I/TC: OP-TEE version: 4.1.0-140-g4078bcde9 (gcc version 13.2.1 20231009 (Arm GNU
Toolchain 13.2.rel1 (Build arm-13.7))) #1 Tue Feb 27 08:54:24 UTC 2024 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/
porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: GIC redistributor base address not provided
I/TC: Assuming default GIC group status and modifier
I/TC: SYSFW ABI: 3.1 (firmware rev0x0009'9.1.9--v09.01.09 (Kool Koala)') I/TC: HUK Initialized
I/TC: Activated SA2UL device
I/TC: Enabled firewalls for SA2UL TRNG device
I/TC: SA2UL TRNG initialized
I/TC: SA2UL Drivers initialized
I/TC: Primary CPU switching to normal world bootU-Boot SPL 2024.04-rc3-00015-g7186697f1ff-dirty (Feb 27 2024 - 16:40:07 +0100) SYSFW ABI: 3.1 (firmware rev
0x0009'9.1.9--v09.01.09 (Kool Koala)') Trying to boot from MMC2
Authentication passed
Authentication passedU-Boot 2024.04-rc3-00015-g7186697f1ff-dirty (Feb 27 2024 - 16:40:07 +0100)
SoC: J784S4 SR1.0 HS-FS Model: Texas Instruments J784S4 EVM DRAM: 2 GiB (effective 32 GiB) Core: 87 devices, 30 uclasses, devicetree: separate Flash: 0 Bytes MMC: mmc@4f80000: 0, mmc@4fb0000: 1 Loading Environment from nowhere... OK In: serial@2880000 Out: serial@2880000 Err: serial@2880000 am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000 Net: eth0: ethernet@46000000port@1 Hit any key to stop autoboot: 0=> mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
=> mmc info
Device: mmc@4f80000
Manufacturer ID: 13
OEM: 4e
Name: G1M15L
Bus Speed: 200000000
Mode: HS400 (200MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 29.6 GiB
Bus Width: 8-bit DDR
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 29.6 GiB WRREL
Boot Capacity: 31.5 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected
=> mmc dev 1i2c_write: error waiting for data ACK (status=0x116) pca953x gpio@22: Error reading output register Card did not respond to voltage select! : -110mmc_init: -95, time 114
=>
Quoted 1 line
Not sure what the issue may be.
Which platform are you testing this on? J784S4 EVM or AM69-SK?
As per comments on v8, I have moved from config fragments to having #include in defconfig files. So, to build for AM69-SK, you need to use am69_sk_r5_defconfig and am69_sk_a72_defconfig . And for the J784S4 EVM, the defconfigs will stay same: j784s4_evm_r5_defconfig and j784s4_evm_a72_defconfig .
Quoted 281 lines
Quoted 270 lines
All other patches are specific to SPL and u-boot and do not have dependency on other trees. Appreciate a review for acceptance to u-boot tree.
Here are some of the salient features of the J784S4 automotive grade application processor:
The J784S4 SoC belongs to the K3 Multicore SoC architecture platform, providing advanced system integration in automotive, ADAS and industrial applications requiring AI at the network edge. This SoC extends the K3 Jacinto 7 family of SoCs with focus on raising performance and integration while providing interfaces, memory architecture and compute performance for multi-sensor, high concurrency applications.
Some highlights of this SoC are:
* Up to 8 Cortex-A72s, four clusters of lockstep capable dual Cortex-R5F MCUs, 4 C7x floating point vector DSPs with Matrix Multiply Accelerator(MMA) for deep learning and CNN.
* 3D GPU: Automotive grade IMG BXS-4-64 MC1
* Vision Processing Accelerator (VPAC) with image signal processor and Depth and Motion Processing Accelerator (DMPAC)
* Three CSI2.0 4L RX plus two CSI2.0 4L TX, two DSI Tx, one eDP/DP and one DPI interface.
* Integrated gigabit ethernet switch, up to 8 ports (TDA4VH), two ports support 10Gb USXGMII; Two 4 lane PCIe-GEN3 controllers, USB3.0 Dual-role device subsystems, Up to 20 MCANs, among other peripherals.See J784S4 Technical Reference Manual (SPRUJ52 - JUNE 2022) for further details: http://www.ti.com/lit/zip/spruj52
In addtion, the J784S4 EVM board is designed for TI J784S4 SoC. It supports the following interfaces:
* 32 GB DDR4 RAM
* x2 Gigabit Ethernet interfaces capable of working in Switch and MAC mode
* x1 Input Audio Jack, x1 Output Audio Jack
* x1 USB2.0 Hub with two Type A host and x1 USB 3.1 Type-C Port
* x2 4L PCIe connector
* x1 UHS-1 capable micro-SD card slot
* 512 Mbit OSPI flash, 1 Gbit Octal NAND flash, 512 Mbit QSPI flash, UFS flash.
* x6 UART through UART-USB bridge
* XDS110 for onboard JTAG debug using USB
* Temperature sensors, user push buttons and LEDs
* 40-pin User Expansion Connector
* x2 ENET Expansion Connector, x1 GESI expander, x2 Display connector
* x1 15-pin CSI header
* x6 MCAN instancesSchematics: https://www.ti.com/lit/zip/sprr458
AM69 SD mode bootlog:
https://gist.githubusercontent.com/apurvanandan1997/1b2c55d0204ff0f5a47ebbc196a97e99/raw/
J784S4 SD mode bootlog:
https://gist.githubusercontent.com/apurvanandan1997/5e2ef85ee4322798d22b57a60dc917db/raw/
eMMC UDA moode bootlog:
https://gist.githubusercontent.com/apurvanandan1997/3cffada252d50a8aa0c00a91f1f2f856/raw/Note: This series is dependent on the following series for
OF_UPSTREAMsupport
https://lore.kernel.org/all/[email protected]/And, '[PATCH 01/15]
Makefile: remove hardcoded device tree source directory' has been cherry-picked from PATCH 11 of https://lore.kernel.org/all/[email protected]/ by Bryan BrattlofChanges in v10:
1) Fixed build failure due to missingOF_UPSTREAMin a72 defconfigs
2) Updated paths of board dtbs inbinman.dtsi,CONFIG_OF_LISTandCONFIG_DEFAULT_DEVICE_TREEChanges in v9:
1) Added support forOF_UPSTREAMand removed Linux dts copy/sync patches
2) Fixed DRAM enumeration algorithm inj784s4_init.cby adding max no. of controllers
3) Squashed bootph-all property of memory node into appropriate patch
4) Moved DDR changes out of the DMA patch
5) Fixed commit messages,MAINTAINERSfile, and removed unnecessary C headers
6) Added comment forWKUP_UART0
7) Used #include for defconfig for AM69-SK platform instead of config fragments
8) Fixed J784S4 EVM boot switch nameing in docLink to v8:
https://lore.kernel.org/u-boot/[email protected]/Changes in v8:
1) Squashed Linux am69-sk and j784s4-evm dts patches into one
2) Sorted config addition of SoC in arm/mach-K3/Kconfig
3) Updated commit messages according to the reviews
4) Removed #inlcude <config.h>
5) Removedk3_mmc_stop_clockandk3_mmc_restart_clock
6) Movedboard_init_flogic to separate smaller functions
7) Removed J784S4 EVM specificKconfigoptions inj784s4_int.c
8) Cleaned up emmc boot flow based on commit66459346463439c72f84cfd1f985496b8a6142d8
9) Removed the dependency of findfdt and updated toti_set_fdt_env
10) Updated copyright messages
11) Did cleanup/formatting of yaml files, removing linting errors
12) Removed k3-am69-sk specific things fromk3-j784s4-binman.dtsi
13) ChangedOF_LISTto a single dtb
14) Added bootph-all tag in EVM and SK dts instead ofu-boot.dtsi
15) Trimmed the defconfig files to minimal
16) Merged the MAINTAINER file in right patches
17) Updated OpenOCD tag in U-Boot doc
18) And fixed other formatting mistakes.Link to v7:
https://lore.kernel.org/u-boot/[email protected]/Changes in v7:
1) Moved to unified memory map inarm64-mmu.cbased on
https://lore.kernel.org/all/[email protected]/
2) UsedARRAY_SIZEinclk-data.canddev-data.c
3) Removed I2C board detect fromj784s4_init.c
4) Rebased to latest nextLink to v6:
https://lore.kernel.org/all/[email protected]/Changes in v6:
1) Move bootph-all of memory node tou-boot.dtsi
2) Used a while loop for DRAM controller init, instead of hard-coding for 4 DRAM
3) Fixed build error by adding board/ti/j784s4/Kconfig
4) Trimmed outj784s4_evm.h
5) Fixed checkpatch warningsLink to v5:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/Changes in v5:
1) Incorporated Andrew Davis' "Move R5 specific code into new r5/ directory" and "Move board selection to mach-k3" series changes.
2) Incorporated Neha Francis' "Move to using templated FITs" series changes.
3) Synced device tree files with Linux v6.7-rc1
4) Changedti_mmcto mmc1 target from bootstd
5) Updated doc based on review comments
6) Removed remoteproc support from the series
7) Splitted board files patch into smaller patches
8) Trimmed j784s4.env to necessary variables
9) Usedfdtdec_setup_mem_size_basefdtdec_setup_memory_banksizeinevm.c
10) Trimmed downevm.cto essential header files.
11) Switched to multi-dtb fit compilation with config fragmentsLink to v4:
https://lore.kernel.org/u-boot/[email protected]/Changes in v4:
1) Cleaned up Copyright and SPDX identifiers
2) Synced the device trees to Linux v6.6-rc1 tag
3) Added cleanup patch for sorting SoC JTAG ID entries
4) Removed EEPROM board detect fromevm.cand added am69 config fragments
5) UpdatedMAINTAINERSfiles and commit messages
6) Removed struct renaming inti_k3_r5f_rprocdriverLink to v3:
https://lore.kernel.org/u-boot/[email protected]/Changes in v3:
1) Added AM69 SK support in the series
2) Switched from distroboot to bootstd support
3) Added remoteproc support for J784S4
4) Added documentation for both SoCs
5) Added binman support
6) Removed unnecessarry nodes fromr5-evm.dtsandevm-u-boot.dtsi
7) Added HS device support
8) Added env file for environement variables
9) Removed ti-serdes-mux bindings
10) Cleaned up all files and synced with latest
11) Addressed all previous review commentsNote: The base dts files have been sync from next-20230905 linux tag as per review comment received on previous re-roll:
https://lore.kernel.org/u-boot/20230321155227.GV8135@bill-the-cat/Link to v2:
https://lore.kernel.org/u-boot/[email protected]/Apurva Nandan (12):
arm: mach-k3:Kconfig: SortSOC_K3config entries
arm: mach-k3: Add basic support for J784S4 SoC definition
arm: mach-k3: Sort SoCJTAG_IDentries
soc: ti: k3-socinfo: Add entry for J784S4 SoC
arm: mach-k3: j784s4: Add clk and power support
drivers: dma: Add support for J784S4 SoC
board: ti: j784s4: Add board support for J784S4 EVM
board: ti: j748s4: Add board config yaml files
board: ti: j784s4: Add boot environment variables
arm: dts: Introduce j784s4 u-boot dts files
configs:j784s4_evm: Add defconfig for J784S4 EVM board
doc: board: ti: k3: Add J784S4 EVM and AM69 SK documentationBryan Brattlof (1):
Makefile: remove hardcoded device tree source directoryDasnavis Sabiya (2):
arm: dts: Introduce am69-sk u-boot dts files
configs:am69_sk: Add defconfig for AM69 SK boardMakefile | 18 +- arch/arm/dts/Makefile | 4 + arch/arm/dts/k3-am69-r5-sk.dts | 106 + arch/arm/dts/k3-am69-sk-u-boot.dtsi | 54 + arch/arm/dts/k3-j784s4-binman.dtsi | 345 + arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi | 8757 ++++++++++++++++ arch/arm/dts/k3-j784s4-ddr.dtsi | 8858 +++++++++++++++++ arch/arm/dts/k3-j784s4-evm-u-boot.dtsi | 31 + arch/arm/dts/k3-j784s4-r5-evm.dts | 106 + arch/arm/mach-k3/Kconfig | 33 +- arch/arm/mach-k3/Makefile | 2 + arch/arm/mach-k3/include/mach/hardware.h | 13 +- .../mach-k3/include/mach/j784s4_hardware.h | 59 + arch/arm/mach-k3/include/mach/j784s4_spl.h | 47 + arch/arm/mach-k3/include/mach/spl.h | 4 + arch/arm/mach-k3/j784s4/Kconfig | 34 + arch/arm/mach-k3/j784s4_fdt.c | 15 + arch/arm/mach-k3/j784s4_init.c | 310 + arch/arm/mach-k3/r5/Makefile | 1 + arch/arm/mach-k3/r5/j784s4/Makefile | 7 + arch/arm/mach-k3/r5/j784s4/clk-data.c | 428 + arch/arm/mach-k3/r5/j784s4/dev-data.c | 98 + board/ti/j784s4/Kconfig | 37 + board/ti/j784s4/MAINTAINERS | 21 + board/ti/j784s4/Makefile | 7 + board/ti/j784s4/board-cfg.yaml | 37 + board/ti/j784s4/evm.c | 41 + board/ti/j784s4/j784s4.env | 17 + board/ti/j784s4/pm-cfg.yaml | 13 + board/ti/j784s4/rm-cfg.yaml | 3058 ++++++ board/ti/j784s4/sec-cfg.yaml | 380 + board/ti/j784s4/tifs-rm-cfg.yaml | 2656 +++++ configs/am69_sk_a72_defconfig | 9 + configs/am69_sk_r5_defconfig | 10 + configs/j784s4_evm_a72_defconfig | 159 + configs/j784s4_evm_r5_defconfig | 153 + doc/board/ti/j784s4_evm.rst | 299 + doc/board/ti/k3.rst | 1 + drivers/clk/ti/clk-k3.c | 6 + drivers/dma/ti/Makefile | 1 + drivers/dma/ti/k3-psil-j784s4.c | 166 + drivers/dma/ti/k3-psil-priv.h | 1 + drivers/dma/ti/k3-psil.c | 2 + drivers/firmware/ti_sci_static_data.h | 34 + drivers/power/domain/ti-power-domain.c | 6 + drivers/ram/Kconfig | 2 +- drivers/soc/soc_ti_k3.c | 3 + include/configs/j784s4_evm.h | 15 + include/k3-clk.h | 1 + include/k3-dev.h | 1 + scripts/Makefile.spl | 17 +- 51 files changed, 26455 insertions(+), 28 deletions(-)create mode 100644
arch/arm/dts/k3-am69-r5-sk.dtscreate mode 100644arch/arm/dts/k3-am69-sk-u-boot.dtsicreate mode 100644arch/arm/dts/k3-j784s4-binman.dtsicreate mode 100644arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsicreate mode 100644arch/arm/dts/k3-j784s4-ddr.dtsicreate mode 100644arch/arm/dts/k3-j784s4-evm-u-boot.dtsicreate mode 100644arch/arm/dts/k3-j784s4-r5-evm.dtscreate mode 100644arch/arm/mach-k3/include/mach/j784s4_hardware.hcreate mode 100644arch/arm/mach-k3/include/mach/j784s4_spl.hcreate mode 100644arch/arm/mach-k3/j784s4/Kconfigcreate mode 100644arch/arm/mach-k3/j784s4_fdt.c
create mode 100644arch/arm/mach-k3/j784s4_init.ccreate mode 100644arch/arm/mach-k3/r5/j784s4/Makefilecreate mode 100644arch/arm/mach-k3/r5/j784s4/clk-data.ccreate mode 100644arch/arm/mach-k3/r5/j784s4/dev-data.ccreate mode 100644 board/ti/j784s4/Kconfig
create mode 100644 board/ti/j784s4/MAINTAINERS
create mode 100644 board/ti/j784s4/Makefile
create mode 100644board/ti/j784s4/board-cfg.yamlcreate mode 100644board/ti/j784s4/evm.c
create mode 100644 board/ti/j784s4/j784s4.env
create mode 100644board/ti/j784s4/pm-cfg.yaml
create mode 100644board/ti/j784s4/rm-cfg.yaml
create mode 100644board/ti/j784s4/sec-cfg.yamlQuoted 8 lines
create mode 100644
board/ti/j784s4/tifs-rm-cfg.yamlcreate mode 100644 configs/am69_sk_a72_defconfig create mode 100644 configs/am69_sk_r5_defconfig create mode 100644 configs/j784s4_evm_a72_defconfig create mode 100644 configs/j784s4_evm_r5_defconfig create mode 100644doc/board/ti/j784s4_evm.rstcreate mode 100644drivers/dma/ti/k3-psil-j784s4.ccreate mode 100644include/configs/j784s4_evm.hCheers
Marcel
Signature · 3 lines
Regards, Apurva Nandan, Texas Instruments.
Marcel Ziswiler
Tested-byHi Apurva
Quoted 15 lines · Apurva Nandan
Hi Marcel,
Quoted 10 lines · Marcel Ziswiler
Hi Apurva
Quoted 7 lines · Apurva Nandan
Hello Everyone!
This series will introduce basic support (SD and UART) support for Texas Instruments J784S4 EVM.
The J784S4 SoC device tree patches are taken from kernel patch submissions and will be updated as they are accepted and merged to the kernel tree.
Quoted 7 lines
Sorry about that. I didn't update that part of the cover letter. So now, we will be using
Linux dts as a git subtree inside U-Boot. And hence, this series doesn't has a Linux DTS sync/copy patch.You can get all details in this series:
https://lore.kernel.org/all/[email protected]/#r
Yes, sorry. I got that now and with that it applies/compiles perfectly.
Quoted 90 lines
Quoted 90 lines
This patch set does not include any such, right?
Anyway, for my tests I took them from linux-next on kernel.org.
However, I could not get the SD card working apart from it booting U-Boot off of it:
U-Boot SPL 2024.04-rc3-00015-g7186697f1ff (Feb 27 2024 - 14:27:29 +0100) SYSFW ABI: 3.1 (firmware rev
0x0009'9.1.9--v09.01.09 (Kool Koala)') Initialized 4 DRAM controllers
SPL initial stack usage: 13416 bytes
Trying to boot from MMC2
Authentication passed
Authentication passed
Authentication passed
Loading Environment from nowhere... OK
Authentication passed
Authentication passed
Starting ATF on ARM64 core...
NOTICE: BL31: v2.10.0(release):v2.10.0-412-g885e93f90
NOTICE: BL31: Built : 09:48:15, Feb 27 2024
I/TC:
I/TC: OP-TEE version: 4.1.0-140-g4078bcde9 (gcc version 13.2.1 20231009 (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7))) #1 Tue Feb 27 08:54:24 UTC 2024 aarch64 I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/
porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: GIC redistributor base address not provided
I/TC: Assuming default GIC group status and modifier
I/TC: SYSFW ABI: 3.1 (firmware rev0x0009'9.1.9--v09.01.09 (Kool Koala)') I/TC: HUK Initialized
I/TC: Activated SA2UL device
I/TC: Enabled firewalls for SA2UL TRNG device
I/TC: SA2UL TRNG initialized
I/TC: SA2UL Drivers initialized
I/TC: Primary CPU switching to normal world boot
U-Boot SPL 2024.04-rc3-00015-g7186697f1ff-dirty (Feb 27 2024 - 16:40:07 +0100) SYSFW ABI: 3.1 (firmware rev0x0009'9.1.9--v09.01.09 (Kool Koala)') Trying to boot from MMC2
Authentication passed
Authentication passedU-Boot 2024.04-rc3-00015-g7186697f1ff-dirty (Feb 27 2024 - 16:40:07 +0100)
SoC: J784S4 SR1.0 HS-FS
Model: Texas Instruments J784S4 EVM
DRAM: 2 GiB (effective 32 GiB)
Core: 87 devices, 30 uclasses, devicetree: separate
Flash: 0 Bytes
MMC: mmc@4f80000: 0, mmc@4fb0000: 1
Loading Environment from nowhere... OK
In: serial@2880000
Out: serial@2880000
Err: serial@2880000am65_cpsw_nussethernet@46000000: K3 CPSW:nuss_ver:0x6BA02102cpsw_ver:0x6BA82102ale_ver:0x00293904Ports:1 mdio_freq:1000000
Net: eth0: ethernet@46000000port@1
Hit any key to stop autoboot: 0
=> mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
=> mmc info
Device: mmc@4f80000
Manufacturer ID: 13
OEM: 4e
Name: G1M15L
Bus Speed: 200000000
Mode: HS400 (200MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 29.6 GiB
Bus Width: 8-bit DDR
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 29.6 GiB WRREL
Boot Capacity: 31.5 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected
=> mmc dev 1i2c_write: error waiting for data ACK (status=0x116)
pca953x gpio@22: Error reading output register
Card did not respond to voltage select! : -110mmc_init: -95, time 114
=>
Quoted 4 lines
Quoted 1 line
Not sure what the issue may be.
Which platform are you testing this on? J784S4 EVM or AM69-SK?
AM69-SK.
Quoted 6 lines
As per comments on v8, I have moved from config fragments to having #include in defconfig files.
So, to build for AM69-SK, you need to useam69_sk_r5_defconfigandam69_sk_a72_defconfig.
And for the J784S4 EVM, the defconfigs will stay same:j784s4_evm_r5_defconfigandj784s4_evm_a72_defconfig.
Okay, that's what I was missing. Thanks!
Apart from a few warnings this works now perfectly.
Configuring for am69_sk_r5_defconfig I get the following:
generated_defconfig:161:warning: override: reassigning to symbol ARM generated_defconfig:161:warning: override: ARM changes choice state generated_defconfig:162:warning: override: reassigning to symbol ARCH_K3 generated_defconfig:162:warning: override: ARCH_K3 changes choice state generated_defconfig:163:warning: override: reassigning to symbol SOC_K3_J784S4 generated_defconfig:163:warning: override: SOC_K3_J784S4 changes choice state generated_defconfig:164:warning: override: reassigning to symbol TARGET_J784S4_R5_EVM generated_defconfig:164:warning: override: TARGET_J784S4_R5_EVM changes choice state generated_defconfig:166:warning: override: reassigning to symbol DEFAULT_DEVICE_TREE generated_defconfig:167:warning: override: reassigning to symbol SPL_OF_LIST
And configuring for am69_sk_a72_defconfig:
generated_defconfig:167:warning: override: reassigning to symbol ARM generated_defconfig:167:warning: override: ARM changes choice state generated_defconfig:168:warning: override: reassigning to symbol ARCH_K3 generated_defconfig:168:warning: override: ARCH_K3 changes choice state generated_defconfig:169:warning: override: reassigning to symbol SOC_K3_J784S4 generated_defconfig:169:warning: override: SOC_K3_J784S4 changes choice state generated_defconfig:170:warning: override: reassigning to symbol TARGET_J784S4_A72_EVM generated_defconfig:170:warning: override: TARGET_J784S4_A72_EVM changes choice state generated_defconfig:172:warning: override: reassigning to symbol DEFAULT_DEVICE_TREE generated_defconfig:173:warning: override: reassigning to symbol OF_LIST
For the whole series:
Quoted 270 lines
Quoted 270 lines
Quoted 270 lines
All other patches are specific to SPL and u-boot and do not have dependency on other trees. Appreciate a review for acceptance to u-boot tree.
Here are some of the salient features of the J784S4 automotive grade application processor:
The J784S4 SoC belongs to the K3 Multicore SoC architecture platform, providing advanced system integration in automotive, ADAS and industrial applications requiring AI at the network edge. This SoC extends the K3 Jacinto 7 family of SoCs with focus on raising performance and integration while providing interfaces, memory architecture and compute performance for multi-sensor, high concurrency applications.
Some highlights of this SoC are:
* Up to 8 Cortex-A72s, four clusters of lockstep capable dual Cortex-R5F MCUs, 4 C7x floating point vector DSPs with Matrix Multiply Accelerator(MMA) for deep learning and CNN.
* 3D GPU: Automotive grade IMG BXS-4-64 MC1
* Vision Processing Accelerator (VPAC) with image signal processor and Depth and Motion Processing Accelerator (DMPAC)
* Three CSI2.0 4L RX plus two CSI2.0 4L TX, two DSI Tx, one eDP/DP and one DPI interface.
* Integrated gigabit ethernet switch, up to 8 ports (TDA4VH), two ports support 10Gb USXGMII; Two 4 lane PCIe-GEN3 controllers, USB3.0 Dual-role device subsystems, Up to 20 MCANs, among other peripherals.See J784S4 Technical Reference Manual (SPRUJ52 - JUNE 2022) for further details: http://www.ti.com/lit/zip/spruj52
In addtion, the J784S4 EVM board is designed for TI J784S4 SoC. It supports the following interfaces:
* 32 GB DDR4 RAM
* x2 Gigabit Ethernet interfaces capable of working in Switch and MAC mode
* x1 Input Audio Jack, x1 Output Audio Jack
* x1 USB2.0 Hub with two Type A host and x1 USB 3.1 Type-C Port
* x2 4L PCIe connector
* x1 UHS-1 capable micro-SD card slot
* 512 Mbit OSPI flash, 1 Gbit Octal NAND flash, 512 Mbit QSPI flash, UFS flash.
* x6 UART through UART-USB bridge
* XDS110 for onboard JTAG debug using USB
* Temperature sensors, user push buttons and LEDs
* 40-pin User Expansion Connector
* x2 ENET Expansion Connector, x1 GESI expander, x2 Display connector
* x1 15-pin CSI header
* x6 MCAN instancesSchematics: https://www.ti.com/lit/zip/sprr458
AM69 SD mode bootlog:
https://gist.githubusercontent.com/apurvanandan1997/1b2c55d0204ff0f5a47ebbc196a97e99/raw/
J784S4 SD mode bootlog:
https://gist.githubusercontent.com/apurvanandan1997/5e2ef85ee4322798d22b57a60dc917db/raw/
eMMC UDA moode bootlog:
https://gist.githubusercontent.com/apurvanandan1997/3cffada252d50a8aa0c00a91f1f2f856/raw/Note: This series is dependent on the following series for
OF_UPSTREAMsupport
https://lore.kernel.org/all/[email protected]/And, '[PATCH 01/15]
Makefile: remove hardcoded device tree source directory' has been cherry-picked from PATCH 11 of https://lore.kernel.org/all/[email protected]/ by Bryan BrattlofChanges in v10:
1) Fixed build failure due to missingOF_UPSTREAMin a72 defconfigs
2) Updated paths of board dtbs inbinman.dtsi,CONFIG_OF_LISTandCONFIG_DEFAULT_DEVICE_TREEChanges in v9:
1) Added support forOF_UPSTREAMand removed Linux dts copy/sync patches
2) Fixed DRAM enumeration algorithm inj784s4_init.cby adding max no. of controllers
3) Squashed bootph-all property of memory node into appropriate patch
4) Moved DDR changes out of the DMA patch
5) Fixed commit messages,MAINTAINERSfile, and removed unnecessary C headers
6) Added comment forWKUP_UART0
7) Used #include for defconfig for AM69-SK platform instead of config fragments
8) Fixed J784S4 EVM boot switch nameing in docLink to v8:
https://lore.kernel.org/u-boot/[email protected]/Changes in v8:
1) Squashed Linux am69-sk and j784s4-evm dts patches into one
2) Sorted config addition of SoC in arm/mach-K3/Kconfig
3) Updated commit messages according to the reviews
4) Removed #inlcude <config.h>
5) Removedk3_mmc_stop_clockandk3_mmc_restart_clock
6) Movedboard_init_flogic to separate smaller functions
7) Removed J784S4 EVM specificKconfigoptions inj784s4_int.c
8) Cleaned up emmc boot flow based on commit66459346463439c72f84cfd1f985496b8a6142d8
9) Removed the dependency of findfdt and updated toti_set_fdt_env
10) Updated copyright messages
11) Did cleanup/formatting of yaml files, removing linting errors
12) Removed k3-am69-sk specific things fromk3-j784s4-binman.dtsi
13) ChangedOF_LISTto a single dtb
14) Added bootph-all tag in EVM and SK dts instead ofu-boot.dtsi
15) Trimmed the defconfig files to minimal
16) Merged the MAINTAINER file in right patches
17) Updated OpenOCD tag in U-Boot doc
18) And fixed other formatting mistakes.Link to v7:
https://lore.kernel.org/u-boot/[email protected]/Changes in v7:
1) Moved to unified memory map inarm64-mmu.cbased on
https://lore.kernel.org/all/[email protected]/
2) UsedARRAY_SIZEinclk-data.canddev-data.c
3) Removed I2C board detect fromj784s4_init.c
4) Rebased to latest nextLink to v6:
https://lore.kernel.org/all/[email protected]/Changes in v6:
1) Move bootph-all of memory node tou-boot.dtsi
2) Used a while loop for DRAM controller init, instead of hard-coding for 4 DRAM
3) Fixed build error by adding board/ti/j784s4/Kconfig
4) Trimmed outj784s4_evm.h
5) Fixed checkpatch warningsLink to v5:
https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/Changes in v5:
1) Incorporated Andrew Davis' "Move R5 specific code into new r5/ directory" and "Move board selection to mach-k3" series changes.
2) Incorporated Neha Francis' "Move to using templated FITs" series changes.
3) Synced device tree files with Linux v6.7-rc1
4) Changedti_mmcto mmc1 target from bootstd
5) Updated doc based on review comments
6) Removed remoteproc support from the series
7) Splitted board files patch into smaller patches
8) Trimmed j784s4.env to necessary variables
9) Usedfdtdec_setup_mem_size_basefdtdec_setup_memory_banksizeinevm.c
10) Trimmed downevm.cto essential header files.
11) Switched to multi-dtb fit compilation with config fragmentsLink to v4:
https://lore.kernel.org/u-boot/[email protected]/Changes in v4:
1) Cleaned up Copyright and SPDX identifiers
2) Synced the device trees to Linux v6.6-rc1 tag
3) Added cleanup patch for sorting SoC JTAG ID entries
4) Removed EEPROM board detect fromevm.cand added am69 config fragments
5) UpdatedMAINTAINERSfiles and commit messages
6) Removed struct renaming inti_k3_r5f_rprocdriverLink to v3:
https://lore.kernel.org/u-boot/[email protected]/Changes in v3:
1) Added AM69 SK support in the series
2) Switched from distroboot to bootstd support
3) Added remoteproc support for J784S4
4) Added documentation for both SoCs
5) Added binman support
6) Removed unnecessarry nodes fromr5-evm.dtsandevm-u-boot.dtsi
7) Added HS device support
8) Added env file for environement variables
9) Removed ti-serdes-mux bindings
10) Cleaned up all files and synced with latest
11) Addressed all previous review commentsNote: The base dts files have been sync from next-20230905 linux tag as per review comment received on previous re-roll:
https://lore.kernel.org/u-boot/20230321155227.GV8135@bill-the-cat/Link to v2:
https://lore.kernel.org/u-boot/[email protected]/Apurva Nandan (12):
arm: mach-k3:Kconfig: SortSOC_K3config entries
arm: mach-k3: Add basic support for J784S4 SoC definition
arm: mach-k3: Sort SoCJTAG_IDentries
soc: ti: k3-socinfo: Add entry for J784S4 SoC
arm: mach-k3: j784s4: Add clk and power support
drivers: dma: Add support for J784S4 SoC
board: ti: j784s4: Add board support for J784S4 EVM
board: ti: j748s4: Add board config yaml files
board: ti: j784s4: Add boot environment variables
arm: dts: Introduce j784s4 u-boot dts files
configs:j784s4_evm: Add defconfig for J784S4 EVM board
doc: board: ti: k3: Add J784S4 EVM and AM69 SK documentationBryan Brattlof (1):
Makefile: remove hardcoded device tree source directoryDasnavis Sabiya (2):
arm: dts: Introduce am69-sk u-boot dts files
configs:am69_sk: Add defconfig for AM69 SK boardMakefile | 18 +- arch/arm/dts/Makefile | 4 + arch/arm/dts/k3-am69-r5-sk.dts | 106 + arch/arm/dts/k3-am69-sk-u-boot.dtsi | 54 + arch/arm/dts/k3-j784s4-binman.dtsi | 345 + arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi | 8757 ++++++++++++++++ arch/arm/dts/k3-j784s4-ddr.dtsi | 8858 +++++++++++++++++ arch/arm/dts/k3-j784s4-evm-u-boot.dtsi | 31 + arch/arm/dts/k3-j784s4-r5-evm.dts | 106 + arch/arm/mach-k3/Kconfig | 33 +- arch/arm/mach-k3/Makefile | 2 + arch/arm/mach-k3/include/mach/hardware.h | 13 +- .../mach-k3/include/mach/j784s4_hardware.h | 59 + arch/arm/mach-k3/include/mach/j784s4_spl.h | 47 + arch/arm/mach-k3/include/mach/spl.h | 4 + arch/arm/mach-k3/j784s4/Kconfig | 34 + arch/arm/mach-k3/j784s4_fdt.c | 15 + arch/arm/mach-k3/j784s4_init.c | 310 + arch/arm/mach-k3/r5/Makefile | 1 + arch/arm/mach-k3/r5/j784s4/Makefile | 7 + arch/arm/mach-k3/r5/j784s4/clk-data.c | 428 + arch/arm/mach-k3/r5/j784s4/dev-data.c | 98 + board/ti/j784s4/Kconfig | 37 + board/ti/j784s4/MAINTAINERS | 21 + board/ti/j784s4/Makefile | 7 + board/ti/j784s4/board-cfg.yaml | 37 + board/ti/j784s4/evm.c | 41 + board/ti/j784s4/j784s4.env | 17 + board/ti/j784s4/pm-cfg.yaml | 13 + board/ti/j784s4/rm-cfg.yaml | 3058 ++++++ board/ti/j784s4/sec-cfg.yaml | 380 + board/ti/j784s4/tifs-rm-cfg.yaml | 2656 +++++ configs/am69_sk_a72_defconfig | 9 + configs/am69_sk_r5_defconfig | 10 + configs/j784s4_evm_a72_defconfig | 159 + configs/j784s4_evm_r5_defconfig | 153 + doc/board/ti/j784s4_evm.rst | 299 + doc/board/ti/k3.rst | 1 + drivers/clk/ti/clk-k3.c | 6 + drivers/dma/ti/Makefile | 1 + drivers/dma/ti/k3-psil-j784s4.c | 166 + drivers/dma/ti/k3-psil-priv.h | 1 + drivers/dma/ti/k3-psil.c | 2 + drivers/firmware/ti_sci_static_data.h | 34 + drivers/power/domain/ti-power-domain.c | 6 + drivers/ram/Kconfig | 2 +- drivers/soc/soc_ti_k3.c | 3 + include/configs/j784s4_evm.h | 15 + include/k3-clk.h | 1 + include/k3-dev.h | 1 + scripts/Makefile.spl | 17 +-
51 files changed, 26455 insertions(+), 28 deletions(-)create mode 100644
arch/arm/dts/k3-am69-r5-sk.dtscreate mode 100644arch/arm/dts/k3-am69-sk-u-boot.dtsicreate mode 100644arch/arm/dts/k3-j784s4-binman.dtsicreate mode 100644arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsicreate mode 100644arch/arm/dts/k3-j784s4-ddr.dtsicreate mode 100644arch/arm/dts/k3-j784s4-evm-u-boot.dtsicreate mode 100644arch/arm/dts/k3-j784s4-r5-evm.dtscreate mode 100644arch/arm/mach-k3/include/mach/j784s4_hardware.hcreate mode 100644arch/arm/mach-k3/include/mach/j784s4_spl.hcreate mode 100644arch/arm/mach-k3/j784s4/Kconfigcreate mode 100644arch/arm/mach-k3/j784s4_fdt.c
create mode 100644arch/arm/mach-k3/j784s4_init.ccreate mode 100644arch/arm/mach-k3/r5/j784s4/Makefilecreate mode 100644arch/arm/mach-k3/r5/j784s4/clk-data.ccreate mode 100644arch/arm/mach-k3/r5/j784s4/dev-data.ccreate mode 100644 board/ti/j784s4/Kconfig
create mode 100644 board/ti/j784s4/MAINTAINERS
create mode 100644 board/ti/j784s4/Makefile
create mode 100644board/ti/j784s4/board-cfg.yamlcreate mode 100644board/ti/j784s4/evm.c
create mode 100644 board/ti/j784s4/j784s4.env
create mode 100644board/ti/j784s4/pm-cfg.yaml
create mode 100644board/ti/j784s4/rm-cfg.yaml
create mode 100644board/ti/j784s4/sec-cfg.yaml
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
create mode 100644
board/ti/j784s4/tifs-rm-cfg.yamlcreate mode 100644 configs/am69_sk_a72_defconfig create mode 100644 configs/am69_sk_r5_defconfig create mode 100644 configs/j784s4_evm_a72_defconfig create mode 100644 configs/j784s4_evm_r5_defconfig create mode 100644doc/board/ti/j784s4_evm.rstcreate mode 100644drivers/dma/ti/k3-psil-j784s4.ccreate mode 100644include/configs/j784s4_evm.h
Cheers
Marcel
Quoted 65 lines · Apurva Nandan
Hello Everyone!
This series will introduce basic support (SD and UART) support for Texas Instruments J784S4 EVM.
The J784S4 SoC device tree patches are taken from kernel patch submissions and will be updated as they are accepted and merged to the kernel tree. All other patches are specific to SPL and u-boot and do not have dependency on other trees. Appreciate a review for acceptance to u-boot tree.
Here are some of the salient features of the J784S4 automotive grade application processor:
The J784S4 SoC belongs to the K3 Multicore SoC architecture platform, providing advanced system integration in automotive, ADAS and industrial applications requiring AI at the network edge. This SoC extends the K3 Jacinto 7 family of SoCs with focus on raising performance and integration while providing interfaces, memory architecture and compute performance for multi-sensor, high concurrency applications.
Some highlights of this SoC are:
* Up to 8 Cortex-A72s, four clusters of lockstep capable dual Cortex-R5F MCUs, 4 C7x floating point vector DSPs with Matrix Multiply Accelerator(MMA) for deep learning and CNN.
* 3D GPU: Automotive grade IMG BXS-4-64 MC1
* Vision Processing Accelerator (VPAC) with image signal processor and Depth and Motion Processing Accelerator (DMPAC)
* Three CSI2.0 4L RX plus two CSI2.0 4L TX, two DSI Tx, one eDP/DP and one DPI interface.
* Integrated gigabit ethernet switch, up to 8 ports (TDA4VH), two ports support 10Gb USXGMII; Two 4 lane PCIe-GEN3 controllers, USB3.0 Dual-role device subsystems, Up to 20 MCANs, among other peripherals.See J784S4 Technical Reference Manual (SPRUJ52 - JUNE 2022) for further details: http://www.ti.com/lit/zip/spruj52
In addtion, the J784S4 EVM board is designed for TI J784S4 SoC. It supports the following interfaces:
* 32 GB DDR4 RAM
* x2 Gigabit Ethernet interfaces capable of working in Switch and MAC mode
* x1 Input Audio Jack, x1 Output Audio Jack
* x1 USB2.0 Hub with two Type A host and x1 USB 3.1 Type-C Port
* x2 4L PCIe connector
* x1 UHS-1 capable micro-SD card slot
* 512 Mbit OSPI flash, 1 Gbit Octal NAND flash, 512 Mbit QSPI flash, UFS flash.
* x6 UART through UART-USB bridge
* XDS110 for onboard JTAG debug using USB
* Temperature sensors, user push buttons and LEDs
* 40-pin User Expansion Connector
* x2 ENET Expansion Connector, x1 GESI expander, x2 Display connector
* x1 15-pin CSI header
* x6 MCAN instancesSchematics: https://www.ti.com/lit/zip/sprr458
AM69 SD mode bootlog: https://gist.githubusercontent.com/apurvanandan1997/1b2c55d0204ff0f5a47ebbc196a97e99/raw/
J784S4 SD mode bootlog: https://gist.githubusercontent.com/apurvanandan1997/5e2ef85ee4322798d22b57a60dc917db/raw/
eMMC UDA moode bootlog: https://gist.githubusercontent.com/apurvanandan1997/3cffada252d50a8aa0c00a91f1f2f856/raw/Note: This series is dependent on the following series for
OF_UPSTREAMsupport
https://lore.kernel.org/all/[email protected]/
Quoted 6 lines
And, '[PATCH 01/15]
Makefile: remove hardcoded device tree source directory' has been cherry-picked from PATCH 11 of https://lore.kernel.org/all/[email protected]/ by Bryan BrattlofChanges in v10:
1) Fixed build failure due to missingOF_UPSTREAMin a72 defconfigs
2) Updated paths of board dtbs inbinman.dtsi,CONFIG_OF_LISTandCONFIG_DEFAULT_DEVICE_TREE
For the series, applied to u-boot/next, thanks!
Signature · 1 line
Tom