From mboxrd@z Thu Jan 1 00:00:00 1970 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 18282CA5FA0 for ; Tue, 20 Jan 2026 15:58:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7C22C83A8F; Tue, 20 Jan 2026 16:58:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=freeshell.de 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=freeshell.de header.i=@freeshell.de header.b="UudyrfMg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DD6FE83B0B; Tue, 20 Jan 2026 16:58:12 +0100 (CET) Received: from freeshell.de (freeshell.de [116.202.128.144]) (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 829C783A6A for ; Tue, 20 Jan 2026 16:58:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=freeshell.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=e@freeshell.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freeshell.de; s=s2025; t=1768924489; bh=EwUk3Qew+LJFj6DY355YZ+eeXIF+KJGmkSdq6C5f0gs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UudyrfMgtAg0aHHqyYVp/J6esZegcRHEwUkt1xRaWnwLjMAt6X2IcEQwnCEJst44h oBXZ3eD4+vS9pBbtwniRNpLmxzPVSbw+lj8rDbdZea5BVDKk2CNXOPj76UMnAqJrYI ueCnVw7tT4NdRKBTgGb5s2ggShBPPnThpBM9H9EoNVxhOQkI1CX4HG/Mrj42NoiwPM rv4pzoFZxYwmj4fRIxdCTz4yN/Prv4eLqCk3jhwYXVtjL5BQSfsFe8qISddA4//wRE lgXKci+0497NOPs9XepJjPXJbixgf7c9JZK6nw74gLsnVRUSu7808VkaR0BWbj0i/s 2q1Rq6Y+mOuYQ== Received: from hay.lan (unknown [IPv6:2605:59ca:364f:d400:6ecf:39ff:fe00:8375]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id CC27FB220D1F; Tue, 20 Jan 2026 16:54:46 +0100 (CET) From: E Shattow To: Minda Chen , Hal Feng , Leo Liang , Heinrich Schuchardt , Tom Rini Cc: u-boot@lists.denx.de, E Shattow Subject: [PATCH v3 3/5] board: starfive: visionfive2: Add Orange Pi RV selection by product_id Date: Tue, 20 Jan 2026 07:53:36 -0800 Message-ID: <20260120155406.34916-4-e@freeshell.de> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20260120155406.34916-1-e@freeshell.de> References: <20260120155406.34916-1-e@freeshell.de> 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 Add XOPIRV identifier for Orange Pi RV to dts selection callback in SPL, and to fdtfile environment variable default value selection in payload. Signed-off-by: E Shattow Reviewed-by: Hal Feng --- board/starfive/visionfive2/spl.c | 3 +++ board/starfive/visionfive2/starfive_visionfive2.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/board/starfive/visionfive2/spl.c b/board/starfive/visionfive2/spl.c index 2d9431d2976..684605278c0 100644 --- a/board/starfive/visionfive2/spl.c +++ b/board/starfive/visionfive2/spl.c @@ -131,6 +131,9 @@ int board_fit_config_name_match(const char *name) !strncmp(get_product_id_from_eeprom(), "MARC", 4) && !get_mmc_size_from_eeprom()) { return 0; + } else if (!strcmp(name, "starfive/jh7110-orangepi-rv") && + !strncmp(get_product_id_from_eeprom(), "XOPIRV", 6)) { + return 0; } else if (!strcmp(name, "starfive/jh7110-pine64-star64") && !strncmp(get_product_id_from_eeprom(), "STAR64", 6)) { return 0; diff --git a/board/starfive/visionfive2/starfive_visionfive2.c b/board/starfive/visionfive2/starfive_visionfive2.c index 6c39fd4af35..d59622f6b64 100644 --- a/board/starfive/visionfive2/starfive_visionfive2.c +++ b/board/starfive/visionfive2/starfive_visionfive2.c @@ -63,6 +63,8 @@ static void set_fdtfile(void) } else { fdtfile = "starfive/jh7110-milkv-marscm-lite.dtb"; } + } else if (!strncmp(get_product_id_from_eeprom(), "XOPIRV", 6)) { + fdtfile = "starfive/jh7110-orangepi-rv.dtb"; } else if (!strncmp(get_product_id_from_eeprom(), "STAR64", 6)) { fdtfile = "starfive/jh7110-pine64-star64.dtb"; } else if (!strncmp(get_product_id_from_eeprom(), "VF7110A", 7)) { -- 2.50.0