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 D99D8C4332F for ; Sun, 12 Nov 2023 10:29:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9CB43870E1; Sun, 12 Nov 2023 11:28:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se 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; secure) header.d=kwiboo.se header.i=@kwiboo.se header.b="jW6ZQ4K5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 22C9B87049; Sun, 12 Nov 2023 11:27:59 +0100 (CET) Received: from smtp.forwardemail.net (smtp.forwardemail.net [167.172.40.54]) (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 634E287083 for ; Sun, 12 Nov 2023 11:27:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=SRS0=face=GZ=kwiboo.se=jonas@fe-bounces.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1699784857; bh=bvcX+TtxUtkqdkmfbZDj6BvVepxLELGjBWZ5yCbo5u0=; b=jW6ZQ4K58yFD92Mn8ozs1A42nHF22cc44D+1lmQM2HlbL7vFyykZwnOKoLhtjVEpalzJqaUQQ 3GhjHrlgGB/3kdpnEg7qbfxyivZDBA5SWw57rjcO73dMXuo9Eb44Uh5qdjH5cv4MFhHzpmWf8w7 aizmyXNzKBXYiON1bJP5aBCXf3cAsRC89jM03mZimPtxk7yQxJEBvSFnlY7paXDFaVL4jJFgFg1 Z/+E9wL71LoJyUDTVIV6K0FfO8C13YUL93Qinmko1NrNvXODRVaeqD97T74n5tqhL5/mb21CZZC Hyr1PI8/i/appZyBihY6slvmYM0ijkwMIuBN//5M3Huw== From: Jonas Karlman To: Kever Yang , Simon Glass , Philipp Tomsich Cc: John Clark , Slawomir Stepien , u-boot@lists.denx.de, Jonas Karlman Subject: [PATCH 0/4] rockchip: rk3588: Fix SPI flash bootsource id values Date: Sun, 12 Nov 2023 10:26:56 +0000 Message-ID: <20231112102705.1180714-1-jonas@kwiboo.se> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 167.172.40.54 X-ForwardEmail-ID: 6550a898120265b21fb31b86 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 The commit fd6e425be243 ("rockchip: rk3588-rock-5b: Enable boot from SPI NOR flash") added a new BROM_BOOTSOURCE_SPINOR_RK3588 with value 6. At the time the reason for this new bootsource id value 6 was unknown. Since then the following bootsource id values have been observed on different RK3588 devices: - Radxa ROCK 5 Model A - fspim0_pins - rk3588s - Xunlong Orange Pi 5 - fspim0_pins - rk3588s brom_bootdevice_id: 3 - FriendlyElec NanoPC-T6 - fspim1_pins - rk3588 - Xunlong Orange Pi 5 Plus - fspim1_pins - rk3588 brom_bootdevice_id: 4 - Radxa ROCK 5 Model B - fspim2_pins - rk3588 brom_bootdevice_id: 6 It has now been confirmed that the BootRom on RK3588 use different bootsource id values depending on the iomux used by the flash spi controller, and not by the type of spi nor or spi nand flash used. This series adjusts the bootsource enum values, updates the boot_devices array to fix booting from SPI flash on RK3588 devices using fspim1_pins. It also enable building of a bootable SPI image for affected devices. John Clark (1): rockchip: rk3588-nanopc-t6: Build SPI image Jonas Karlman (2): rockchip: rk3588: Fix boot from SPI flash rockchip: rk3588s-orangepi-5: Build SPI image Slawomir Stepien (1): rockchip: rk3588-orangepi-5-plus: Build SPI image arch/arm/include/asm/arch-rockchip/bootrom.h | 4 +++- arch/arm/mach-rockchip/rk3588/rk3588.c | 5 +++-- configs/nanopc-t6-rk3588_defconfig | 1 + configs/orangepi-5-plus-rk3588_defconfig | 1 + configs/orangepi-5-rk3588s_defconfig | 1 + 5 files changed, 9 insertions(+), 3 deletions(-) -- 2.42.0