Introduce initial TI's J784S4 and AM69 support
Subsystems (7)
v5 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
bootlog: https://gist.githubusercontent.com/apurvanandan1997/2116d3eb4f2e8d50d5601c51423ba12e/raw/
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]/
Changes in v2:
- Refactored environement scripts to 'j784s4.env' and removed scripts not needed for basic board bootup.
- Imported the J7874S4 basic device tree files from v6.2 linux kernel.
- Moved j784s4 clock definitions and clock data into one patch/commit.
- coalesce board commits into one commit.
Apurva Nandan (14):
arm: dts: Introduce j784s4 dts from linux kernel
arm: dts: Add bootph-all for memory node
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
board: ti: j784s4: Add MAINTAINERS file
Dasnavis Sabiya (3):
arm: dts: Introduce am69-sk dts from linux kernel
arm: dts: Introduce am69-sk u-boot dts files
configs: Add am69_sk_* defconfig fragments
arch/arm/dts/Makefile | 4 + arch/arm/dts/k3-am69-r5-sk.dts | 105 + arch/arm/dts/k3-am69-sk-u-boot.dtsi | 25 + arch/arm/dts/k3-am69-sk.dts | 901 ++ arch/arm/dts/k3-j784s4-binman.dtsi | 435 + 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 | 25 + arch/arm/dts/k3-j784s4-evm.dts | 982 ++ arch/arm/dts/k3-j784s4-main.dtsi | 2068 ++++ arch/arm/dts/k3-j784s4-mcu-wakeup.dtsi | 743 ++ arch/arm/dts/k3-j784s4-r5-evm.dts | 105 + arch/arm/dts/k3-j784s4-thermal.dtsi | 101 + arch/arm/dts/k3-j784s4.dtsi | 294 + arch/arm/mach-k3/Kconfig | 17 +- arch/arm/mach-k3/Makefile | 2 + arch/arm/mach-k3/arm64-mmu.c | 52 + arch/arm/mach-k3/include/mach/hardware.h | 13 +- .../mach-k3/include/mach/j784s4_hardware.h | 60 + 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 | 35 + arch/arm/mach-k3/j784s4_fdt.c | 15 + arch/arm/mach-k3/j784s4_init.c | 338 + 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/MAINTAINERS | 25 + board/ti/j784s4/Makefile | 7 + board/ti/j784s4/board-cfg.yaml | 37 + board/ti/j784s4/evm.c | 38 + board/ti/j784s4/j784s4.env | 19 + 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.config | 3 + configs/am69_sk_r5.config | 3 + configs/j784s4_evm_a72_defconfig | 180 + configs/j784s4_evm_r5_defconfig | 163 + doc/board/ti/j784s4_evm.rst | 303 + 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 | 20 + include/k3-clk.h | 1 + include/k3-dev.h | 1 + 55 files changed, 31637 insertions(+), 12 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-am69-sk.dts 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-evm.dts create mode 100644 arch/arm/dts/k3-j784s4-main.dtsi create mode 100644 arch/arm/dts/k3-j784s4-mcu-wakeup.dtsi create mode 100644 arch/arm/dts/k3-j784s4-r5-evm.dts create mode 100644 arch/arm/dts/k3-j784s4-thermal.dtsi create mode 100644 arch/arm/dts/k3-j784s4.dtsi 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/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.config create mode 100644 configs/am69_sk_r5.config 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 v5 1/17 arm: dts: Introduce j784s4 dts from linux kernel
Introduce the basic j784s4 SoC dts from the v6.7-rc1 tag of the linux kernel.
--- arch/arm/dts/Makefile | 1 + arch/arm/dts/k3-j784s4-evm.dts | 981 +++++++++++ arch/arm/dts/k3-j784s4-main.dtsi | 2068 ++++++++++++++++++++++++ arch/arm/dts/k3-j784s4-mcu-wakeup.dtsi | 743 +++++++++ arch/arm/dts/k3-j784s4-thermal.dtsi | 101 ++ arch/arm/dts/k3-j784s4.dtsi | 294 ++++ 6 files changed, 4188 insertions(+) create mode 100644 arch/arm/dts/k3-j784s4-evm.dts create mode 100644 arch/arm/dts/k3-j784s4-main.dtsi create mode 100644 arch/arm/dts/k3-j784s4-mcu-wakeup.dtsi create mode 100644 arch/arm/dts/k3-j784s4-thermal.dtsi create mode 100644 arch/arm/dts/k3-j784s4.dtsi
arch/arm/dts/Makefile +1 -0
@@ -1408,6 +1408,7 @@ 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-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-evm.dts new file +981 -0
981 lines not on this page · raw message
arch/arm/dts/k3-j784s4-main.dtsi new file +2068 -0
2,012 lines not on this page · raw message
arch/arm/dts/k3-j784s4-mcu-wakeup.dtsi new file +743 -0
743 lines not on this page · raw message
arch/arm/dts/k3-j784s4-thermal.dtsi new file +101 -0
101 lines not on this page · raw message
arch/arm/dts/k3-j784s4.dtsi new file +294 -0
294 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 v5 2/17 arm: dts: Introduce am69-sk dts from linux kernel
In reply to Apurva NandanFrom: Dasnavis Sabiya <[email protected]>
Introduce the basic am69-sk evm dts from the v6.7-rc1 tag of the linux kernel.
--- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am69-sk.dts | 900 ++++++++++++++++++++++++++++++++++++ 2 files changed, 902 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/k3-am69-sk.dts
arch/arm/dts/Makefile +2 -1
@@ -1408,7 +1408,8 @@ 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-evm.dtb +dtb-$(CONFIG_SOC_K3_J784S4) += k3-am69-sk.dtb\ + k3-j784s4-evm.dtb dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \ k3-am642-r5-evm.dtb \ k3-am642-sk.dtb \
arch/arm/dts/k3-am69-sk.dts new file +900 -0
900 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v5 3/17 arm: dts: Add bootph-all for memory node
In reply to Apurva Nandanmemory node is used by fdtdec_setup_mem_size_base() and fdtdec_setup_memory_banksize() during dram_init(), so use bootph-all to enable for all stages.
--- arch/arm/dts/k3-am69-sk.dts | 1 + arch/arm/dts/k3-j784s4-evm.dts | 1 + 2 files changed, 2 insertions(+)
arch/arm/dts/k3-am69-sk.dts +1 -0
@@ -36,6 +36,7 @@ /* 32G RAM */ reg = <0x00 0x80000000 0x00 0x80000000>, <0x08 0x80000000 0x07 0x80000000>; + bootph-all; }; reserved_memory: reserved-memory {
arch/arm/dts/k3-j784s4-evm.dts +1 -0
@@ -34,6 +34,7 @@ /* 32G RAM */ reg = <0x00 0x80000000 0x00 0x80000000>, <0x08 0x80000000 0x07 0x80000000>; + bootph-all; }; reserved_memory: reserved-memory {
Signature · 1 line
2.34.1
Re: [PATCH v5 03/17] arm: dts: Add bootph-all for memory node
Hi Apurva!
On November 30, 2023 thus sayeth Apurva Nandan:
Quoted 27 lines
memory node is used by
fdtdec_setup_mem_size_base()andfdtdec_setup_memory_banksize()duringdram_init(), so use bootph-all to enable for all stages.Signed-off-by Apurva Nandan <[email protected]>--- arch/arm/dts/k3-am69-sk.dts | 1 + arch/arm/dts/k3-j784s4-evm.dts | 1 + 2 files changed, 2 insertions(+)arch/arm/dts/k3-am69-sk.dts +1
-0@@ -36,6 +36,7 @@ /* 32G RAM */ reg = <0x00 0x80000000 0x00 0x80000000>, <0x08 0x80000000 0x07 0x80000000>; + bootph-all; }; reserved_memory: reserved-memory {arch/arm/dts/k3-j784s4-evm.dts +0
-0
arch/arm/dts/k3-j784s4-evm.dts line 38
Quoted 5 lines
arch/arm/dts/k3-j784s4-evm.dts +1
-0@@ -34,6 +34,7 @@ /* 32G RAM */ reg = <0x00 0x80000000 0x00 0x80000000>, <0x08 0x80000000 0x07 0x80000000>; + bootph-all; };
These edits to the board files should go into *-u-boot.dtsi It would make them much easier to track for the next dt sync :)
~Bryan
PATCH v5 4/17 arm: mach-k3: Add basic support for J784S4 SoC definition
In reply to Apurva NandanAdd J784S4 initialization files for initial SPL boot.
--- arch/arm/mach-k3/Kconfig | 16 +- arch/arm/mach-k3/Makefile | 2 + arch/arm/mach-k3/arm64-mmu.c | 52 +++ arch/arm/mach-k3/include/mach/hardware.h | 4 + .../mach-k3/include/mach/j784s4_hardware.h | 60 ++++ 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 | 338 ++++++++++++++++++ arch/arm/mach-k3/r5/Makefile | 1 + 10 files changed, 532 insertions(+), 7 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_AM625 config SOC_K3_AM62A7 bool "TI's K3 based AM62A7 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/arm64-mmu.c +52 -0
55 lines not on this page · raw message
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 +60 -0
60 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 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 +338 -0
338 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
Signature · 1 line
2.34.1
Re: [PATCH v5 04/17] arm: mach-k3: Add basic support for J784S4 SoC definition
Hi Apurva!
On November 30, 2023 thus sayeth Apurva Nandan:
Quoted 24 lines
Add J784S4 initialization files for initial SPL boot.
Signed-off-by Hari Nagalla <[email protected]>[ add firewall configurations and change the R5 MCU scratchpad ]Signed-off-by Manorit Chawdhry <[email protected]>Signed-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>--- arch/arm/mach-k3/Kconfig | 16 +- arch/arm/mach-k3/Makefile | 2 + arch/arm/mach-k3/arm64-mmu.c | 52 +++ arch/arm/mach-k3/include/mach/hardware.h | 4 + .../mach-k3/include/mach/j784s4_hardware.h | 60 ++++ 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 | 338 ++++++++++++++++++ arch/arm/mach-k3/r5/Makefile | 1 + 10 files changed, 532 insertions(+), 7 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
...
Quoted 11 lines
arch/arm/mach-k3/j784s4_init.c new file +11
-0+if (IS_ENABLED (CONFIG_TARGET_J784S4_R5_EVM )) { + ret =uclass_get_device_by_name (UCLASS_MISC ,"msmc" , &dev); +if (ret) +panic ("Probe of msmc failed: %d\n" , ret); + + ret =uclass_get_device (UCLASS_RAM ,0 , &dev); +if (ret) +panic ("DRAM 0 init failed: %d\n" , ret); + + ret =uclass_next_device_err (&dev); +if (ret)
arch/arm/mach-k3/j784s4_init.c line 234
Quoted 10 lines
arch/arm/mach-k3/j784s4_init.c new file +10
-0+panic ("DRAM 1 init failed: %d\n" , ret); + + ret =uclass_next_device_err (&dev); +if (ret) +panic ("DRAM 2 init failed: %d\n" , ret); + + ret =uclass_next_device_err (&dev); +if (ret) +panic ("DRAM 3 init failed: %d\n" , ret); + }
I don't know if this is is the right approach. I can see situations where people will not have all these controllers utilized or would want to artificially remove them for some reason.
All of that to say I don't thing we can rely on there being 4 UCLASS_RAM devices present at all times in the device tree.
~Bryan
Re: [PATCH v5 04/17] arm: mach-k3: Add basic support for J784S4 SoC definition
Quoted 45 lines · Bryan Brattlof
On November 30, 2023 thus sayeth Apurva Nandan:
Quoted 24 lines
Add J784S4 initialization files for initial SPL boot.
Signed-off-by Hari Nagalla <[email protected]>[ add firewall configurations and change the R5 MCU scratchpad ]Signed-off-by Manorit Chawdhry <[email protected]>Signed-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>--- arch/arm/mach-k3/Kconfig | 16 +- arch/arm/mach-k3/Makefile | 2 + arch/arm/mach-k3/arm64-mmu.c | 52 +++ arch/arm/mach-k3/include/mach/hardware.h | 4 + .../mach-k3/include/mach/j784s4_hardware.h | 60 ++++ 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 | 338 ++++++++++++++++++ arch/arm/mach-k3/r5/Makefile | 1 + 10 files changed, 532 insertions(+), 7 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...
Quoted 17 lines
arch/arm/mach-k3/j784s4_init.c new file +17
-0+if (IS_ENABLED (CONFIG_TARGET_J784S4_R5_EVM )) { + ret =uclass_get_device_by_name (UCLASS_MISC ,"msmc" , &dev); +if (ret) +panic ("Probe of msmc failed: %d\n" , ret); + + ret =uclass_get_device (UCLASS_RAM ,0 , &dev); +if (ret) +panic ("DRAM 0 init failed: %d\n" , ret); + + ret =uclass_next_device_err (&dev); +if (ret) +panic ("DRAM 1 init failed: %d\n" , ret); + + ret =uclass_next_device_err (&dev); +if (ret) +panic ("DRAM 2 init failed: %d\n" , ret); +
Quoted 8 lines
arch/arm/mach-k3/j784s4_init.c line 234
Quoted 4 lines
arch/arm/mach-k3/j784s4_init.c new file +4
-0+ ret =uclass_next_device_err (&dev); +if (ret) +panic ("DRAM 3 init failed: %d\n" , ret); + }I don't know if this is is the right approach. I can see situations where people will not have all these controllers utilized or would want to artificially remove them for some reason.
Not sure on the exact implication, but yes, you should expect customers (like myself/my company) integrating the SoC into some board to not necessarily use all the functionalities, memory controller included.
Francesco
Re: [PATCH v5 04/17] arm: mach-k3: Add basic support for J784S4 SoC definition
Hi Apurva
Quoted 55 lines · Francesco Dolcini
Quoted 45 lines · Bryan Brattlof
On November 30, 2023 thus sayeth Apurva Nandan:
Quoted 24 lines
Add J784S4 initialization files for initial SPL boot.
Signed-off-by Hari Nagalla <[email protected]>[ add firewall configurations and change the R5 MCU scratchpad ]Signed-off-by Manorit Chawdhry <[email protected]>Signed-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>--- arch/arm/mach-k3/Kconfig | 16 +- arch/arm/mach-k3/Makefile | 2 + arch/arm/mach-k3/arm64-mmu.c | 52 +++ arch/arm/mach-k3/include/mach/hardware.h | 4 + .../mach-k3/include/mach/j784s4_hardware.h | 60 ++++ 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 | 338 ++++++++++++++++++ arch/arm/mach-k3/r5/Makefile | 1 + 10 files changed, 532 insertions(+), 7 deletions(-)create mode 100644
arch/arm/mach-k3/include/mach/j784s4_hardware.hcreate mode 100644arch/arm/mach-k3/include/mach/j784s4_spl.hcreate mode 100644arch/arm/mach-k3/j784s4_fdt.c
create mode 100644arch/arm/mach-k3/j784s4_init.c...
Quoted 17 lines
arch/arm/mach-k3/j784s4_init.c new file +17
-0+if (IS_ENABLED (CONFIG_TARGET_J784S4_R5_EVM )) { + ret =uclass_get_device_by_name (UCLASS_MISC ,"msmc" , &dev); +if (ret) +panic ("Probe of msmc failed: %d\n" , ret); + + ret =uclass_get_device (UCLASS_RAM ,0 , &dev); +if (ret) +panic ("DRAM 0 init failed: %d\n" , ret); + + ret =uclass_next_device_err (&dev); +if (ret) +panic ("DRAM 1 init failed: %d\n" , ret); + + ret =uclass_next_device_err (&dev); +if (ret) +panic ("DRAM 2 init failed: %d\n" , ret); +Quoted 8 lines
arch/arm/mach-k3/j784s4_init.c line 234
Quoted 4 lines
arch/arm/mach-k3/j784s4_init.c new file +4
-0+ ret =uclass_next_device_err (&dev); +if (ret) +panic ("DRAM 3 init failed: %d\n" , ret); + }I don't know if this is is the right approach. I can see situations where people will not have all these controllers utilized or would want to artificially remove them for some reason.
Quoted 6 lines
Not sure on the exact implication, but yes, you should expect customers (like myself/my company) integrating the SoC into some board to not necessarily use all the functionalities, memory controller included.
Francesco
I think you can make use of uclass_next_device_err() and a while loop to handle this according to the device tree.
Signature · 2 lines
Thanking You Neha Malcom Francis
PATCH v5 5/17 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 v5 6/17 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 v5 7/17 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 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 v5 8/17 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 ++++++ drivers/ram/Kconfig | 2 +- 6 files changed, 205 insertions(+), 1 deletion(-) 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[] = { { },
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 v5 9/17 board: ti: j784s4: Add board support for J784S4 EVM
In reply to Apurva NandanAdd board files for J784S4 EVM.
--- arch/arm/mach-k3/Kconfig | 1 + arch/arm/mach-k3/j784s4/Kconfig | 35 ++++++++++++++++++++++++++++++ board/ti/j784s4/Makefile | 7 ++++++ board/ti/j784s4/evm.c | 38 +++++++++++++++++++++++++++++++++ include/configs/j784s4_evm.h | 20 +++++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 arch/arm/mach-k3/j784s4/Kconfig 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 +35 -0
@@ -0,0 +1,35 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023 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/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ +# Hari Nagalla <[email protected]> +# + +obj-y += evm.o
board/ti/j784s4/evm.c new file +38 -0
@@ -0,0 +1,38 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* +* Board specific initialization for J784S4 EVM +* +* Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ +* Hari Nagalla <[email protected]> +* +*/ + +#include <image.h> +#include <init.h> +#include <spl.h> + +DECLARE_GLOBAL_DATA_PTR ; + +int board_init (void ) +{ +return 0 ; +} + +int dram_init (void ) +{ +return fdtdec_setup_mem_size_base (); +} + +int dram_init_banksize (void ) +{ +return fdtdec_setup_memory_banksize (); +} + +int board_late_init (void ) +{ +return 0 ; +} + +void spl_board_init (void ) +{ +}
include/configs/j784s4_evm.h new file +20 -0
@@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* +* Configuration header file for K3 J784S4 EVM +* +* Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ +* Hari Nagalla <[email protected]> +*/ + +#ifndef __CONFIG_J784S4_EVM_H +#define __CONFIG_J784S4_EVM_H + +#include <linux/sizes.h> + +/* DDR Configuration */ +#define CFG_SYS_SDRAM_BASE1 0x880000000 + +/* 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 v5 09/17] board: ti: j784s4: Add board support for J784S4 EVM
Quoted 138 lines · Apurva Nandan
Add board files for J784S4 EVM.
Signed-off-by Hari Nagalla <[email protected]>[ add env and board specific yaml files for binman ]Signed-off-by Neha Malcom Francis <[email protected]>[ cleaned up the env files ]Signed-off-by Manorit Chawdhry <[email protected]>Signed-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>--- arch/arm/mach-k3/Kconfig | 1 + arch/arm/mach-k3/j784s4/Kconfig | 35 ++++++++++++++++++++++++++++++ board/ti/j784s4/Makefile | 7 ++++++ board/ti/j784s4/evm.c | 38 +++++++++++++++++++++++++++++++++ include/configs/j784s4_evm.h | 20 +++++++++++++++++ 5 files changed, 101 insertions(+)create mode 100644
arch/arm/mach-k3/j784s4/Kconfigcreate mode 100644 board/ti/j784s4/Makefile create mode 100644board/ti/j784s4/evm.ccreate mode 100644include/configs/j784s4_evm.harch/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" endifarch/arm/mach-k3/j784s4/Kconfig new file +35
-0@@ -0,0 +1,35 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023 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/Makefile new file +7
-0@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ +# Hari Nagalla <[email protected]> +# + +obj-y += evm.oboard/ti/j784s4/evm.c new file +38
-0@@ -0,0 +1,38 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* +* Board specific initialization for J784S4 EVM +* +* Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ +* Hari Nagalla <[email protected]> +* +*/ + +#include <image.h> +#include <init.h> +#include <spl.h> + +DECLARE_GLOBAL_DATA_PTR ; + +int board_init (void ) +{ +return 0 ; +} + +int dram_init (void ) +{ +return fdtdec_setup_mem_size_base (); +} + +int dram_init_banksize (void ) +{ +return fdtdec_setup_memory_banksize (); +} + +int board_late_init (void ) +{ +return 0 ; +} + +void spl_board_init (void ) +{ +}include/configs/j784s4_evm.h new file +2
-0@@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/*
include/configs/j784s4_evm.h line 12
Quoted 10 lines
include/configs/j784s4_evm.h new file +10
-0+* Configuration header file for K3 J784S4 EVM +* +* Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ +* Hari Nagalla <[email protected]> +*/ + +#ifndef __CONFIG_J784S4_EVM_H +#define __CONFIG_J784S4_EVM_H + +#include <linux/sizes.h>
Is this include needed?
include/configs/j784s4_evm.h line 15
Quoted 3 lines
include/configs/j784s4_evm.h new file +3
-0+ +/* DDR Configuration */ +#define CFG_SYS_SDRAM_BASE1 0x880000000
Do you need this? It should always be the same, no need to make a per-SoC definition for it. I just sent out a patch fixing the same for other K3[0].
Andrew
[0] https://lists.denx.de/pipermail/u-boot/2023-November/539024.html
Quoted 5 lines
include/configs/j784s4_evm.h new file +5
-0+ +/* Now for the remaining common defines */ +#include <configs/ti_armv7_common.h> + +#endif /* __CONFIG_J784S4_EVM_H */
Re: [PATCH v5 09/17] board: ti: j784s4: Add board support for J784S4 EVM
In reply to Apurva NandanHi Apurva
Thanks for the update, however, it does not seem to compile. See below...
Quoted 60 lines · Apurva Nandan
Add board files for J784S4 EVM.
Signed-off-by Hari Nagalla <[email protected]>[ add env and board specific yaml files for binman ]Signed-off-by Neha Malcom Francis <[email protected]>[ cleaned up the env files ]Signed-off-by Manorit Chawdhry <[email protected]>Signed-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>---
arch/arm/mach-k3/Kconfig | 1 +arch/arm/mach-k3/j784s4/Kconfig| 35 ++++++++++++++++++++++++++++++ board/ti/j784s4/Makefile | 7 ++++++ board/ti/j784s4/evm.c | 38 +++++++++++++++++++++++++++++++++ include/configs/j784s4_evm.h | 20 +++++++++++++++++5 files changed, 101 insertions(+)create mode 100644
arch/arm/mach-k3/j784s4/Kconfigcreate mode 100644 board/ti/j784s4/Makefile create mode 100644board/ti/j784s4/evm.ccreate mode 100644include/configs/j784s4_evm.harch/arm/mach-k3/Kconfig +0
-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"
endifarch/arm/mach-k3/j784s4/Kconfig new file +22
-0@@ -0,0 +1,35 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023 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
arch/arm/mach-k3/j784s4/Kconfig line 32
Quoted 10 lines
arch/arm/mach-k3/j784s4/Kconfig new file +10
-0+ 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"
Where exactly would that one come from?
⬢[zim@toolbox u-boot.git]$ make j784s4_evm_r5_defconfig
HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf
arch/arm/mach-k3/j784s4/Kconfig:32: can't open file "board/ti/j784s4/Kconfig" make[1]: *** [scripts/kconfig/Makefile:96: j784s4_evm_r5_defconfig] Error 1
make: *** [Makefile:586: j784s4_evm_r5_defconfig] Error 2
Quoted 76 lines
arch/arm/mach-k3/j784s4/Kconfig new file +3
-0+ +endif +board/ti/j784s4/Makefile new file +7
-0@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ +# Hari Nagalla <[email protected]> +# + +obj-y += evm.oboard/ti/j784s4/evm.c new file +38
-0@@ -0,0 +1,38 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* +* Board specific initialization for J784S4 EVM +* +* Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ +* Hari Nagalla <[email protected]> +* +*/ + +#include <image.h> +#include <init.h> +#include <spl.h> + +DECLARE_GLOBAL_DATA_PTR ; + +int board_init (void ) +{ +return 0 ; +} + +int dram_init (void ) +{ +return fdtdec_setup_mem_size_base (); +} + +int dram_init_banksize (void ) +{ +return fdtdec_setup_memory_banksize (); +} + +int board_late_init (void ) +{ +return 0 ; +} + +void spl_board_init (void ) +{ +}include/configs/j784s4_evm.h new file +10
-0@@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* +* Configuration header file for K3 J784S4 EVM +* +* Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ +* Hari Nagalla <[email protected]> +*/ + +#ifndef __CONFIG_J784S4_EVM_H +#define __CONFIG_J784S4_EVM_H
include/configs/j784s4_evm.h line 20
Quoted 10 lines
include/configs/j784s4_evm.h new file +10
-0+ +#include <linux/sizes.h> + +/* DDR Configuration */ +#define CFG_SYS_SDRAM_BASE1 0x880000000 + +/* Now for the remaining common defines */ +#include <configs/ti_armv7_common.h> + +#endif /* __CONFIG_J784S4_EVM_H */
Cheers
Marcel
Re: [PATCH v5 09/17] board: ti: j784s4: Add board support for J784S4 EVM
Hi Marcel
Quoted 84 lines · Marcel Ziswiler
Hi Apurva
Thanks for the update, however, it does not seem to compile. See below...
Quoted 60 lines · Apurva Nandan
Add board files for J784S4 EVM.
Signed-off-by Hari Nagalla <[email protected]>[ add env and board specific yaml files for binman ]Signed-off-by Neha Malcom Francis <[email protected]>[ cleaned up the env files ]Signed-off-by Manorit Chawdhry <[email protected]>Signed-off-by Dasnavis Sabiya <[email protected]>Signed-off-by Apurva Nandan <[email protected]>--- arch/arm/mach-k3/Kconfig | 1 + arch/arm/mach-k3/j784s4/Kconfig | 35 ++++++++++++++++++++++++++++++ board/ti/j784s4/Makefile | 7 ++++++ board/ti/j784s4/evm.c | 38 +++++++++++++++++++++++++++++++++ include/configs/j784s4_evm.h | 20 +++++++++++++++++ 5 files changed, 101 insertions(+)create mode 100644
arch/arm/mach-k3/j784s4/Kconfigcreate mode 100644 board/ti/j784s4/Makefile create mode 100644board/ti/j784s4/evm.ccreate mode 100644include/configs/j784s4_evm.harch/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" endifarch/arm/mach-k3/j784s4/Kconfig new file +22
-0@@ -0,0 +1,35 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023 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_BUILDarch/arm/mach-k3/j784s4/Kconfig line 32
Quoted 10 lines
arch/arm/mach-k3/j784s4/Kconfig new file +10
-0+ 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"Where exactly would that one come from?
⬢[zim@toolbox u-boot.git]$ make
j784s4_evm_r5_defconfigHOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf
Quoted 3 lines
arch/arm/mach-k3/j784s4/Kconfig:32: can't open file "board/ti/j784s4/Kconfig" make[1]: *** [scripts/kconfig/Makefile:96:j784s4_evm_r5_defconfig] Error 1
make: *** [Makefile:586:j784s4_evm_r5_defconfig] Error 2
Sorry, somehow I missed to push the Kconfig file in the patch. I will fix it in the v6. Thanks for pointing!
Quoted 89 lines
Quoted 76 lines
arch/arm/mach-k3/j784s4/Kconfig new file +3
-0+ +endif +board/ti/j784s4/Makefile new file +7
-0@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ +# Hari Nagalla <[email protected]> +# + +obj-y += evm.oboard/ti/j784s4/evm.c new file +38
-0@@ -0,0 +1,38 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* +* Board specific initialization for J784S4 EVM +* +* Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ +* Hari Nagalla <[email protected]> +* +*/ + +#include <image.h> +#include <init.h> +#include <spl.h> + +DECLARE_GLOBAL_DATA_PTR ; + +int board_init (void ) +{ +return 0 ; +} + +int dram_init (void ) +{ +return fdtdec_setup_mem_size_base (); +} + +int dram_init_banksize (void ) +{ +return fdtdec_setup_memory_banksize (); +} + +int board_late_init (void ) +{ +return 0 ; +} + +void spl_board_init (void ) +{ +}include/configs/j784s4_evm.h new file +10
-0@@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* +* Configuration header file for K3 J784S4 EVM +* +* Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ +* Hari Nagalla <[email protected]> +*/ + +#ifndef __CONFIG_J784S4_EVM_H +#define __CONFIG_J784S4_EVM_Hinclude/configs/j784s4_evm.h line 20
Quoted 10 lines
include/configs/j784s4_evm.h new file +10
-0+ +#include <linux/sizes.h> + +/* DDR Configuration */ +#define CFG_SYS_SDRAM_BASE1 0x880000000 + +/* Now for the remaining common defines */ +#include <configs/ti_armv7_common.h> + +#endif /* __CONFIG_J784S4_EVM_H */ Cheers
Marcel
Signature · 3 lines
Regards, Apurva Nandan, Texas Instruments.
PATCH v5 10/17 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) 2022-2023 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) 2022-2023 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,948 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.
Re: [PATCH v5 10/17] board: ti: j748s4: Add board config yaml files
Quoted 51 lines · Apurva Nandan
Add board-cfg, rm-cfg, pm-cfg, sec-cfg, tifs-rm-cfg yaml for buidling u-boot sysfw data.
Signed-off-by Apurva Nandan <[email protected]>--- 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.yamlcreate mode 100644board/ti/j784s4/pm-cfg.yamlcreate mode 100644board/ti/j784s4/rm-cfg.yamlcreate mode 100644board/ti/j784s4/sec-cfg.yamlcreate mode 100644board/ti/j784s4/tifs-rm-cfg.yamlboard/ti/j784s4/board-cfg.yaml new file +28
-0@@ -0,0 +1,37 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2022-2023 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:
board/ti/j784s4/board-cfg.yaml line 37
Quoted 10 lines
board/ti/j784s4/board-cfg.yaml new file +9
-0+ magic: 0xA5C3 + size: 5 + msmc_cache_size: 0x8 + debug_cfg: + subhdr: + magic: 0x020C + size: 8 + trace_dst_enables: 0x00 + trace_src_enables: 0x00
Does checkpatch not complain about this no newline?
Andrew
PATCH v5 11/17 board: ti: j784s4: Add boot environment variables
In reply to Apurva NandanAdd env file with necessary boot variables.
--- board/ti/j784s4/j784s4.env | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 board/ti/j784s4/j784s4.env
board/ti/j784s4/j784s4.env new file +19 -0
@@ -0,0 +1,19 @@ +#include <env/ti/ti_common.env> +#include <env/ti/default_findfdt.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 v5 12/17 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 | 346 + 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 | 25 + arch/arm/dts/k3-j784s4-r5-evm.dts | 105 + 6 files changed, 18093 insertions(+), 1 deletion(-) 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 +2 -1
@@ -1409,7 +1409,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-am69-sk.dtb\ - k3-j784s4-evm.dtb + k3-j784s4-evm.dtb\ + 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 +346 -0
346 lines not on this page · raw message
arch/arm/dts/k3-j784s4-ddr-evm-lp4-4266.dtsi new file +8757 -0
2,645 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 +25 -0
Lines of this file are not shown. View the raw message.
arch/arm/dts/k3-j784s4-r5-evm.dts new file +105 -0
105 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 v5 12/17] arm: dts: Introduce j784s4 u-boot dts files
Quoted 199 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 | 346 + 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 | 25 + arch/arm/dts/k3-j784s4-r5-evm.dts | 105 + 6 files changed, 18093 insertions(+), 1 deletion(-)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 +2
-1@@ -1409,7 +1409,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-am69-sk.dtb\ - k3-j784s4-evm.dtb + k3-j784s4-evm.dtb\ + 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 +157
-0@@ -0,0 +1,346 @@ +// 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"; + type = "blob-ext"; + }; +
arch/arm/dts/k3-j784s4-binman.dtsi line 167
Quoted 10 lines
arch/arm/dts/k3-j784s4-binman.dtsi new file +10
-0+ }; +}; +#endif + +#ifdef CONFIG_TARGET_J784S4_A72_EVM + +#define SPL_J784S4_EVM_DTB "spl/dts/k3-j784s4-evm.dtb" + +#define J784S4_EVM_DTB "u-boot.dtb" +
Why not define this as "arch/arm/dts/k3-j784s4-evm.dtb"? Seems we use this as a hacky way to change this item based on CONFIG_DEFAULT_DEVICE_TREE as that DT will be renamed "u-boot.dtb". But I'm not sure what that gains us. And why only do it for U-Boot and not SPL_? If runtime selection is not working then we still have the wrong DTB for SPL just the same.
It also means we have in some builds we have a node named "j784s4_evm_dtb" that contains the SK DTB, and the node called "am69_sk_dtb" *also* contains the SK DTB..
Andrew
Re: [PATCH v5 12/17] arm: dts: Introduce j784s4 u-boot dts files
Hi Andrew,
Quoted 217 lines · Andrew Davis
Quoted 199 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 | 346 + 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 | 25 + arch/arm/dts/k3-j784s4-r5-evm.dts | 105 + 6 files changed, 18093 insertions(+), 1 deletion(-)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 +2
-1@@ -1409,7 +1409,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-am69-sk.dtb\ - k3-j784s4-evm.dtb + k3-j784s4-evm.dtb\ + 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 +157
-0@@ -0,0 +1,346 @@ +// 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"; + type = "blob-ext"; + }; +arch/arm/dts/k3-j784s4-binman.dtsi line 167
Quoted 10 lines
arch/arm/dts/k3-j784s4-binman.dtsi new file +10
-0+ }; +}; +#endif + +#ifdef CONFIG_TARGET_J784S4_A72_EVM + +#define SPL_J784S4_EVM_DTB "spl/dts/k3-j784s4-evm.dtb" + +#define J784S4_EVM_DTB "u-boot.dtb" +Why not define this as "
arch/arm/dts/k3-j784s4-evm.dtb"? Seems we use this as a hacky way to change this item based onCONFIG_DEFAULT_DEVICE_TREEas that DT will be renamed "u-boot.dtb". But I'm not sure what that gains us. And why only do it for U-Boot and notSPL_? If runtime selection is not working then we still have the wrong DTB for SPL just the same.
Quoted 4 lines
It also means we have in some builds we have a node named "
j784s4_evm_dtb" that contains the SK DTB, and the node called "am69_sk_dtb" *also* contains the SK DTB..
This is required for FIT Signature generation actually, FIT Signature doesn't sign multiple DTBs and we use u-boot.dtb at the moment for signing nodes in it. U-boot makefile has a flag of EXT_DTB that actually gets propagated to u-boot.dtb at the end and this is how the signature node is being compiled back to u-boot by the OEs.
Though going forward, it looks like we don't plan on having the same support for SKs and EVMs and we'll end up changing CONFIG_DEFAULT_DEVICE_TREE in the defconfigs/config_fragments for this support. If that is the case then I think it's better to start using u-boot.dtb and something similar for SPL if one exists as I am not sure if we are going for runtime detection anymore that requires packing multiple DTBs.
Regards,
Manorit
Quoted 1 line
Andrew
PATCH v5 13/17 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 | 1 + arch/arm/dts/k3-am69-r5-sk.dts | 105 ++++++++++++++++++++++++++++ arch/arm/dts/k3-am69-sk-u-boot.dtsi | 25 +++++++ arch/arm/dts/k3-j784s4-binman.dtsi | 89 +++++++++++++++++++++++ 4 files changed, 220 insertions(+) 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 +1 -0
@@ -1409,6 +1409,7 @@ 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-am69-sk.dtb\ + k3-am69-r5-sk.dtb\ k3-j784s4-evm.dtb\ k3-j784s4-r5-evm.dtb dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \
arch/arm/dts/k3-am69-r5-sk.dts new file +105 -0
105 lines not on this page · raw message
arch/arm/dts/k3-am69-sk-u-boot.dtsi new file +25 -0
@@ -0,0 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include "k3-j784s4-binman.dtsi" + +&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-binman.dtsi +89 -0
145 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v5 14/17 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.
--- configs/j784s4_evm_a72_defconfig | 180 +++++++++++++++++++++++++++++++ configs/j784s4_evm_r5_defconfig | 163 ++++++++++++++++++++++++++++ 2 files changed, 343 insertions(+) create mode 100644 configs/j784s4_evm_a72_defconfig create mode 100644 configs/j784s4_evm_r5_defconfig
configs/j784s4_evm_a72_defconfig new file +180 -0
@@ -0,0 +1,180 @@ +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 +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_DEFAULT_DEVICE_TREE="k3-j784s4-evm" +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_PSCI_RESET is not set +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set +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_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_TINY is not set +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_DFU=y +# CONFIG_CMD_FLASH is not set +CONFIG_CMD_GPIO=y +CONFIG_CMD_GPT=y +CONFIG_CMD_I2C=y +CONFIG_CMD_MMC=y +CONFIG_CMD_MTD=y +CONFIG_CMD_REMOTEPROC=y +CONFIG_CMD_UFS=y +CONFIG_CMD_TIME=y +CONFIG_CMD_EXT4_WRITE=y +CONFIG_CMD_UBI=y +# CONFIG_ISO_PARTITION is not set +# CONFIG_SPL_EFI_PARTITION is not set +CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y +CONFIG_SPL_MULTI_DTB_FIT=y +CONFIG_OF_LIST="k3-j784s4-evm k3-am69-sk" +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_DFU_MMC=y +CONFIG_DFU_RAM=y +CONFIG_DFU_SF=y +CONFIG_SYS_DFU_DATA_BUF_SIZE=0x40000 +CONFIG_SYS_DFU_MAX_FILE_SIZE=0x800000 +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_USE_4K_SECTORS is not set +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_PINCTRL_GENERIC is not set +CONFIG_SPL_PINCTRL=y +# CONFIG_SPL_PINCTRL_GENERIC is not set +CONFIG_PINCTRL_SINGLE=y +CONFIG_POWER_DOMAIN=y +CONFIG_TI_SCI_POWER_DOMAIN=y +CONFIG_DM_REGULATOR=y +CONFIG_DM_REGULATOR_FIXED=y +CONFIG_DM_REGULATOR_GPIO=y +CONFIG_RAM=y +CONFIG_SPL_RAM=y +CONFIG_REMOTEPROC_TI_K3_DSP=y +CONFIG_REMOTEPROC_TI_K3_R5F=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=y +CONFIG_UFS=y +CONFIG_CADENCE_UFS=y +CONFIG_TI_J721E_UFS=y
configs/j784s4_evm_r5_defconfig new file +163 -0
163 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v5 15/17 configs: Add am69_sk_* defconfig fragments
In reply to Apurva NandanFrom: Dasnavis Sabiya <[email protected]>
Add config fragments for am69_sk A72 and R5 configuration.
This applies on to:j784s4_evm_a72_defconfig -> am69_sk_a72.configj784s4_evm_r5_defconfig -> am69_sk_r5.config
The usage model (with the fragment) would be:
make j784s4_evm_a72_defconfig am69_sk_a72.config
make
OR
make j784s4_evm_r5_defconfig am69_sk_r5.config
make
--- configs/am69_sk_a72.config | 3 +++ configs/am69_sk_r5.config | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 configs/am69_sk_a72.config create mode 100644 configs/am69_sk_r5.config
configs/am69_sk_a72.config new file +3 -0
@@ -0,0 +1,3 @@ +# Defconfig fragment to apply on top of j784s4_evm_a72_defconfig + +CONFIG_DEFAULT_DEVICE_TREE="k3-am69-sk"
configs/am69_sk_r5.config new file +3 -0
@@ -0,0 +1,3 @@ +# Defconfig fragment to apply on top of j784s4_evm_r5_defconfig + +CONFIG_DEFAULT_DEVICE_TREE="k3-am69-r5-sk"
Signature · 1 line
2.34.1
PATCH v5 16/17 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.
--- doc/board/ti/j784s4_evm.rst | 303 ++++++++++++++++++++++++++++++++++++ doc/board/ti/k3.rst | 1 + 2 files changed, 304 insertions(+) create mode 100644 doc/board/ti/j784s4_evm.rst
doc/board/ti/j784s4_evm.rst new file +303 -0
@@ -0,0 +1,303 @@ +.. 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 SoC 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 + - SW9: 12345678 + - SW8: 12345678 + + * - SD + - 00000000 + - 10000010 + + * - EMMC + - 01000000 + - 10000000 + + * - OSPI + - 01000000 + - 00000110 + + * - UART + - 01110000 + - 00000000 + + * - USB DFU + - 00100000 + - 10000000 + +For SW8 and SW9, 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 + + * - OSPI + - 1110 + + * - 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:: + + **Debugging the platform via JTAG requires latest OpenOCD tag** + + +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.cfg
doc/board/ti/k3.rst +1 -0
@@ -40,6 +40,7 @@ K3 Based SoCs ../beagle/j721e_beagleboneai64 j721e_evm j721s2_evm + j784s4_evm Boot Flow Overview ------------------
Signature · 1 line
2.34.1
PATCH v5 17/17 board: ti: j784s4: Add MAINTAINERS file
In reply to Apurva NandanAdd maintainership for new J784S4 files added.
--- board/ti/j784s4/MAINTAINERS | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 board/ti/j784s4/MAINTAINERS
board/ti/j784s4/MAINTAINERS new file +25 -0
@@ -0,0 +1,25 @@ +J784S4 BOARD +M: Apurva Nandan <[email protected]> +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.dtsi +F: arch/arm/dts/k3-j784s4-main.dtsi +F: arch/arm/dts/k3-j784s4-mcu-wakeup.dtsi +F: arch/arm/dts/k3-j784s4-thermal.dtsi +F: arch/arm/dts/k3-j784s4-evm.dts +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 BOARD +F: arch/arm/dts/k3-am69-sk.dts +F: arch/arm/dts/k3-am69-sk-u-boot.dtsi +F: arch/arm/dts/k3-am69-r5-sk.dts +F: configs/am69_sk_r5.config +F: configs/am69_sk_a72.config
Signature · 1 line
2.34.1
Re: [PATCH v5 17/17] board: ti: j784s4: Add MAINTAINERS file
Quoted 14 lines · Apurva Nandan
Add maintainership for new J784S4 files added.
Signed-off-by Apurva Nandan <[email protected]>--- board/ti/j784s4/MAINTAINERS | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)create mode 100644 board/ti/j784s4/MAINTAINERS
board/ti/j784s4/MAINTAINERS new file +0
-0
board/ti/j784s4/MAINTAINERS line 5
Quoted 5 lines
board/ti/j784s4/MAINTAINERS new file +5
-0@@ -0,0 +1,25 @@ +J784S4 BOARD +M: Apurva Nandan <[email protected]> +S: Maintained +F: board/ti/j784s4 +F: arch/arm/mach-k3/j784s4
The arch/arm/mach-k3/j784s4 files are not related to the board, other boards and board vendors can have different maintainers, and the SoC maintainer doesn't need to be a maintainer of any set of boards.
I wonder if we should move the SoC level maintainer lines up into the main MAINTAINERS file, or add arch/arm/mach-k3/MAINTAINERS. Leaving only the board specific files in the board/**/MAINTAINERS file.
Andrew
Quoted 20 lines
board/ti/j784s4/MAINTAINERS new file +20
-0+F: include/configs/j784s4_evm.h +F: configs/j784s4_evm_r5_defconfig +F: configs/j784s4_evm_a72_defconfig +F: arch/arm/dts/k3-j784s4.dtsi +F: arch/arm/dts/k3-j784s4-main.dtsi +F: arch/arm/dts/k3-j784s4-mcu-wakeup.dtsi +F: arch/arm/dts/k3-j784s4-thermal.dtsi +F: arch/arm/dts/k3-j784s4-evm.dts +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 BOARD +F: arch/arm/dts/k3-am69-sk.dts +F: arch/arm/dts/k3-am69-sk-u-boot.dtsi +F: arch/arm/dts/k3-am69-r5-sk.dts +F: configs/am69_sk_r5.config +F: configs/am69_sk_a72.config