Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9096ECCF9E3 for ; Thu, 30 Oct 2025 16:45:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1EC1C838D7; Thu, 30 Oct 2025 17:45:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="PMjCHkPq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 077DB838C7; Thu, 30 Oct 2025 17:45:13 +0100 (CET) Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 21C388334F for ; Thu, 30 Oct 2025 17:45:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kory.maincent@bootlin.com Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 0B83CC0DABA; Thu, 30 Oct 2025 16:44:49 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 7867360331; Thu, 30 Oct 2025 16:45:09 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 126021180809D; Thu, 30 Oct 2025 17:45:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1761842708; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=Ytba8Jr1PPuqxKXkOQQy3wO0RYo1szjb+BqdAyQoH4s=; b=PMjCHkPq63MiFRr3N+hYdULfib2k0qIcxXmeqaAbL18oovHHlvBzMH+PBSC9qm/+KHHmfc qtajDbqTlRc9km95M3gECwpVK5xz1WcVhoixwKkkIDKdWcQP/8DeAigv7PkxCEBlRS0u99 FxHTKgvgB2S9nAKjuUx9e9KAMBwcf1hrDMXtrApbCrWLYVj0UYTTIs2fF/oUIEqh6bBp22 6TrHeVUWBqhjPb1AzLRuwLN6coVpLSIuR9P1SgMyGYa/Nld2ARkxz7fGeipz6Pf6tZmZWE ebPIDmS1hm6I/ZYtl3kT0U08RnSgvytn4xwhGFKGWIJB5n8yJs9439CT/jgKcQ== From: "Kory Maincent (TI.com)" Subject: [PATCH v5 00/20] Convert extension support to UCLASS and adds its support to boot flows Date: Thu, 30 Oct 2025 17:44:53 +0100 Message-Id: <20251030-feature_sysboot_extension_board-v5-0-cfb77672fc68@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAAWWA2kC/43OwWrDMAwG4FcpPs9Dlq3E3mnvMUaIa2U1bPGws 9BS8u5zcsqgkB1/IX2/7qJwjlzEy+kuMs+xxDTWQE8ncb704wfLGGoWCEjgVCMH7qefzF25FZ/ S1PF14nG96nzqc5CObAgALVJDoirfmYd43Rre3mu+xDKlfNsKZ7VON1sB6EN7VhKkIeutHyxpp Nd17TOOz+f0JVZ9xr3ojkWsIoPz2jGZwA9EvRPVP37UVQQDTetbg9g/EM1ORDwWTRUDGk88tN4 09q+4LMsvPj7iw8YBAAA= X-Change-ID: 20250916-feature_sysboot_extension_board-958dd0072565 To: Tom Rini , Simon Glass , Jagan Teki , Andre Przywara , Hans de Goede , Mario Six , Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" , "Ying-Chun Liu (PaulLiu)" Cc: Roger Quadros , Bajjuri Praneeth , Thomas Petazzoni , u-boot@lists.denx.de, "Kory Maincent (TI.com)" , Mattijs Korpershoek X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean 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. Changes in v5: - Change sandbox extension function build dependency to CONFIG_SUPPORT_DM_EXTENSION_SCAN and !CONFIG_XPL_BUILD. Changes in v4: - Update the bootstd tests, due to the removal of extension hunter. Changes in v3: - Reorder the patches inside the series as several config were broken in the middle of the series. - Use U_BOOT_DRVINFO macro instead of manually bind the drivers. - Use uclass_first_device_err instead of extension_get_dev function. - Made few fixes in documentation and Kconfig dependency. - Made few changes of error value returned. - Add a patch to document the extension structure. - Add a patch to fix CAPE_EEPROM_BUS_NUM Kconfig dependency Changes in v2: - Fixes few build errors. - Add patches to move the extension support and board scan out of XPL images build. Signed-off-by: Kory Maincent (TI.com) --- Kory Maincent (TI.com) (20): MAINTAINERS: Add maintainer for extension board support board: ti: Exclude cape detection from xPL builds board: ti: Fix CAPE_EEPROM_BUS_NUM Kconfig dependency board: sunxi: Exclude DIP detection from XPL builds board: compulab: Exclude compulab extension board detection from XPL builds include: extension_board: Document the extension structure boot: Move extension board support from cmd/ to boot/ boot: Add UCLASS support for extension boards board: ti: Refactor cape detection code for readability board: ti: Convert cape detection to use UCLASS framework board: sunxi: Refactor CHIP board extension code board: sunxi: Convert extension support to UCLASS framework board: sandbox: Improve extension board scan implementation board: sandbox: Convert extension support to UCLASS framework board: compulab: Convert imx8mm-cl-iot-gate to UCLASS extension framework boot: Remove legacy extension board support boot: extension: Move overlay apply custom logic to command level boot: pxe_utils: Add extension board devicetree overlay support boot: bootmeth_efi: Refactor distro_efi_try_bootflow_files return logic boot: bootmeth_efi: Add extension board devicetree overlay support MAINTAINERS | 9 + .../imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c | 70 ++++---- board/sandbox/sandbox.c | 29 ++-- board/sunxi/Makefile | 2 +- board/sunxi/chip.c | 36 ++-- board/ti/common/Kconfig | 2 +- board/ti/common/Makefile | 2 +- board/ti/common/cape_detect.c | 56 ++++--- boot/Kconfig | 4 + boot/Makefile | 1 + boot/bootmeth_efi.c | 79 +++++++-- boot/extension-uclass.c | 93 +++++++++++ boot/pxe_utils.c | 92 +++++++++++ cmd/Kconfig | 3 - cmd/extension_board.c | 183 ++++++++++----------- doc/usage/cmd/extension.rst | 29 ++-- doc/usage/pxe.rst | 4 + include/dm/uclass-id.h | 1 + include/extension_board.h | 86 ++++++++-- test/boot/bootdev.c | 32 ++-- test/boot/bootflow.c | 6 +- test/boot/bootstd_common.h | 4 +- 22 files changed, 565 insertions(+), 258 deletions(-) --- base-commit: 8e7f8c1248e8adfb525a2a4ea56ebf7e54ff5d7a change-id: 20250916-feature_sysboot_extension_board-958dd0072565 Best regards, -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com