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 56C58CD13D2 for ; Thu, 30 Apr 2026 22:33:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DDD4C839D5; Fri, 1 May 2026 00:33:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=netcube.li Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=netcube.li header.i=@netcube.li header.b="cbEScrOj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 37F5884198; Fri, 1 May 2026 00:33:42 +0200 (CEST) Received: from mail.netcube.li (mail.netcube.li [173.249.15.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EB187803C6 for ; Fri, 1 May 2026 00:33:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=netcube.li Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=lukas.schmid@netcube.li dkim-signature: v=1; a=rsa-sha256; d=netcube.li; s=s1; c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Transfer-Encoding; bh=Oix7W+arDWOCST+3FkOMa9fNzGS3fSv+lf1yFBPApFA=; b=cbEScrOjJujo81PLPnnGUAWAI8ZAcNVJqgwE0+CWbgy8rpUYZUQGUFjOMGlJGey0xCrtag/27frgKtVl/X806q0Smdhlh4KOYVub6OUj9HG8o0GU3JTXGQlfIgs4wd6wHoyT0HdaYl0luOK5KREHmCTyWk7PsiUL29jM9IZjL9k= Received: from lukas-hpz440workstation.lan.sk100508.local (193-80-178-216.hdsl.highway.telekom.at [193.80.178.216]) by mail.netcube.li with ESMTPA ; Fri, 1 May 2026 00:33:37 +0200 From: Lukas Schmid To: Andre Przywara , Tom Rini , Hans de Goede , Jerome Forissier Cc: Lukas Schmid , u-boot@lists.denx.de Subject: [PATCH v2 0/6] sunxi: add NetCube Nagami support and T113 secure boot enablement Date: Fri, 1 May 2026 00:32:59 +0200 Message-ID: <20260430223319.2663939-1-lukas.schmid@netcube.li> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 adds support for the NetCube Systems Nagami T113-based system-on-module and its associated carrier boards, along with the sunxi changes needed to boot signed FIT images from SPL in secure mode on R528/T113. The Nagami module is based on the Allwinner T113-S3/T113-S4 family and the included defconfigs cover the basic carrier, keypad carrier, and a secure boot example configuration for the basic carrier. To support the secure boot flow in SPL, the series adds the missing sunxi pieces for R528/T113: I2C3 pinmux support, early SPC setup for non-secure peripheral handoff, non-DM SPL FIT signature verification, and signed SPL image generation in the sunxi binman/FIT description. The SID MAC fallback handling is also cleaned up. The original fix used a board-level check for whether nvmem-cells were present in the DT. This version moves the fallback into the Ethernet drivers instead of env_setup, so the sunxi EMAC and DesignWare GMAC paths share a generic implementation. Changes in v2: - Add SID-derived read_rom_hwaddr support for SUN7I_GMAC through the DesignWare Ethernet driver. - Drop the board-local get_unique_sid() wrapper and call sunxi_get_unique_sid() directly. - Keep the sunxi SID MAC prototype out of designware.c block scope. Lukas Schmid (6): sunxi: move SID MAC fallback from board env setup to EMAC read_rom_hwaddr pinctrl: sunxi: add I2C3 mux for D1/T113-s3 (PG10/PG11) sunxi: add SPC setup for R528/T113 secure boot handoff boot: allow SPL FIT signature verification without DM sunxi: extend binman FIT description for signed SPL images sunxi: add support for NetCube Systems Nagami and associated carrier boards arch/arm/cpu/armv7/sunxi/Makefile | 1 + arch/arm/cpu/armv7/sunxi/spc.c | 20 ++++++ arch/arm/dts/sunxi-u-boot.dtsi | 68 +++++++++++++++++-- .../include/asm/arch-sunxi/cpu_sunxi_ncat2.h | 27 ++++++++ arch/arm/include/asm/arch-sunxi/sys_proto.h | 14 ++++ arch/arm/mach-sunxi/board.c | 1 + arch/arm/mach-sunxi/clock_sun50i_h6.c | 8 +++ arch/arm/mach-sunxi/cpu_info.c | 44 ++++++++++++ board/sunxi/board.c | 64 +---------------- boot/Kconfig | 1 - .../netcube_nagami_basic_carrier_defconfig | 43 ++++++++++++ ..._nagami_basic_carrier_secureboot_defconfig | 52 ++++++++++++++ .../netcube_nagami_keypad_carrier_defconfig | 43 ++++++++++++ drivers/net/designware.c | 20 ++++++ drivers/net/sun8i_emac.c | 15 ++++ drivers/net/sunxi_emac.c | 15 ++++ drivers/pinctrl/sunxi/pinctrl-sunxi.c | 1 + lib/rsa/rsa-verify.c | 16 +++-- 18 files changed, 380 insertions(+), 73 deletions(-) create mode 100644 arch/arm/cpu/armv7/sunxi/spc.c create mode 100644 configs/netcube_nagami_basic_carrier_defconfig create mode 100644 configs/netcube_nagami_basic_carrier_secureboot_defconfig create mode 100644 configs/netcube_nagami_keypad_carrier_defconfig -- 2.47.3