]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
3 days agoMerge patch series "Enable Firmware Handoff CI test on qemu_arm64"
Tom Rini [Tue, 4 Nov 2025 16:59:50 +0000 (10:59 -0600)] 
Merge patch series "Enable Firmware Handoff CI test on qemu_arm64"

Raymond Mao <raymond.mao@linaro.org> says:

This patch series enable Firmware Handoff [1] CI tests on qemu_arm64 by:
1. fetch MbedTLS (v3.6), OP-TEE (v4.7.0) and TF-A (v2.13.0);
2. build bl1 and fip with both Firmware Handoff and Measured Boot
   enabled;
3. pytest to validate the Firmware Handoff feature via bloblist by
   checking the existence of expected FDT nodes and TPM events generated
   and handed over from TF-A/OP-TEE.

[1] https://github.com/FirmwareHandoff/firmware_handoff

Link: https://lore.kernel.org/r/20251021181703.598342-1-raymond.mao@linaro.org
3 days agoci: add test entries for qemu_arm64_tfa_fw_handoff
Raymond Mao [Tue, 21 Oct 2025 18:16:58 +0000 (11:16 -0700)] 
ci: add test entries for qemu_arm64_tfa_fw_handoff

Add qemu_arm64_tfa_fw_handoff test entries to azure and gitlab
pipelines.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
3 days agoci: check existence of bl1 and fip in the test script
Raymond Mao [Tue, 21 Oct 2025 18:16:57 +0000 (11:16 -0700)] 
ci: check existence of bl1 and fip in the test script

Check the existence of bl1 and fip from:
1. /opt/tf-a/${board_type}_${board_ident}, if not exist, then;
2. /opt/tf-a/${board_type}

This change allows to test with TF-A with specified board ID only.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
3 days agoconfigs: select CMD_BLOBLIST for Firmware Handoff testing
Raymond Mao [Tue, 21 Oct 2025 18:16:56 +0000 (11:16 -0700)] 
configs: select CMD_BLOBLIST for Firmware Handoff testing

Firmware Handoff tests will leverage the same board type 'qemu_arm64'
with a new board ID 'fw_handoff_tfa_optee', thus select CMD_BLOBLIST
in qemu_arm64_defconfig for running the test.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
3 days agopytest: add test script to validate Firmware Handoff
Raymond Mao [Tue, 21 Oct 2025 18:16:55 +0000 (11:16 -0700)] 
pytest: add test script to validate Firmware Handoff

Add test cases to validate FDT and TPM eventlog handoff from TF-A
and OP-TEE via bloblist.

For FDT, the nodes 'reserved-memory' and 'firmware' appended by
OP-TEE indicates a successful handoff.

For TPM eventlog, the events 'SECURE_RT_EL3', 'SECURE_RT_EL1_OPTEE'
and 'SECURE_RT_EL1_OPTEE_EXTRA1' created by TF-A indicates a
successful handoff.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
3 days agodocker: add OP-TEE and TF-A build for testing Firmware Handoff
Raymond Mao [Tue, 21 Oct 2025 18:16:54 +0000 (11:16 -0700)] 
docker: add OP-TEE and TF-A build for testing Firmware Handoff

Fetch OP-TEE (4.7.0), TF-A (v2.13.0), MbedTLS (v3.6) and build
bl1 and fip with both Firmware Handoff and Measured Boot enabled.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
3 days agoarm: armv8: mmu: fix mem_map_from_dram_banks
Anshul Dalal [Fri, 31 Oct 2025 16:17:31 +0000 (21:47 +0530)] 
arm: armv8: mmu: fix mem_map_from_dram_banks

mem_map_from_dram_banks calls fdtdec_setup_memory_banksize to setup the
dram banks though that is expected to be done by dram_init_banksize as
part of board_r sequence.

This has the side effect of modifying gd->bd->bi_dram as well, therefore
this patch removes the call and updates spl_enable_cache for K3 to call
dram_init_banksize.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
Reported-by: Francesco Dolcini <francesco@dolcini.it>
Closes: https://lore.kernel.org/u-boot/20251027165225.GA71553@francesco-nb/
Fixes: fe2647f2a0d4 ("arm: armv8: mmu: add mem_map_from_dram_banks")
Tested-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
3 days agoMerge branch 'master' of git://source.denx.de/u-boot-usb
Tom Rini [Tue, 4 Nov 2025 13:54:00 +0000 (07:54 -0600)] 
Merge branch 'master' of git://source.denx.de/u-boot-usb

3 days agoMerge branch 'staging' of https://source.denx.de/u-boot/custodians/u-boot-tegra
Tom Rini [Tue, 4 Nov 2025 13:50:35 +0000 (07:50 -0600)] 
Merge branch 'staging' of https://source.denx.de/u-boot/custodians/u-boot-tegra

3 days agousb: musb-new: fix typos
Yegor Yefremov [Mon, 22 Sep 2025 14:12:29 +0000 (16:12 +0200)] 
usb: musb-new: fix typos

Typos found via codespell utility.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Reviewed-by: Marek Vasut <marek.vasut@mailbox.org>
3 days agousb: musb-new: fix ti-musb dependencies
Yegor Yefremov [Mon, 22 Sep 2025 13:05:57 +0000 (15:05 +0200)] 
usb: musb-new: fix ti-musb dependencies

If OF_CONTROL is on, ti-musb.c registers a "ti-musb-wrapper" driver
that requires UCLASS_MISC. Hence, select MISC if both OF_CONTROL
and USB_MUSB_TI are selected.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
4 days agoMerge patch series "Allow falcon boot from A-core SPL on K3 devices"
Tom Rini [Mon, 3 Nov 2025 17:52:31 +0000 (11:52 -0600)] 
Merge patch series "Allow falcon boot from A-core SPL on K3 devices"

Anshul Dalal <anshuld@ti.com> says:

With the addition of secure falcon mode since commit 7674ac9c820f ("Merge patch
series "Add support for secure falcon mode: disable args file""), this series now
adds support for the same to TI's K3 devices and documents the feature taking
AM62x EVM as an example.

With secure falcon mode from A-Core SPL, the boot flow changes as follows:

Existing:
  R5 SPL -> TFA -> OP-TEE -> A-Core SPL -> *U-Boot* -> Linux Kernel

Modified:
  R5 SPL -> TFA -> OP-TEE -> A-Core SPL -> Linux Kernel

Link: https://lore.kernel.org/r/20251024081408.1610102-1-anshuld@ti.com
4 days agoMerge patch series "Remove usage of CMD_BOOTx from SPL code"
Tom Rini [Mon, 3 Nov 2025 17:52:09 +0000 (11:52 -0600)] 
Merge patch series "Remove usage of CMD_BOOTx from SPL code"

Anshul Dalal <anshuld@ti.com> says:

Hi all,

We currently make use of CMD_BOOTI and CMD_BOOTZ in the SPL boot flow in
falcon mode, this isn't correct since all CMD_* configs are only meant
for U-Boot proper and not the SPL.

Therefore this patch set adds new LIB_BOOT[IMZ] configs that allow for
more granular selection of their respective compilation targets.

Additionally, this also allows us to more easily disable support for
raw images from secure falcon mode (SPL_OS_BOOT_SECURE) by doing the
following:

  config LIB_SPL_BOOTI
    ...
    depends on SPL_OS_BOOT && !SPL_OS_BOOT_SECURE
    ...

Link: https://lore.kernel.org/r/20251027-fix_cmd_bootx-v10-0-10487e907710@ti.com
4 days agodoc: develop: add docs for secure falcon mode
Anshul Dalal [Fri, 24 Oct 2025 08:14:07 +0000 (13:44 +0530)] 
doc: develop: add docs for secure falcon mode

This patch documents the newly added SPL_OS_BOOT_SECURE option that
enables authenticated boot in falcon mode.

The document provides steps for using secure falcon mode on ARM64 taking
TI's AM62x EVM as an example.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
4 days agoarm: mach-k3: enable support for falcon mode
Anshul Dalal [Fri, 24 Oct 2025 08:14:06 +0000 (13:44 +0530)] 
arm: mach-k3: enable support for falcon mode

With CONFIG_SPL_OS_BOOT enabled, U-Boot checks for the return value of
spl_start_uboot to select between falcon or the regular boot flow. Where
a return value of 0 means 'boot to linux'.

This patch overrides the weak definition form common/spl/spl.c to allow
K3 devices to use falcon mode with SPL_OS_BOOT_SECURE enabled for the
A-Core SPL.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
4 days agoboard: ti: common: Kconfig: add CMD_SPL
Anshul Dalal [Fri, 24 Oct 2025 08:14:05 +0000 (13:44 +0530)] 
board: ti: common: Kconfig: add CMD_SPL

Add CMD_SPL to list of configs implied by TI_COMMON_CMD_OPTIONS. This
allows the use of 'spl export'[1] command for preparing a device-tree
for falcon boot.

[1]:
https://docs.u-boot.org/en/v2025.10/develop/falcon.html#using-spl-command

Signed-off-by: Anshul Dalal <anshuld@ti.com>
4 days agospl: Kconfig: allow falcon mode for TI secure devices
Anshul Dalal [Fri, 24 Oct 2025 08:14:04 +0000 (13:44 +0530)] 
spl: Kconfig: allow falcon mode for TI secure devices

Falcon mode was disabled for TI_SECURE_DEVICE at commit e95b9b4437bc
("ti_armv7_common: Disable Falcon Mode on HS devices") for older 32-bit
HS devices and but can now be enabled with the addition of
OS_BOOT_SECURE.

For secure boot, the kernel with x509 headers can be packaged in a fit
container (fitImage) signed with TIFS keys for authentication.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
4 days agoMerge patch series "Remove usage of CMD_BOOTx from SPL code"
Tom Rini [Mon, 3 Nov 2025 17:52:09 +0000 (11:52 -0600)] 
Merge patch series "Remove usage of CMD_BOOTx from SPL code"

Anshul Dalal <anshuld@ti.com> says:

Hi all,

We currently make use of CMD_BOOTI and CMD_BOOTZ in the SPL boot flow in
falcon mode, this isn't correct since all CMD_* configs are only meant
for U-Boot proper and not the SPL.

Therefore this patch set adds new LIB_BOOT[IMZ] configs that allow for
more granular selection of their respective compilation targets.

Additionally, this also allows us to more easily disable support for
raw images from secure falcon mode (SPL_OS_BOOT_SECURE) by doing the
following:

  config LIB_SPL_BOOTI
    ...
    depends on SPL_OS_BOOT && !SPL_OS_BOOT_SECURE
    ...

Link: https://lore.kernel.org/r/20251027-fix_cmd_bootx-v10-0-10487e907710@ti.com
4 days agoconfigs: disable SPL_BOOTZ to preserve spl size
Anshul Dalal [Mon, 27 Oct 2025 14:17:03 +0000 (19:47 +0530)] 
configs: disable SPL_BOOTZ to preserve spl size

In the existing behaviour, CMD_BOOTZ is not enabled by default which
means zimage.o is not compiled in the SPL in falcon mode unless
explicitly enabled. This changes now as SPL_BOOTZ is default y for
falcon users which leads to larger SPL size with zimage.o being present.

This patch modifies the defconfigs that used falcon mode but don't
require zimage support.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
4 days agospl: remove usage of CMD_BOOTx from image parsing
Anshul Dalal [Mon, 27 Oct 2025 14:17:02 +0000 (19:47 +0530)] 
spl: remove usage of CMD_BOOTx from image parsing

Using CMD_* configs from spl doesn't make logical sense. Therefore
this patch replaces the checks for CMD_BOOTx with newly added library
symbols LIB_BOOT[IMZ] and SPL_LIB_BOOT[IMZ] which are enabled by their
respective CMD_* or SPL_* counterparts.

On platforms with non-secure falcon mode, SPL_BOOTZ is enabled by
default for 32-bit ARM systems and SPL_BOOTI is enabled by default for
64-bit ARM and RISCV.

The respective C files (image.c/zimage.c) are compiled based on library
symbols $(PHASE_)LIB_BOOTx instead which are in turn selected by both
CMD_BOOTx and SPL_BOOTx as required.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
4 days agoMerge patch series "Convert extension support to UCLASS and adds its support to boot...
Tom Rini [Mon, 3 Nov 2025 16:12:05 +0000 (10:12 -0600)] 
Merge patch series "Convert extension support to UCLASS and adds its support to boot flows"

Kory Maincent (TI.com) <kory.maincent@bootlin.com> says:

This series converts the extension board framework to use UCLASS as
requested by Simon Glass, then adds extension support to pxe_utils
and bootmeth_efi (not tested) to enable extension boards devicetree load
in the standard boot process.

I can't test the imx8 extension scan enabled by the
imx8mm-cl-iot-gate_defconfig as I don't have this board.
I also can't test the efi bootmeth change as I don't have such board.

Link: https://lore.kernel.org/r/20251030-feature_sysboot_extension_board-v5-0-cfb77672fc68@bootlin.com
4 days agoboot: bootmeth_efi: Add extension board devicetree overlay support
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:13 +0000 (17:45 +0100)] 
boot: bootmeth_efi: Add extension board devicetree overlay support

Add support for scanning and applying extension board devicetree
overlays during EFI boot. After loading the main board devicetree,
the system now scans for available extension boards and applies their
overlays automatically.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
4 days agoboot: bootmeth_efi: Refactor distro_efi_try_bootflow_files return logic
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:12 +0000 (17:45 +0100)] 
boot: bootmeth_efi: Refactor distro_efi_try_bootflow_files return logic

Simplify the return path in distro_efi_try_bootflow_files() to prepare
for adding extension board support in a subsequent commit.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
4 days agoboot: pxe_utils: Add extension board devicetree overlay support
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:11 +0000 (17:45 +0100)] 
boot: pxe_utils: Add extension board devicetree overlay support

Add support for scanning and applying extension board devicetree
overlays during PXE boot. After loading the main board devicetree,
the system now scans for available extension boards and applies their
overlays automatically.

This enables dynamic hardware configuration for systems with extension
boards during boot scenarios which are using pxe_utils.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
4 days agoboot: extension: Move overlay apply custom logic to command level
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:10 +0000 (17:45 +0100)] 
boot: extension: Move overlay apply custom logic to command level

The extension_overlay_cmd environment variable approach is specific to
the U-Boot extension_board command, while other boot flows (pxe_utils,
bootstd) handle overlay loading differently.

Move the extension_overlay_cmd execution out of the core extension
framework to the command level. This decouples the framework from
command-specific behavior and prepares for future extension support
in other boot flows.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
4 days agoboot: Remove legacy extension board support
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:09 +0000 (17:45 +0100)] 
boot: Remove legacy extension board support

Remove the legacy extension board implementation now that all boards
have been converted to use the new UCLASS-based framework. This
eliminates lines of legacy code while preserving functionality
through the modern driver model approach.

Update the bootstd tests, due to the removal of extension hunter.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
4 days agoboard: compulab: Convert imx8mm-cl-iot-gate to UCLASS extension framework
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:08 +0000 (17:45 +0100)] 
board: compulab: Convert imx8mm-cl-iot-gate to UCLASS extension framework

Migrate CompuLab imx8mm-cl-iot-gate board extension detection from legacy
implementation to the new UCLASS-based extension board framework.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
4 days agoboard: sandbox: Convert extension support to UCLASS framework
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:07 +0000 (17:45 +0100)] 
board: sandbox: Convert extension support to UCLASS framework

Migrate sandbox extension board detection from legacy implementation to
the new UCLASS-based extension board framework.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
4 days agoboard: sandbox: Improve extension board scan implementation
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:06 +0000 (17:45 +0100)] 
board: sandbox: Improve extension board scan implementation

Enhance the extension board scanning code in sandbox with better error
handling and code organization.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
4 days agoboard: sunxi: Convert extension support to UCLASS framework
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:05 +0000 (17:45 +0100)] 
board: sunxi: Convert extension support to UCLASS framework

Migrate sunxi board extension detection from legacy implementation to
the new UCLASS-based extension board framework.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
4 days agoboard: sunxi: Refactor CHIP board extension code
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:04 +0000 (17:45 +0100)] 
board: sunxi: Refactor CHIP board extension code

Clean up and improve code structure in the sunxi CHIP board extension
detection implementation.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
4 days agoboard: ti: Convert cape detection to use UCLASS framework
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:03 +0000 (17:45 +0100)] 
board: ti: Convert cape detection to use UCLASS framework

Migrate TI board cape detection from legacy extension support to the
new UCLASS-based extension board framework.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
4 days agoboard: ti: Refactor cape detection code for readability
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:02 +0000 (17:45 +0100)] 
board: ti: Refactor cape detection code for readability

Clean up and reorganize cape detection code structure for improved
maintainability and readability.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
4 days agoboot: Add UCLASS support for extension boards
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:01 +0000 (17:45 +0100)] 
boot: Add UCLASS support for extension boards

Introduce UCLASS-based extension board support to enable more
standardized and automatic loading of extension board device tree
overlays in preparation for integration with bootstd and pxe_utils.

Several #if CONFIG_IS_ENABLED are used in cmd/extension_board.c to ease the
development but don't worry they are removed later in the series.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
4 days agoboot: Move extension board support from cmd/ to boot/
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:45:00 +0000 (17:45 +0100)] 
boot: Move extension board support from cmd/ to boot/

Relocate extension board support from cmd/ to boot/ directory in
preparation for converting the extension framework to use UCLASS.
Also improve code style by applying reverse xmas tree ordering.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
4 days agoinclude: extension_board: Document the extension structure
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:44:59 +0000 (17:44 +0100)] 
include: extension_board: Document the extension structure

Add documentation to describe the extension structure.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
4 days agoboard: compulab: Exclude compulab extension board detection from XPL builds
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:44:58 +0000 (17:44 +0100)] 
board: compulab: Exclude compulab extension board detection from XPL builds

Disable compulab extension board detection functionality in XPL (eXtended
Program Loader) images to reduce size and complexity in the early boot
stage.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
4 days agoboard: sunxi: Exclude DIP detection from XPL builds
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:44:57 +0000 (17:44 +0100)] 
board: sunxi: Exclude DIP detection from XPL builds

Disable DIP detection functionality in XPL (eXtended Program Loader)
images to reduce size and complexity in the early boot stage.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
4 days agoboard: ti: Fix CAPE_EEPROM_BUS_NUM Kconfig dependency
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:44:56 +0000 (17:44 +0100)] 
board: ti: Fix CAPE_EEPROM_BUS_NUM Kconfig dependency

The CAPE_EEPROM_BUS_NUM configuration option was incorrectly depending
on CMD_EXTENSION, which represents the extension board command. However,
the cape scan functionality can be built and used independently of the
command interface through the SUPPORT_EXTENSION_SCAN option.

Change the dependency from CMD_EXTENSION to SUPPORT_EXTENSION_SCAN to
properly reflect that the I2C bus configuration is needed for the cape
scan function itself, not specifically for the command.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
4 days agoboard: ti: Exclude cape detection from xPL builds
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:44:55 +0000 (17:44 +0100)] 
board: ti: Exclude cape detection from xPL builds

Disable cape detection functionality in xPL images to reduce size and
complexity in the early boot stage.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
4 days agoMAINTAINERS: Add maintainer for extension board support
Kory Maincent (TI.com) [Thu, 30 Oct 2025 16:44:54 +0000 (17:44 +0100)] 
MAINTAINERS: Add maintainer for extension board support

Add myself as maintainer for the extension board support that was
originally added to track ongoing development and maintenance.

Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
5 days agoMerge tag 'u-boot-rockchip-20251101' of https://source.denx.de/u-boot/custodians...
Tom Rini [Sun, 2 Nov 2025 17:00:03 +0000 (11:00 -0600)] 
Merge tag 'u-boot-rockchip-20251101' of https://source.denx.de/u-boot/custodians/u-boot-rockchip

CI: https://source.denx.de/u-boot/custodians/u-boot-rockchip/-/pipelines/28119
- New Boards support:
    rk3588: MNT Reform2
    rk3528: Radxa ROCK 2A/2F
    rk3576: ArmSoM Sige1, Luckfox Omni3576, FriendlyElec NanoPi M5,
            Radxa ROCK 4D
    rk3568: Lunzn FastRhino R66S
- Other board level updates.

5 days agommc: rockchip_sdhci: Set xx_TAP_VALUE for RK3528
Jonas Karlman [Mon, 14 Jul 2025 20:34:07 +0000 (20:34 +0000)] 
mmc: rockchip_sdhci: Set xx_TAP_VALUE for RK3528

eMMC erase and write support on RK3528 is somewhat unreliable, sometime
e.g. mmc erase and write commands will fail with an error.

Use the delay line lock value for half card clock cycle, DLL_LOCK_VALUE,
to set a manual xx_TAP_VALUE to fix the unreliable eMMC support.

This is only enabled for RK3528, remaining SoCs still use the automatic
tap value, (DLL_LOCK_VALUE * 2) % 256, same value we configure manually
for RK3528.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: Ensure env in SPI Flash can work correctly
Jonas Karlman [Sat, 12 Jul 2025 21:27:07 +0000 (21:27 +0000)] 
rockchip: Ensure env in SPI Flash can work correctly

Ensure that the spi/sfc node for SPI flash is aviliable during pre-reloc
phase so that env can successfully be loaded from SPI Flash.

No boards with these SoCs seem to be affected as there is no default use
of ENV_IS_IN_SPI_FLASH=y.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: spl-boot-order: Defer probe of boot device
Jonas Karlman [Sat, 12 Jul 2025 21:12:29 +0000 (21:12 +0000)] 
rockchip: spl-boot-order: Defer probe of boot device

Boot devices are being probed when SPL boot order is determined. This
may delay boot slightly and can prevent booting from SPI Flash on boards
that use same pins for SPI Flash and eMMC due to pinctrl being applied
prior to booting.

Instead defer probe of the boot device until SPL try to load image from
the boot device by using uclass_find_device_by_of_offset() instead of
the get variant.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
5 days agoboard: rockchip: Add support for rk3588 MNT Reform2
Peter Robinson [Fri, 26 Sep 2025 16:29:56 +0000 (17:29 +0100)] 
board: rockchip: Add support for rk3588 MNT Reform2

Add support for MNT Reform2, it works as a carrier board
with a Firefly iCore-3588Q SoM.

Specification:
- Rockchip RK3588
- LPDDR5X 16/32 GB
- eMMC 128/256 GB
- HDMI Type A out x 1
- USB 3.0 Host x 1
- USB-C 3.0 with DisplayPort AltMode
- PCIE M.2 E Key for Wireless connection
- PCIE M.2 M Key for NVME connection
- DSI to eDP panel
- 1Gb Ethernet w/ Microchip KSZ9310 PHY

Tested using Fedora boot on USB stick and eMMC.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agoboard: rockchip: add Lunzn FastRhino R66S
Tianling Shen [Mon, 8 Sep 2025 11:32:18 +0000 (19:32 +0800)] 
board: rockchip: add Lunzn FastRhino R66S

Lunzn Fastrhino R66S is a high-performance mini router.

Specification:
- Rockchip RK3568
- 1/2GB LPDDR4 RAM
- SD card slot
- 2x USB 3.0 Port
- 2x 2500 Base-T (PCIe, r8125b)
- 12v DC Jack

Signed-off-by: Tianling Shen <cnsztl@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agoboard: rockchip: Fix RG353M model renaming
David Barbion [Wed, 10 Sep 2025 21:18:55 +0000 (23:18 +0200)] 
board: rockchip: Fix RG353M model renaming

Anbernic RG353M is hardware compatible with RG353P. Only the form-factor
differs. So only one DTS is created for both machines with
"Anbernic RG353P" as default model. If a RG353M is detected, the model
should be overwritten with the correct name.
Actually, it's overwritten with "Anbernic" only making the process of
machine detection a little harder.
However, to determine the size of the string "Anbernic RG353M", it is
sizeof() which is used resulting in obtaining the size of the pointer
(which is 8 bytes on ARM64) not the size of the pointed string.
strlen() should be used instead.

Signed-off-by: David Barbion <davidb@230ruedubac.fr>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: imply most symbols for ARCH_ROCKCHIP
Quentin Schulz [Wed, 29 Oct 2025 11:34:25 +0000 (12:34 +0100)] 
rockchip: imply most symbols for ARCH_ROCKCHIP

Forcing all those symbols on means we cannot make the binary smaller or
with unnecessary features or drivers disabled. This is especially useful
for security, auditing and certification where less code built means
less to look at (and less surface attack) and less to patch, but also
for making binary images smaller which typically means faster boot.

It is possible to have boards without MMC, NAND or SPI flashes, without
anything on SPI or I2C buses, nothing to control over PWM or GPIO or for
which we have no interest in regulator control or serial output so make
it possible to remove all that if desired.

No intended change in default selected symbols.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
5 days agobinman: btool: mkimage: fix Bintoolmkimage.run() method docstring
Quentin Schulz [Wed, 29 Oct 2025 11:30:36 +0000 (12:30 +0100)] 
binman: btool: mkimage: fix Bintoolmkimage.run() method docstring

Commit 65e2c14d5a5a ("binman: btool: mkimage: use Bintool.version")
removed the version argument from the run method but forgot to remove it
from the method docstring, so let's fix this oversight.

Fixes: 65e2c14d5a5a ("binman: btool: mkimage: use Bintool.version")
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: spl_common: fix TIMER_FMODE constant
Quentin Schulz [Tue, 28 Oct 2025 16:57:37 +0000 (17:57 +0100)] 
rockchip: spl_common: fix TIMER_FMODE constant

The free running mode is 0 at bit offset 1. User mode is 1 at bit offset
1. Currently, free running mode is 1 at offset 0, which is already the
case thanks to TIME_EN.

So, this essentially does not change the actual value written to the
register as it is TIME_EN | TIMER_FMODE which currently is 0x1 | BIT(0)
= 0b1, and will become 0x1 | (0 << 1) = 0b1.

I checked PX30, RK3128, RK3188, RK3228, RK3288, RK3308, RK3328, RK3368
RK3506, RK3562 and RK3568 TRMs.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: rk3399: fix TIMER_FMODE constant
Quentin Schulz [Tue, 28 Oct 2025 16:57:36 +0000 (17:57 +0100)] 
rockchip: rk3399: fix TIMER_FMODE constant

The free running mode is 0 at bit offset 1. User mode is 1 at bit offset
1. Currently, free running mode is 1 at offset 0, which is already the
case thanks to TIME_EN.

So, this essentially does not change the actual value written to the
register as it is TIME_EN | TIMER_FMODE which currently is 0x1 | BIT(0)
= 0b1, and will become 0x1 | (0 << 1) = 0b1.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: rk3036: use rockchip_stimer_init from spl_common.o
Quentin Schulz [Tue, 28 Oct 2025 16:57:35 +0000 (17:57 +0100)] 
rockchip: rk3036: use rockchip_stimer_init from spl_common.o

The only difference with the implementation in spl_common.c is that we
check whether the timer has already been enabled. Considering this is
running in SPL, the first stage on RK3036, I feel like it's guaranteed
to not be enabled by default. No public TRM though and I don't have
access to an RK3036 device so take this as a guess.

Size of SPL binary increases by 8B for evb-rk3036.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: px30: use rockchip_stimer_init from spl_common.o for TPL
Quentin Schulz [Tue, 28 Oct 2025 16:57:34 +0000 (17:57 +0100)] 
rockchip: px30: use rockchip_stimer_init from spl_common.o for TPL

Instead of redefining what is essentially the same code in
secure_timer_init, let's simply use rockchip_stimer_init from
spl_common.o instead.

This increases the size of the TPL by 16B, due to the added check of
STIMER already being enabled. Experimentally, STIMER is not already
enabled when in TPL.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agoboard: rockchip: Add ArmSoM Sige1
Jonas Karlman [Sun, 19 Oct 2025 20:58:39 +0000 (20:58 +0000)] 
board: rockchip: Add ArmSoM Sige1

The Sige1 is a single board computer developed by ArmSoM, based on the
Rockchip RK3528A SoC.

Add support for the ArmSoM Sige1 board.

Features tested on a ArmSoM Sige1 v1.1:
- SD-card boot
- eMMC boot
- Ethernet
- USB host (with pending DT changes)

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agoarm64: dts: rockchip: Add ArmSoM Sige1
Jonas Karlman [Sun, 19 Oct 2025 20:58:38 +0000 (20:58 +0000)] 
arm64: dts: rockchip: Add ArmSoM Sige1

The Sige1 is a single board computer developed by ArmSoM, based on the
Rockchip RK3528A SoC.

Add initial device tree for the ArmSoM Sige1 board.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Link: https://lore.kernel.org/r/20250717103720.2853031-5-jonas@kwiboo.se
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
[ upstream commit: 1c6b12ef9575bc18dad2393e50ca1ebf96f0a0c8 ]

(cherry picked from commit 3ba04aa78ba71faab4a339f5ab15bc81a3e0a51b)
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agoboard: rockchip: Add Radxa ROCK 2A/2F
Jonas Karlman [Sun, 19 Oct 2025 20:58:37 +0000 (20:58 +0000)] 
board: rockchip: Add Radxa ROCK 2A/2F

The ROCK 2 Family is a high-performance SBC (Single Board Computer)
developed by Radxa, based on the Rockchip RK3528A.

The Radxa E20C shares some board characteristics with the ROCK 2 family
boards.

Add support for the ROCK 2A and 2F boards. The radxa-e20c-rk3528 target
is also extended to support booting ROCK 2 boards.

Features tested on a ROCK 2A v1.202:
- SD-card boot
- Ethernet
- USB host (with pending DT changes)

Features tested on a ROCK 2F v1.016:
- SD-card boot
- eMMC boot
- USB host (with pending DT changes)

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agoarm64: dts: rockchip: Add Radxa ROCK 2A/2F
Jonas Karlman [Sun, 19 Oct 2025 20:58:36 +0000 (20:58 +0000)] 
arm64: dts: rockchip: Add Radxa ROCK 2A/2F

The ROCK 2A and ROCK 2F is a high-performance single board computer
developed by Radxa, based on the Rockchip RK3528A SoC.

Add initial device tree for the Radxa ROCK 2A and ROCK 2F boards.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Tested-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Tested-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Link: https://lore.kernel.org/r/20250717103720.2853031-3-jonas@kwiboo.se
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
[ upstream commit: 5b71b3d9aa61626d6a93ed2f761a748aa2ecfa95 ]

(cherry picked from commit d272bc0c747a5af49cf98140ebd25a702f84ab52)
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agoboard: rockchip: Add FriendlyElec NanoPi M5
Jonas Karlman [Sun, 19 Oct 2025 16:50:51 +0000 (16:50 +0000)] 
board: rockchip: Add FriendlyElec NanoPi M5

FriendlyElec NanoPi M5 with Rockchip RK3576 SoC (4x Cortex-A72,
4x Cortex-A53, Mali-G52 MC3 GPU, 6 TOPS NPU).

Features tested on a NanoPi M5 2411:
- SD-card boot
- SPI flash boot
- Ethernet
- LEDs
- PCIe/NVMe
- USB HOST/OTG
- USER button

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agoboard: rockchip: Add Luckfox Omni3576
Jonas Karlman [Sun, 19 Oct 2025 16:50:50 +0000 (16:50 +0000)] 
board: rockchip: Add Luckfox Omni3576

Luckfox Omni3576 Carrier Board with Core3576 Module, powered by the
Rockchip RK3576 SoC with four Cortex-A72 cores, four Cortex-A53 cores,
and a Mali-G52 MC3 GPU.

Features tested with a Core3576 Rev1.1 on a Omni3576 carrier board:
- SD-card boot
- eMMC boot
- LED
- PCIe/NVMe
- USB2.0 HOST

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agoboard: rockchip: Add Radxa ROCK 4D
Jonas Karlman [Sun, 19 Oct 2025 15:47:19 +0000 (15:47 +0000)] 
board: rockchip: Add Radxa ROCK 4D

The Radxa ROCK 4D is a compact single-board computer (SBC) featuring
numerous top-tier functions, features, and expansion options.

Equipped with the Rockchip RK3576 or RK3576J SoC, the ROCK 4D boasts an
octa-core CPU (4x Cortex-A72 + 4x Cortex-A53), Mali-G52 GPU, and a
powerful 6 TOPS NPU, making it ideal for AI and multimedia tasks.

Features tested on a Radxa ROCK 4D v1.112:
- SPI Flash boot
- Ethernet
- PCIe/NVMe
- USB host

ROCK 4D boards with SPI Flash is configured to boot from FSPI0->UFS->USB,
or directly from USB when the MASKROM button is pressed, booting
directly from SD-card is not possible on these boards.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: rk3576: Add SPI Flash boot support
Jonas Karlman [Sun, 19 Oct 2025 15:47:18 +0000 (15:47 +0000)] 
rockchip: rk3576: Add SPI Flash boot support

The bootsource ids reported by BootROM of RK3576 for SPI NOR and USB
differs slightly compared to prior SoCs:

- Booting from sfc0 (ROCK 4D) report the normal bootsource id 0x3.
- Booting from sfc1 M1 (NanoPi M5) report a new bootsource id 0x23.
- Booting from sfc1 M0 has not been tested (no board using this config).
- Booting from USB report a new bootsource id 0x81.

Add a RK3576 specific read_brom_bootsource_id() function to help decode
the new bootsource id values and the required boot_devices mapping of
sfc0 and sfc1 to help support booting from SPI flash on RK3576.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: rk3528: Implement read_brom_bootsource_id()
Jonas Karlman [Sun, 19 Oct 2025 15:47:17 +0000 (15:47 +0000)] 
rockchip: rk3528: Implement read_brom_bootsource_id()

The bootsource ids reported by BootROM of RK3528 for e.g. USB differs
compared to prior SoCs:

- Booting from USB report a new bootsource id 0x81.

Add a RK3528 specific read_brom_bootsource_id() function to help decode
this new bootsource id value to help support booting from USB on RK3528.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: spl: Add a read_brom_bootsource_id() helper
Jonas Karlman [Sun, 19 Oct 2025 15:47:16 +0000 (15:47 +0000)] 
rockchip: spl: Add a read_brom_bootsource_id() helper

The bootsource ids reported by BootROM of RK3528 and RK3576 for e.g.
SPI NOR and USB differs slightly compared to prior SoCs:

- Booting from sfc0 (ROCK 4D) report the normal bootsource id 0x3.
- Booting from sfc1 M1 (NanoPi M5) report a new bootsource id 0x23.
- Booting from sfc1 M0 has not been tested (no board using this config).
- Booting from USB report a new bootsource id 0x81 on RK3528 and RK3576.

Add a helper function to read the bootsource id. This helper function
will be used to translate the new values to the common BROM_BOOTSOURCE
enum values on RK3528 and RK3576.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agospi: rockchip_sfc: Support sclk_x2 version
Jon Lin [Sun, 19 Oct 2025 15:47:15 +0000 (15:47 +0000)] 
spi: rockchip_sfc: Support sclk_x2 version

SFC after version 8 supports dtr mode, so the IO is the binary output of
the controller clock.

Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: rk3528-radxa-e20c: Drop eMMC HS200 prop from board u-boot.dtsi
Jonas Karlman [Sun, 19 Oct 2025 11:13:54 +0000 (11:13 +0000)] 
rockchip: rk3528-radxa-e20c: Drop eMMC HS200 prop from board u-boot.dtsi

The commit f8cb3fde935e ("arm: dts: rockchip: Fix eMMC write on RK3528")
added a missing mmc-hs200-1_8v prop to boart u-boot.dtsi.

Remove this boart u-boot.dtsi mmc-hs200-1_8v prop now that the board dt
from dts/upstream after the v6.17-dts sync includes this prop.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agoarm: dts: rockchip: Include OTP in U-Boot pre-reloc phase for RK3326
Jonas Karlman [Sun, 31 Aug 2025 16:49:35 +0000 (16:49 +0000)] 
arm: dts: rockchip: Include OTP in U-Boot pre-reloc phase for RK3326

Update rk3326-u-boot.dtsi to include OTP in U-Boot pre-reloc phase for
checkboard() to be able to read information about the running SoC model
and variant from OTP and print it during boot:

  U-Boot 2025.07 (Jul 13 2025 - 10:07:16 +0000)

  Model: ODROID-GO Super
  SoC:   RK3326
  DRAM:  1 GiB (total 1022 MiB)

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: odroid-go2: Add myself as a reviewer
Jonas Karlman [Sun, 31 Aug 2025 16:49:34 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Add myself as a reviewer

I have the ORDOID-GO Super variant of this board. Add myself as a
reviewer to help review future patches targeting this device.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: odroid-go2: Enable more commands
Jonas Karlman [Sun, 31 Aug 2025 16:49:33 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Enable more commands

Enable the default commands and some more useful commands that can be
useful to determin the state of the board from U-Boot CLI.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: odroid-go2: Turn on the blue LED at boot
Jonas Karlman [Sun, 31 Aug 2025 16:49:32 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Turn on the blue LED at boot

Use default-state prop to ensure that the blue heartbeat LED turns on
at boot to inticate that U-Boot proper has been reached.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: odroid-go2: Enable RockUSB, button, LED and RNG support
Jonas Karlman [Sun, 31 Aug 2025 16:49:31 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Enable RockUSB, button, LED and RNG support

Enable Kconfig options to support RockUSB, buttons, LEDs and RNG
featured on the board or SoC.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: odroid-go2: Use env from same storage FIT was loaded from
Jonas Karlman [Sun, 31 Aug 2025 16:49:30 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Use env from same storage FIT was loaded from

Change to dynamically select what storage media to use for the U-Boot
environment depending on from what storage media the FIT images was
loaded from, fall back to use env from nowhere.

  U-Boot SPL 2025.07 (Jul 13 2025 - 10:07:16 +0000)
  Trying to boot from MMC1
  ...
  Loading Environment from MMC... Reading from MMC(0)...

or

  U-Boot SPL 2025.07 (Jul 13 2025 - 10:07:16 +0000)
  Trying to boot from SPI
  ...
  Loading Environment from SPIFlash...

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
5 days agorockchip: odroid-go2: Select board FDT from FIT in SPL
Jonas Karlman [Sun, 31 Aug 2025 16:49:29 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Select board FDT from FIT in SPL

Include FDTs for all three board variants in the FIT image and adjust
the board selection code to use correct FDT in U-Boot proper.

E.g. use the odroid-go3 DT for a ODROID-GO Super device:

  U-Boot 2025.07 (Jul 13 2025 - 10:07:16 +0000)

  Model: ODROID-GO Super
  DRAM:  1 GiB (total 1022 MiB)
  PMIC:  RK817 (on=0x80, off=0x08)

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
6 days agorockchip: odroid-go2: Add support for SPI flash boot
Jonas Karlman [Sun, 31 Aug 2025 16:49:28 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Add support for SPI flash boot

The ODROID GO2 devices come with onboard SPI flash, add support for
using the SPI flash.

The BootROM seem to expect the IDBlock at 64 KiB offset compared to the
typical 32 KiB offset from start of SPI flash used by other SoCs.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
6 days agorockchip: odroid-go2: Use power off at power plug-in event
Jonas Karlman [Sun, 31 Aug 2025 16:49:27 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Use power off at power plug-in event

Include the RK817 PMIC in SPL and enable Kconfig options to power off
the handheld gaming device when it was powered on due to a power cable
plug-in event:

  DDR3, 333MHz
  BW=32 Col=10 Bk=8 CS0 Row=15 CS=1 Die BW=16 Size=1024MB
  out
  Power Off due to plug-in event

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
6 days agorockchip: odroid-go2: Include pinctrl for sdmmc, sfc and uart in SPL
Jonas Karlman [Sun, 31 Aug 2025 16:49:26 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Include pinctrl for sdmmc, sfc and uart in SPL

Include pinctrl nodes and props for sdmmc, sfc and uart in SPL to ensure
pins are configured according to the device tree.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
6 days agorockchip: odroid-go2: Update Kconfig options for SPL
Jonas Karlman [Sun, 31 Aug 2025 16:49:25 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Update Kconfig options for SPL

Drop SPL_DRIVERS_MISC, it is not needed/used on these devices.

Enable SPL_FIT_SIGNATURE to ensure the integrity of the FIT images
that are loaded into memory.

Change SPL_MAX_SIZE to 256 KiB, similar to other SoCs where TF-A is
loaded at 0x40000 offset from start of DRAM.

Enable SPL_DM_SEQ_ALIAS to ensure device aliases are applied in SPL.

Drop use of SPL_TINY_MEMSET, there is plenty room for the normal memset.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
6 days agorockchip: odroid-go2: Remove unsupported Kconfig options
Jonas Karlman [Sun, 31 Aug 2025 16:49:24 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Remove unsupported Kconfig options

The handheld gaming devices that this defconfig tagets does not contain
an Ethernet port, remove Ethernet related Kconfig options.

They also do not contain any pwm-regulator in their DTs, remove the
PWM regulator related Kconfig option.

Display/video is not supported in U-Boot, remove all display/video
related Kconfig options.

There is no real functional change expected with these options removed.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
6 days agorockchip: odroid-go2: Move SoC common overrides into a SoC u-boot.dtsi
Jonas Karlman [Sun, 31 Aug 2025 16:49:23 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Move SoC common overrides into a SoC u-boot.dtsi

Add a new common rk3326-u-boot.dtsi and move the SoC common overrides
into it.

This should not contain any changes other than a possible reorder of
nodes and props.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
6 days agorockchip: odroid-go2: Use appropriate bootph props
Jonas Karlman [Sun, 31 Aug 2025 16:49:22 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Use appropriate bootph props

GPIO devices are needed in U-Boot proper phase, sdmmc and sfc devices
are needed in SPL and pre-reloc phase.

Update bootph- props to match what boot phase devices are needed at.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
6 days agorockchip: odroid-go2: Remove u-boot.dtsi props already defined
Jonas Karlman [Sun, 31 Aug 2025 16:49:21 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Remove u-boot.dtsi props already defined

DTs from dts/upstream already contain aliases for i2c, mmc and serial.

Remove the aliases and status=okay that are already defined in upstream
board or SoC DT.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
6 days agorockchip: odroid-go2: Remove incorrect re-defined spi0 alias
Jonas Karlman [Sun, 31 Aug 2025 16:49:20 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Remove incorrect re-defined spi0 alias

The alias spi0 is incorrectly being re-defined in board u-boot.dtsi to
the SPI flash controller instead of the actual spi0 controller.

SPI flash support is currently not working on odroid-go2 due to missing
Kconfig options and other required device tree changes.

Remove the re-defined alias for spi0 to allow use of the real spi0,
proper SPI flash support is introduced in a later patch.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
6 days agorockchip: odroid-go2: Remove cru assigned-clocks override
Jonas Karlman [Sun, 31 Aug 2025 16:49:19 +0000 (16:49 +0000)] 
rockchip: odroid-go2: Remove cru assigned-clocks override

Remove the cru assigned-clocks override now that SCLK_GPU is supported
by the clock driver.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
6 days agoclk: px30: Allow use of GPU and WIFI_PMU in assigned-clocks
Jonas Karlman [Sun, 31 Aug 2025 16:49:18 +0000 (16:49 +0000)] 
clk: px30: Allow use of GPU and WIFI_PMU in assigned-clocks

Add dummy implementation of set_rate for SCLK_GPU and SCLK_WIFI_PMU to
allow use of dts/upstream assigned-clocks in cru and pmucru nodes.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
7 days agoMerge tag 'u-boot-imx-master-20251030' of https://gitlab.denx.de/u-boot/custodians...
Tom Rini [Fri, 31 Oct 2025 13:53:16 +0000 (07:53 -0600)] 
Merge tag 'u-boot-imx-master-20251030' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx

CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/28092

- Fix a i.MX6ULL regression related to the REFTOP_VBGADJ setting.
- Shrink SPL size for the Liebherr BTT board.
- Add suppot for Toradex SMARC iMX95.
- Fix Aquila imx95 0098 Product ID.

8 days agobus: ti-sysc: select CLK driver
Yegor Yefremov [Thu, 23 Oct 2025 17:54:08 +0000 (19:54 +0200)] 
bus: ti-sysc: select CLK driver

ti-sysc.c includes clk.h and requires its functionality to
manage clocks.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
8 days agoMerge tag 'qcom-for-2026.01-rc2' of https://source.denx.de/u-boot/custodians/u-boot...
Tom Rini [Thu, 30 Oct 2025 14:03:02 +0000 (08:03 -0600)] 
Merge tag 'qcom-for-2026.01-rc2' of https://source.denx.de/u-boot/custodians/u-boot-snapdragon

A variety of Qualcomm features/fixes for this cycle, notably with a few
new platforms gaining support:

* Initial support for SDM670 (similar to SDM845), SM6350, and SM7150
  platforms is added
* USB and UART issues on MSM8916 are addressed (improving stability/
  reliability)
* Firmware loading is implemented for the GENI serial engine, this is
  used on some platforms to load firmware for i2c/spi/uart to work

Some additional patches like binman support for building MBN files still
need some additional work.

CI: https://source.denx.de/u-boot/custodians/u-boot-snapdragon/-/commit/8ef6ac07b35e39a57501554680bbf452e818d3e3/pipelines?ref=qcom-main

8 days agousb: gadget: Introduce usb gadget vendor/product default id for ARCH_QCOM
George Chan [Mon, 20 Oct 2025 16:23:59 +0000 (00:23 +0800)] 
usb: gadget: Introduce usb gadget vendor/product default id for ARCH_QCOM

Currently vendor/product id are both 0, and that might not as we want.
Set to some arbitrary known value that we can make it work more smoothly.

Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Acked-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: George Chan <gchan9527@gmail.com>
Link: https://patch.msgid.link/20251021-sc7180-minor-v1-2-9fe33c73365e@gmail.com
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
8 days agoiommu: qcom-smmu: Introduce sc7180 compatible string
George Chan [Mon, 20 Oct 2025 16:23:58 +0000 (00:23 +0800)] 
iommu: qcom-smmu: Introduce sc7180 compatible string

Add basic compatible string for sc7180 family soc.

Signed-off-by: Vitalii Skorkin <nikroks@mainlining.org>
Co-developed-by: George Chan <gchan9527@gmail.com>
Signed-off-by: George Chan <gchan9527@gmail.com>
Reviewed-by: Casey Connolly <casey.connolly@linaro.org>
Link: https://patch.msgid.link/20251021-sc7180-minor-v1-1-9fe33c73365e@gmail.com
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
8 days agousb: host: ehci-msm: Register ULPI PHY through NOP wrapper
Stephan Gerhold [Mon, 7 Apr 2025 09:54:26 +0000 (11:54 +0200)] 
usb: host: ehci-msm: Register ULPI PHY through NOP wrapper

The UCLASS_USB device is removed and rebound each time you run "usb stop"
followed by "usb start", or when you switch between USB device and USB host
mode. Unfortunately, this causes issues with the current ehci-msm driver:

In ehci_usb_remove() we call generic_shutdown_phy(), but at that point the
ULPI PHY we registered in ehci_usb_of_bind() was already removed again by
the DM core.

Fix this by adding a UCLASS_NOP driver that keeps the PHY driver bound
permanently, and then just re-probe the actual USB part.

Reported-by: Jianfeng Zhu <JianfengA.Zhu@sony.com>
Closes: https://lore.kernel.org/u-boot/OSQPR04MB774067EBEEADD714EFE18C2A90882@OSQPR04MB7740.apcprd04.prod.outlook.com/
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Acked-by: Caleb Connolly <caleb.connolly@linaro.org>
Tested-by: Sam Day <me@samcday.com>
Link: https://patch.msgid.link/20250407-ehci-msm-fixes-v1-6-f8b30eb05d07@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
8 days agousb: host: ehci-msm: Drop redundant EHCI register writes
Stephan Gerhold [Mon, 7 Apr 2025 09:54:25 +0000 (11:54 +0200)] 
usb: host: ehci-msm: Drop redundant EHCI register writes

ehci_unregister() already clears the CMD_RUN bit with more careful checks.
It also ensures that we only do this in case we were actually in USB host
(rather than USB device) mode. It's not clear what the extra register
writes in the Qualcomm-specific ehci-msm driver are supposed to do, so just
drop them.

Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Acked-by: Caleb Connolly <caleb.connolly@linaro.org>
Tested-by: Sam Day <me@samcday.com>
Link: https://patch.msgid.link/20250407-ehci-msm-fixes-v1-5-f8b30eb05d07@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
8 days agousb: host: ehci-msm: Use clk bulk helpers
Stephan Gerhold [Mon, 7 Apr 2025 09:54:24 +0000 (11:54 +0200)] 
usb: host: ehci-msm: Use clk bulk helpers

The enable order for the clocks does not matter much, we just need to
enable all the USB clocks. Use the clk bulk helpers to simplify the code.

Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Acked-by: Caleb Connolly <caleb.connolly@linaro.org>
Tested-by: Sam Day <me@samcday.com>
Link: https://patch.msgid.link/20250407-ehci-msm-fixes-v1-4-f8b30eb05d07@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
8 days agousb: host: ehci-msm: Disable clocks after all register accesses
Stephan Gerhold [Mon, 7 Apr 2025 09:54:23 +0000 (11:54 +0200)] 
usb: host: ehci-msm: Disable clocks after all register accesses

We need the USB clocks to do accesses like
  wait_for_bit_le32(&ehci->usbcmd, CMD_RESET, ...)
so we should disable them only after all of them are done.

At the moment this works only because the clock driver doesn't actually
disabling these clocks in U-Boot.

Fixes: 9b3a9f896e66 ("ehci: msm: bring up iface + core clocks")
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Acked-by: Caleb Connolly <caleb.connolly@linaro.org>
Tested-by: Sam Day <me@samcday.com>
Link: https://patch.msgid.link/20250407-ehci-msm-fixes-v1-3-f8b30eb05d07@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
8 days agousb: host: echi-msm: Drop ulpi definitions
Stephan Gerhold [Mon, 7 Apr 2025 09:54:22 +0000 (11:54 +0200)] 
usb: host: echi-msm: Drop ulpi definitions

These are unused.

Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Acked-by: Caleb Connolly <caleb.connolly@linaro.org>
Tested-by: Sam Day <me@samcday.com>
Link: https://patch.msgid.link/20250407-ehci-msm-fixes-v1-2-f8b30eb05d07@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
8 days agousb: host: ehci-msm: Fix pointer check
Stephan Gerhold [Mon, 7 Apr 2025 09:54:21 +0000 (11:54 +0200)] 
usb: host: ehci-msm: Fix pointer check

dev_read_addr_ptr() returns a null pointer on error, not FDT_ADDR_T_NONE.

Fixes: 2be1130a9305 ("usb: ehci-msm: Use dev interface to get device address")
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Acked-by: Caleb Connolly <caleb.connolly@linaro.org>
Tested-by: Sam Day <me@samcday.com>
Link: https://patch.msgid.link/20250407-ehci-msm-fixes-v1-1-f8b30eb05d07@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
8 days agoconfigs: qcom_*: enable QCOM_GENI where needed
Casey Connolly [Mon, 14 Jul 2025 13:13:19 +0000 (15:13 +0200)] 
configs: qcom_*: enable QCOM_GENI where needed

Enable the GENI MISC driver which is required for many Qualcomm
platforms.

Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
Link: https://patch.msgid.link/20250714-geni-load-fw-v5-8-5abbc0d29838@linaro.org
Signed-off-by: Casey Connolly <kcxt@postmarketos.org>
8 days agoserial: msm-geni: implement firmware loading
Casey Connolly [Mon, 14 Jul 2025 13:13:18 +0000 (15:13 +0200)] 
serial: msm-geni: implement firmware loading

Teach the GENI UART driver to load firmware, similar to i2c.

This is primarily intended for non-debug UARTs, but since we don't
support using these as the console we abort probe for now.

Remove duplicated register macros that are in the common geni-se header.

Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
Link: https://patch.msgid.link/20250714-geni-load-fw-v5-7-5abbc0d29838@linaro.org
Signed-off-by: Casey Connolly <kcxt@postmarketos.org>
8 days agoserial: msm-geni: Enable SE clk in probe
Stephen Boyd [Mon, 14 Jul 2025 13:13:17 +0000 (15:13 +0200)] 
serial: msm-geni: Enable SE clk in probe

Enable the serial engine clk in probe so that this driver can work on
platforms that don't already initialize the clk for this device before
this driver runs. This fixes a problem I see on Coreboot platforms like
Trogdor where the UART hardware isn't enabled by coreboot unless the
serial console build is used.

Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://patch.msgid.link/20250714-geni-load-fw-v5-6-5abbc0d29838@linaro.org
Signed-off-by: Casey Connolly <kcxt@postmarketos.org>
8 days agoclk/qcom: sc7280: add uart5 and uart7 clocks
Casey Connolly [Mon, 14 Jul 2025 13:13:16 +0000 (15:13 +0200)] 
clk/qcom: sc7280: add uart5 and uart7 clocks

Allow us to power up UART7 so we can load the QUP firmware, this is used
for bluetooth on RB3 Gen 2 and possibly other boards.

Additionally add the UART5 clocks so we can adjust baud rate for UART

Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
Link: https://patch.msgid.link/20250714-geni-load-fw-v5-5-5abbc0d29838@linaro.org
Signed-off-by: Casey Connolly <kcxt@postmarketos.org>
8 days agoi2c: geni: load firmware if required
Casey Connolly [Mon, 14 Jul 2025 13:13:15 +0000 (15:13 +0200)] 
i2c: geni: load firmware if required

Load firmware for the peripheral if necessary.

Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20250714-geni-load-fw-v5-4-5abbc0d29838@linaro.org
Signed-off-by: Casey Connolly <kcxt@postmarketos.org>