From: Sascha Hauer <s.hauer@pengutronix.de>
To: "open list:BAREBOX" <barebox@lists.infradead.org>
Subject: [PATCH v3 00/23] ARM: K3: Add R5 boot support
Date: Mon, 13 Jan 2025 12:26:47 +0100 [thread overview]
Message-ID: <20250113-k3-r5-v3-0-065fcdcc28d3@pengutronix.de> (raw)
So far we only supported the TI K3 SoCs booting 2nd stage after U-Boot.
This series adds full boot support for K3 SoCs, or more specifically,
the AM625 SoC.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Changes in v3:
- add patch to add AM625(sip)-SK board support
- add patch to detect DRAM size on AM625
- add tool to generate config files from yaml files instead of adding
binary files from U-Boot
- pass only used regions to MPU init instead of all
- implement cache maintenance functions and coherent mem in MPU support
- drop patch to use PIO for small MMC transfers (no longer needed due to
proper cache maintenance with MPU support)
- Document origin of keys
- Link to v2: https://lore.kernel.org/r/20250106-k3-r5-v2-0-9de6270089ef@pengutronix.de
Changes in v2:
- remove unused enable_caches() function
- add patch to disable secondary watchdogs in barebox
- add patch to fix SCR read on Cortex-R5 cores
- handle inner cert in K3 image tool
- Link to v1: https://lore.kernel.org/r/20241129-k3-r5-v1-0-67c4bb42a5c7@pengutronix.de
---
Sascha Hauer (23):
ARM: add ARMv7R MPU support
lib/rationale: compile for pbl
DDR: Add k3 DDR driver
ARM: move ARM_CPU_PART_* defines to header
nommu_v7_vectors_init: disable for r5
clocksource: timer-ti-dm: add support for K3 SoCs
ARM: K3: mount /boot even with env handling disabled
clk: add K3 clk driver
pmdomain: add K3 driver
rproc: add K3 arm64 rproc driver
ARM: k3: add k3_debug_ll_init()
ARM: K3: use debug_ll code for regular PBL console
elf: use iomem regions as fallback when loading to non-sdram memory
rproc: add K3 system_controller
firmware: ti_sci: add function to get global handle
ARM: k3: Add initial r5 support
scripts: k3: add script to generate cfg files from yaml
ARM: k3: Add k3img tool
ARM: beagleplay: add Cortex-R5 boot support
Documentation: add build documentation for TI K3 SoCs
ARM: am625: disable secondary watchdogs
ARM: k3: Add DRAM size detection
ARM: k3: am625-sk board support
Documentation/boards/ti-k3.rst | 79 +
arch/arm/Kconfig | 2 -
arch/arm/boards/Makefile | 1 +
arch/arm/boards/am625-sk/Makefile | 3 +
arch/arm/boards/am625-sk/am625-sk-ddr.c | 2223 +++++++
arch/arm/boards/am625-sk/am625sip-sk-ddr.c | 2229 +++++++
arch/arm/boards/am625-sk/ddr.h | 7 +
arch/arm/boards/am625-sk/entry-r5.S | 29 +
arch/arm/boards/am625-sk/entry.S | 29 +
arch/arm/boards/am625-sk/lowlevel.c | 119 +
arch/arm/boards/beagleplay/Makefile | 4 +-
arch/arm/boards/beagleplay/ddr.c | 586 ++
arch/arm/boards/beagleplay/ddr.h | 6 +
arch/arm/boards/beagleplay/entry-r5.S | 18 +
arch/arm/boards/beagleplay/lowlevel.c | 38 +
arch/arm/cpu/Kconfig | 8 +
arch/arm/cpu/Makefile | 3 +-
arch/arm/cpu/armv7r-mpu.c | 254 +
arch/arm/cpu/cpu.c | 3 +
arch/arm/cpu/cpuinfo.c | 11 +-
arch/arm/cpu/no-mmu.c | 20 +
arch/arm/cpu/start.c | 7 +
arch/arm/cpu/uncompress.c | 2 +
arch/arm/dts/Makefile | 3 +-
arch/arm/dts/k3-am625-r5-beagleplay.dts | 4 +
arch/arm/dts/k3-am625-r5-sk.dts | 4 +
arch/arm/dts/k3-am625-r5.dtsi | 103 +
arch/arm/dts/k3-am625-sk.dts | 9 +
arch/arm/dts/k3-am625.dtsi | 15 +
arch/arm/dts/k3-am625sip-r5-sk.dts | 4 +
arch/arm/include/asm/armv7r-mpu.h | 135 +
arch/arm/include/asm/cputype.h | 11 +
arch/arm/include/asm/dma.h | 3 +-
arch/arm/mach-k3/Kconfig | 27 +
arch/arm/mach-k3/Makefile | 18 +
arch/arm/mach-k3/board-cfg-am625.yaml | 36 +
arch/arm/mach-k3/common.c | 16 +-
arch/arm/mach-k3/custMpk.pem | 51 +
arch/arm/mach-k3/ddrss.c | 76 +
arch/arm/mach-k3/pm-cfg-am625.yaml | 12 +
arch/arm/mach-k3/r5.c | 280 +
arch/arm/mach-k3/rm-cfg-am625.yaml | 981 +++
arch/arm/mach-k3/schema.yaml | 436 ++
arch/arm/mach-k3/sec-cfg-am625.yaml | 379 ++
arch/arm/mach-k3/ti-degenerate-key.pem | 10 +
common/elf.c | 14 +-
drivers/clk/Makefile | 1 +
drivers/clk/k3/Makefile | 2 +
drivers/clk/k3/am625.c | 475 ++
drivers/clk/k3/pll.c | 375 ++
drivers/clk/k3/ti-k3-clk.h | 8 +
drivers/clocksource/timer-ti-dm.c | 53 +-
drivers/ddr/Kconfig | 1 +
drivers/ddr/Makefile | 1 +
drivers/ddr/k3/Kconfig | 2 +
drivers/ddr/k3/Makefile | 1 +
.../ddr/k3/am64/lpddr4_address_slice_0_macros.h | 624 ++
.../ddr/k3/am64/lpddr4_address_slice_1_macros.h | 624 ++
.../ddr/k3/am64/lpddr4_address_slice_2_macros.h | 624 ++
.../ddr/k3/am64/lpddr4_am64_ctl_regs_rw_masks.h | 21 +
drivers/ddr/k3/am64/lpddr4_am64_if.h | 103 +
drivers/ddr/k3/am64/lpddr4_am64_obj_if.h | 14 +
drivers/ddr/k3/am64/lpddr4_am64_structs_if.h | 15 +
drivers/ddr/k3/am64/lpddr4_ctl_regs.h | 1306 ++++
drivers/ddr/k3/am64/lpddr4_data_slice_0_macros.h | 2036 +++++++
drivers/ddr/k3/am64/lpddr4_data_slice_1_macros.h | 2036 +++++++
drivers/ddr/k3/am64/lpddr4_ddr_controller_macros.h | 6436 ++++++++++++++++++++
drivers/ddr/k3/am64/lpddr4_phy_core_macros.h | 1838 ++++++
drivers/ddr/k3/am64/lpddr4_pi_macros.h | 5784 ++++++++++++++++++
drivers/ddr/k3/cps_drv_lpddr4.h | 102 +
drivers/ddr/k3/k3-ddrss.c | 488 ++
drivers/ddr/k3/lpddr4.c | 1071 ++++
drivers/ddr/k3/lpddr4.h | 69 +
drivers/ddr/k3/lpddr4_am64_ctl_regs_rw_masks.c | 1309 ++++
drivers/ddr/k3/lpddr4_am6x.c | 398 ++
drivers/ddr/k3/lpddr4_am6x.h | 41 +
drivers/ddr/k3/lpddr4_am6x_sanity.h | 253 +
drivers/ddr/k3/lpddr4_if.h | 142 +
drivers/ddr/k3/lpddr4_obj_if.c | 52 +
drivers/ddr/k3/lpddr4_obj_if.h | 88 +
drivers/ddr/k3/lpddr4_sanity.h | 439 ++
drivers/ddr/k3/lpddr4_structs_if.h | 52 +
drivers/firmware/ti_sci.c | 59 +-
drivers/pmdomain/ti/Kconfig | 4 +
drivers/pmdomain/ti/Makefile | 1 +
drivers/pmdomain/ti/ti-k3.c | 479 ++
drivers/remoteproc/Kconfig | 6 +
drivers/remoteproc/Makefile | 2 +
drivers/remoteproc/ti_k3_arm64_rproc.c | 226 +
drivers/remoteproc/ti_k3_system_controller.c | 214 +
drivers/remoteproc/ti_sci_proc.h | 149 +
images/.gitignore | 1 +
images/Makefile.k3 | 65 +
include/mach/k3/common.h | 4 +
include/mach/k3/debug_ll.h | 32 +-
include/mach/k3/r5.h | 9 +
include/soc/k3/clk.h | 7 +
include/soc/k3/ddr.h | 26 +
include/soc/ti/ti_sci_protocol.h | 7 -
lib/math/Makefile | 2 +-
scripts/Makefile.lib | 3 +
scripts/k3img | 187 +
scripts/ti-board-config.py | 170 +
103 files changed, 36756 insertions(+), 89 deletions(-)
---
base-commit: 67606e84177c322b92e28d5b5ba3b06c2b1723c3
change-id: 20241129-k3-r5-0da3e97beaf9
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
next reply other threads:[~2025-01-13 11:29 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-13 11:26 Sascha Hauer [this message]
2025-01-13 11:26 ` [PATCH v3 01/23] ARM: add ARMv7R MPU support Sascha Hauer
2025-01-13 11:26 ` [PATCH v3 02/23] lib/rationale: compile for pbl Sascha Hauer
2025-01-13 11:26 ` [PATCH v3 04/23] ARM: move ARM_CPU_PART_* defines to header Sascha Hauer
2025-01-13 11:26 ` [PATCH v3 05/23] nommu_v7_vectors_init: disable for r5 Sascha Hauer
2025-01-13 11:26 ` [PATCH v3 06/23] clocksource: timer-ti-dm: add support for K3 SoCs Sascha Hauer
2025-01-13 11:26 ` [PATCH v3 07/23] ARM: K3: mount /boot even with env handling disabled Sascha Hauer
2025-01-13 11:26 ` [PATCH v3 08/23] clk: add K3 clk driver Sascha Hauer
2025-01-13 11:26 ` [PATCH v3 09/23] pmdomain: add K3 driver Sascha Hauer
2025-01-13 11:26 ` [PATCH v3 10/23] rproc: add K3 arm64 rproc driver Sascha Hauer
2025-01-13 11:26 ` [PATCH v3 11/23] ARM: k3: add k3_debug_ll_init() Sascha Hauer
2025-01-13 11:26 ` [PATCH v3 12/23] ARM: K3: use debug_ll code for regular PBL console Sascha Hauer
2025-01-13 11:27 ` [PATCH v3 13/23] elf: use iomem regions as fallback when loading to non-sdram memory Sascha Hauer
2025-01-13 11:27 ` [PATCH v3 14/23] rproc: add K3 system_controller Sascha Hauer
2025-01-13 11:27 ` [PATCH v3 15/23] firmware: ti_sci: add function to get global handle Sascha Hauer
2025-01-13 11:27 ` [PATCH v3 16/23] ARM: k3: Add initial r5 support Sascha Hauer
2025-01-13 11:27 ` [PATCH v3 17/23] scripts: k3: add script to generate cfg files from yaml Sascha Hauer
2025-01-14 9:29 ` Ahmad Fatoum
2025-01-14 9:38 ` Sascha Hauer
2025-01-13 11:27 ` [PATCH v3 18/23] ARM: k3: Add k3img tool Sascha Hauer
2025-01-13 11:27 ` [PATCH v3 19/23] ARM: beagleplay: add Cortex-R5 boot support Sascha Hauer
2025-01-13 11:27 ` [PATCH v3 20/23] Documentation: add build documentation for TI K3 SoCs Sascha Hauer
2025-01-13 11:27 ` [PATCH v3 21/23] ARM: am625: disable secondary watchdogs Sascha Hauer
2025-01-13 11:27 ` [PATCH v3 22/23] ARM: k3: Add DRAM size detection Sascha Hauer
2025-01-13 11:27 ` [PATCH v3 23/23] ARM: k3: am625-sk board support Sascha Hauer
2025-01-14 8:32 ` [PATCH v3 00/23] ARM: K3: Add R5 boot support Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250113-k3-r5-v3-0-065fcdcc28d3@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox