summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-04-25arm: stm32mp: add helper function stm32mp_is_closed()Patrick Delaunay
Add the helper function stm32mp_is_closed() to check the "closed" state in product life cycle, when product secrets have been provisioned into the device, by "secure secret provisioning" tools (SSP) for example. Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25arm: stm32mp: cmd_stm32key: update command for stm32mp25xPatrice Chotard
Update key table for stm32mp25 platform. Signed-off-by: Lionel Debieve <[email protected]> Signed-off-by: Thomas Bourgoin <[email protected]> Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25arm: stm32mp: fix package IDs for stm32mp25Patrice Chotard
Fix package IDs for stm32mp25. Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25arm: stm32mp: implement new STM32MP25 revision ID systemPatrick Delaunay
The STM32MP25 revision ID are now defined with the OTP102, this patch implements this new system. Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice CHOTARD <[email protected]>
2025-04-25arm: stm32mp: disable console for UART serial bootPatrice Chotard
For UART serial boot, the console need to be deactivated to avoid issue with tools STM32CubeProgrammer. This patch adds also the missing dependency for CMD_STM32PROG_SERIAL, to allow the silent and disable console. This avoid to add is on board level for STM32MP15 (with TARGET_ST_STM32MP15X or TARGET_ST_STM32MP13X) Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25arm: stm32mp: increase EARLY_TLB_SIZE to 0x10000Patrice Chotard
Depending on Soc (STM32MP25 vs STM32MP21), the memory map can be different and it generates a different TLB page table configuration/size. Increase EARLY_TLB_SIZE to 0x10000 to fix following error message and panic: "Insufficient RAM for page table: 0xb000 > 0xa000. Please increase the size in get_page_table_size()" Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25ARM: dts: stm32: add sdmmc1 fixed clock for stm32mp257f-ev1-u-bootPatrice Chotard
Add sdmmc1 temporary fixed clock for stm32mp257f-ev1-u-boot Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25configs: stm32mp25: add PXE boot supportPatrice Chotard
Configure the required configuration to allow PXE boot, without autoload support by default. Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25configs: stm32mp25: add USB host boot supportPatrice Chotard
Add support for booting from USB pen drive, since USB host port is available on the STM32MP2. Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25board: st: stm32mp2: change bootcmd for ST boardsPatrick Delaunay
For nor0 boot for the STMicroelectronics boards, the bootfs is found in SD-Card = mmc0 for nor0 boot. Introduce a new file configuration file stm32mp25_st_common.h to manage this specific behavior for the STMicroelectronics boards; change the boot order for nor0 boot and don't use the default DISTRO order define in BOOT_TARGET_DEVICES: mmc1, ubifs, mmc0, mmc2. Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice CHOTARD <[email protected]>
2025-04-25configs: stm32mp25: add support of NAND and NOR bootPatrice Chotard
Add support of UBI boot and activate the needed configuration for U-Boot environment in UBI volume for NAND or in a MTD partition for NOR device, SPI Flash: ENV_OFFSET, ENV_OFFSET_REDUND, ENV_SECT_SIZE is aligned with the default MTD partition on NOR device of the STMicroelectronics boards. Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25board: st: stm32mp2: add user button supportPatrick Delaunay
Handle user button 2 to force boot with STM32CubeProgrammer. Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25board: st: stm32mp2: add led supportPatrick Delaunay
Add led support, force default state on U-Boot initialization and put on the Linux heartbeat led = "blue-led" during U-Boot execution. Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25ARM: dts: stm32: add "u-boot,mmc-env-partition" for stm32mp257f-ev1-u-bootPatrice Chotard
Add "u-boot,mmc-env-partition" property for stm32mp257f-ev1-u-boot. Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25board: st: stm32mp2: add mmc_get_env_dev()Patrice Chotard
Use the boot instance to select the correct mmc device identifier, this patch only to save the environment on eMMC = MMC(1) on STMicroelectronics boards. Set the CONFIG_SYS_MMC_ENV_DEV to -1 to select the mmc boot instance by default. Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25board: st: stm32mp2: add env_get_location()Patrice Chotard
In case of several environment location support, env_get_location is needed to select the correct location depending of the boot device . Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25arm: stm32mp: add boot_mode support for STM32MP25Patrick Delaunay
Add support of all the boot mode supported by STM32MP25x family with information provided by TF-A in backup register Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25configs: stm32mp25: add bootcmd for stm32mp25 platformPatrice Chotard
Handle boot for the 3 instance of MMC and call the command stm32prog for serial boot on USB or on UART as it is done for other STM32MP platform. Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25configs: stm32mp25: add MMC supportPatrice Chotard
Enable MMC related flags support for stm32mp25 Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25ARM: stm32mp: add RIFSC system bus driver for STM32MP25Patrick Delaunay
This driver is checking the access rights of the different peripherals connected to the RIFSC bus. If access is denied, the associated device is not binded. Signed-off-by: Gatien Chevallier <[email protected]> Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]> Cover-letter: Enable OF_UPSTREAM for STM32 and STi platforms This series is enabling OF_UPSTREAM flag for STM32 MCU's, MPU's and STi platforms. For some boards, some defconfig and DT update are needed to keep the same functional level. The major impact concerns MPU's platform with introduction of STM32 System Bus. END Series-version: 2 Series-changes: 2 - Replace LOG_CATEGORY UCLASS_SIMPLE_BUS by UCLASS_NOP in both /arch/arm/mach-stm32mp/stm32mp2/rifsc.c and /arch/arm/mach-stm32mp/stm32mp1/etzpc.c. - Update board/st/stm32mp1/MAINTAINERS. - Fix DSI clock ssetting.
2025-04-25ARM: dts: stm32: convert stm32mp2 board to OF_UPSTREAMPatrice Chotard
Enable OF_UPSTREAM flag for STM32MP2 platforms. Add fixed-clock ck_flexgen_08 and ck_icn_ls_mcu until STM32MP25 clock driver will be available. Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2025-04-25stm32mp: fdt: remove ETZPC peripheral cleanupLionel Debieve
Due to feature domains management, there is no more need to maintain the fdt cleanup. Signed-off-by: Lionel Debieve <[email protected]> Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2025-04-25ARM: dts: stm32: add ETZPC as a system bus for STM32MP1x boardsLionel Debieve
The STM32 System Bus is an internal bus on which devices are connected. ETZPC is a peripheral overseeing the firewall bus that configures and control access to the peripherals connected on it. For more information on which peripheral is securable, please read the STM32MP13 or STM32MP15 reference manual. Signed-off-by: Lionel Debieve <[email protected]> Signed-off-by: Gatien Chevallier <[email protected]> Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2025-04-25ARM: stm32mp: add ETZPC system bus driver for STM32MP1Lionel Debieve
This driver is checking the access rights of the different peripherals connected to the ETZPC bus. If access is denied, the associated device is not bound. Signed-off-by: Lionel Debieve <[email protected]> Signed-off-by: Gatien Chevallier <[email protected]> Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2025-04-25clk: stm32mp1: fix DSI clock settingPatrice Chotard
DSI is the peripheral clock, while DSI_K is an internal kernel clock. Even though they get the same register and same bit set to be gated, resulting in the same behavior. Signed-off-by: Raphael Gallais-Pou <[email protected]> Signed-off-by: Patrice Chotard <[email protected]>
2025-04-25configs: stm32: introduce stm32mp15-odyssey_defconfigPatrice Chotard
U-Boot DT for stm32mp157c-odyssey is richer than the kernel DT one. None of the stm32mp157c-odyssey's contributors answered to my request to update kernel DT and i didn't have this board to test. The simpler is to add a dedicated stm32mp15-odyssey_defconfig with OF_UPSTREAM flag unset. Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2025-04-25ARM: dts: stm32: convert stm32mp15 board to OF_UPSTREAMPatrice Chotard
Enable OF_UPSTREAM flag for STM32MP15 platforms, except for stm32mp15-odyssey,see following patch : "configs: stm32: introduce stm32mp15-odyssey_defconfig" Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2025-04-25ARM: dts: stm32: convert stm32mp13 board to OF_UPSTREAMPatrice Chotard
Enable OF_UPSTREAM flag for STM32MP13 platforms. Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2025-04-25ARM: dts: stm32: convert stm23f4 boards to OF_UPSTREAMPatrice Chotard
Enable OF_UPSTREAM flag for STM32MPF4 platforms. Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2025-04-25ARM: dts: stm32: convert stm23f7 boards to OF_UPSTREAMPatrice Chotard
Enable OF_UPSTREAM flag for STM32F7 platforms. Use upstream device tree for DSI and LTDC nodes, As now in upstream DT, in panel@0 node, power-supply property is present, which is a fixed-regulator, add DM_REGULATOR_FIXED flag for stm32f769-disco boards. Set also DEFAULT_FDT_FILE in defconfigs and use it in stm32f746-disco.h to indicate which FDT file to load (All STM32F7 boards are using this file). If something is missing, it must be added in upstream device tree in linux kernel ("px_clk" for DSI by example). Signed-off-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2025-04-25ARM: dts: stm32: convert stm23h7 boards to OF_UPSTREAMPatrice Chotard
Enable OF_UPSTREAM flag for STM32H7 platforms. Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2025-04-25ARM: dts: sti: convert stih410-b2260 board to OF_UPSTREAMPatrice Chotard
Enable OF_UPSTREAM flag for stih410-b2260 board. Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2025-04-25spi: fsl_qspi: Move AHB read buffer config after LUTPawel Kochanowski
When using CONFIG_FSL_QSPI_AHB_FULL_MAP the fsl_qspi_default_setup() sets the BFGENCR register to use the LUT(SEQID_LUT_AHB) before the Look Up Table is populated. This result in a situation that after 'sf probe' command any memory read from qspi using AHB will result in undefined behaviour (hang) untill first 'sf read' op is executed. Move the BFGENCR write to fsl_qspi_prepare_lut() to ensure that the setup is consistent. AHB reads will use the default LUT(index 0) setup by previous boot stage untill the first read op. Signed-off-by: Pawel Kochanowski <[email protected]>
2025-04-25toradex: tdx-cfg-block: fix verdin imx95 sku 0089 pid4Emanuele Ghidoli
The memory size of the 0089 SKU is 8 GB instead of 16 GB. Fix PID4 0089 Verdin iMX95 definition, in the configuration block. Fixes: ce53f46f33b4 ("toradex: tdx-cfg-block: add verdin imx95 sku 0089 pid4") Signed-off-by: Emanuele Ghidoli <[email protected]> Reviewed-by: Francesco Dolcini <[email protected]>
2025-04-25clk: imx: Finish converting clock-osc-24 back to osc_24Adam Ford
The UART clocks were added around the same time some other clock updates were happening, so converting clock-osc-24 back to osc_24 was missed on the UART clocks for imx8mm and imx8mn, so update them here. Fixes: b4734c9c333b ("clk: imx: Convert clock-osc-* back to osc_*") Signed-off-by: Adam Ford <[email protected]> Reported-by: Christoph Niedermaier <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
2025-04-25imx: mx51evk: drop Stefano Babic from MAINTAINERSStefano Babic
I haven't anymore the MX51EVK board. Signed-off-by: Stefano Babic <[email protected]> CC: Fabio Estevam <[email protected]>
2025-04-25MAINTAINERS: Update email of Stefano BabicStefano Babic
Replace my old e-mail with the current one to get still involved in the project. Signed-off-by: Stefano Babic <[email protected]>
2025-04-25board: starfive: visionfive2: Order board detection logic to match configE Shattow
Refactor inside-out EEPROM-checking logic to better match the board-seeking callback and ordered list of targets from starfive_visionfive2_config since the JH7110 OF_UPSTREAM migration. Signed-off-by: E Shattow <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
2025-04-25doc: board: starfive: visionfive2: add missing format command to FlashingE Shattow
Signed-off-by: E Shattow <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
2025-04-25doc: jh7110: describe debug UARTHeinrich Schuchardt
Provide the settings for using the debug UART in SPL. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: E Shattow <[email protected]>
2025-04-25doc: starfive: use jh7110_common.rstHeinrich Schuchardt
To avoid duplicate maintenance just include jh7110_common.rst to describe the usage of the different boot sources. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: E Shattow <[email protected]>
2025-04-25doc: starfive: use consistent formattingHeinrich Schuchardt
Always use ---- for the H2 level. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: E Shattow <[email protected]>
2025-04-25doc: add DeepComputing FML13V01 documentationHeinrich Schuchardt
Describe building U-Boot for the board and booting. Carve out common information for JH7110 boards into an include. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: E Shattow <[email protected]>
2025-04-25board: starfive: spl: support DeepComputing FML13V01Heinrich Schuchardt
On the DeepComputing Framework motherboard (FML13V01) choose the matching FIT configuration. Reviewed-by: Hal Feng <[email protected]> Reviewed-by: Matthias Brugger <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: E Shattow <[email protected]>
2025-04-25board: starfive: DeepComputing FML13V01 fdt selectionHeinrich Schuchardt
We support all JH7110 boards with starfive_visionfive2_defconfig. The relevant device-tree is selected at runtime based on EEPROM data. Support setting $fdtfile to the file name of the DeepComputing Framework motherboard (FML13V01) device-tree. Reviewed-by: Hal Feng <[email protected]> Reviewed-by: Matthias Brugger <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: E Shattow <[email protected]>
2025-04-25riscv: dts: jh7110: add DeepComputing FML13V01 device-treeHeinrich Schuchardt
Add the u-boot device-tree include needed to support the DeepComputing Framework motherboard (FML13V01). Reviewed-by: Sumit Garg <[email protected]> Reviewed-by: Hal Feng <[email protected]> Reviewed-by: Matthias Brugger <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: E Shattow <[email protected]>
2025-04-25configs: add jh7110-deepcomputing-fml13v01 to VF2 defconfigHeinrich Schuchardt
The DeepComputing Framework motherboard is a JH7110 device support by the upstream kernel. Add its device-tree to the list of device-trees to be included into the starfive_visionfive_defconfig. Reviewed-by: Sumit Garg <[email protected]> Reviewed-by: Hal Feng <[email protected]> Reviewed-by: Matthias Brugger <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: E Shattow <[email protected]>
2025-04-25riscv: Provide __image_copy_{start_end} symbols in linkerscriptYao Zi
Binman looks for __image_copy_start to determine the base address of an entry if elf-base-sym isn't specified, which is missing in RISC-V port. This causes binman skips RISC-V SPL entries without filling addresses into its .binman_sym_table section. This patch defines __image_copy_start in linkerscript of both SPL and proper U-Boot to ensure binman_sym functions correctly with the default binman.dtsi. The paired symbol, __image_copy_end, is introduced as well for completeness. Signed-off-by: Yao Zi <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2025-04-25riscv: dts: starfive: Prevent binman from relocating symbols in SPLYao Zi
SPL and proper U-Boot are split into two images with default binman configuration of StarFive VisionFive 2, thus proper U-Boot symbols cannot be found in the SPL image. This fixes errors like Section '/binman/spl-img': Symbol '_binman_u_boot_any_prop_size' in entry '/binman/spl-img/mkimage/u-boot-spl/u-boot-spl-nodtb': Entry 'u-boot-any' not found in list (u-boot-spl-nodtb, u-boot-spl-dtb,u-boot-spl,mkimage,spl-img) Fixes: 90602e779d3 ("riscv: dts: starfive: generate u-boot-spl.bin.normal.out") Suggested-by: Jonas Karlman <[email protected]> Signed-off-by: Yao Zi <[email protected]>
2025-04-25riscv: dts: binman.dtsi: Switch to u-boot-nodtb entry for proper U-BootYao Zi
Switch to u-boot-nodtb entry which precisely represents a proper U-Boot and could be matched with u_boot_any. This allows RISC-V ports that make use of binman to be built without disabling SPL_BINMAN_UBOOT_SYMBOLS explicitly, which is set to y by default. Fixes: 0784510f741 ("riscv: sifive: unleashed: Switch to use binman to generate u-boot.itb") Suggested-by: Jonas Karlman <[email protected]> Signed-off-by: Yao Zi <[email protected]> Reviewed-by: Simon Glass <[email protected]>