public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Add support for StarFive VisionFive 2 Lite eMMC board
@ 2026-04-02  7:00 Hal Feng
  2026-04-02  7:00 ` [PATCH v1 1/2] configs: visionfive2: Add VisionFive 2 Lite eMMC DT to OF_LIST Hal Feng
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Hal Feng @ 2026-04-02  7:00 UTC (permalink / raw)
  To: Leo Yu-Chi Liang, Tom Rini, Rick Chen, Sumit Garg,
	Emil Renner Berthing, Heinrich Schuchardt, E Shattow
  Cc: Hal Feng, u-boot

VisionFive 2 Lite eMMC board uses the eMMC as storage component instead
of the MicroSD card in VisionFive 2 Lite board. The device tree of
VisionFive 2 Lite eMMC board is already upstream in Linux, so add support
in u-boot also.

Hal Feng (2):
  configs: visionfive2: Add VisionFive 2 Lite eMMC DT to OF_LIST
  board: starfive: visionfive2: Support VisionFive 2 Lite eMMC

 board/starfive/visionfive2/spl.c                  | 7 ++++++-
 board/starfive/visionfive2/starfive_visionfive2.c | 6 +++++-
 configs/starfive_visionfive2_defconfig            | 2 +-
 3 files changed, 12 insertions(+), 3 deletions(-)


base-commit: 98cf83d81617f489d7ff7bf78d33e693e2799254
-- 
2.43.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v1 1/2] configs: visionfive2: Add VisionFive 2 Lite eMMC DT to OF_LIST
  2026-04-02  7:00 [PATCH v1 0/2] Add support for StarFive VisionFive 2 Lite eMMC board Hal Feng
@ 2026-04-02  7:00 ` Hal Feng
  2026-04-02  7:00 ` [PATCH v1 2/2] board: starfive: visionfive2: Support VisionFive 2 Lite eMMC Hal Feng
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Hal Feng @ 2026-04-02  7:00 UTC (permalink / raw)
  To: Leo Yu-Chi Liang, Tom Rini, Rick Chen, Sumit Garg,
	Emil Renner Berthing, Heinrich Schuchardt, E Shattow
  Cc: Hal Feng, u-boot

So the VisionFive 2 Lite eMMC DT will be built and merged into FIT.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
---
 configs/starfive_visionfive2_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig
index 74a24dfd074..b6b3108ac5c 100644
--- a/configs/starfive_visionfive2_defconfig
+++ b/configs/starfive_visionfive2_defconfig
@@ -80,7 +80,7 @@ CONFIG_WGET_HTTPS=y
 CONFIG_CMD_BOOTSTAGE=y
 CONFIG_OF_BOARD=y
 CONFIG_DEVICE_TREE_INCLUDES="starfive-visionfive2-u-boot.dtsi"
-CONFIG_OF_LIST="starfive/jh7110-deepcomputing-fml13v01 starfive/jh7110-milkv-mars starfive/jh7110-milkv-marscm-emmc starfive/jh7110-milkv-marscm-lite starfive/jh7110-orangepi-rv starfive/jh7110-pine64-star64 starfive/jh7110-starfive-visionfive-2-v1.2a starfive/jh7110-starfive-visionfive-2-v1.3b starfive/jh7110-starfive-visionfive-2-lite"
+CONFIG_OF_LIST="starfive/jh7110-deepcomputing-fml13v01 starfive/jh7110-milkv-mars starfive/jh7110-milkv-marscm-emmc starfive/jh7110-milkv-marscm-lite starfive/jh7110-orangepi-rv starfive/jh7110-pine64-star64 starfive/jh7110-starfive-visionfive-2-v1.2a starfive/jh7110-starfive-visionfive-2-v1.3b starfive/jh7110-starfive-visionfive-2-lite starfive/jh7110-starfive-visionfive-2-lite-emmc"
 CONFIG_MULTI_DTB_FIT=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
-- 
2.43.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v1 2/2] board: starfive: visionfive2: Support VisionFive 2 Lite eMMC
  2026-04-02  7:00 [PATCH v1 0/2] Add support for StarFive VisionFive 2 Lite eMMC board Hal Feng
  2026-04-02  7:00 ` [PATCH v1 1/2] configs: visionfive2: Add VisionFive 2 Lite eMMC DT to OF_LIST Hal Feng
@ 2026-04-02  7:00 ` Hal Feng
  2026-04-02  7:10 ` [PATCH v1 0/2] Add support for StarFive VisionFive 2 Lite eMMC board Hal Feng
  2026-04-02 10:52 ` E Shattow
  3 siblings, 0 replies; 5+ messages in thread
From: Hal Feng @ 2026-04-02  7:00 UTC (permalink / raw)
  To: Leo Yu-Chi Liang, Tom Rini, Rick Chen, Sumit Garg,
	Emil Renner Berthing, Heinrich Schuchardt, E Shattow
  Cc: Hal Feng, u-boot

Add emmc detection to VisionFive 2 Lite DT selection and
fdtfile environment variable setting.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
---
 board/starfive/visionfive2/spl.c                  | 7 ++++++-
 board/starfive/visionfive2/starfive_visionfive2.c | 6 +++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/board/starfive/visionfive2/spl.c b/board/starfive/visionfive2/spl.c
index e231467f2a1..1b4d623d002 100644
--- a/board/starfive/visionfive2/spl.c
+++ b/board/starfive/visionfive2/spl.c
@@ -144,7 +144,12 @@ int board_fit_config_name_match(const char *name)
 		    !strncmp(get_product_id_from_eeprom(), "VF7110B", 7)) {
 		return 0;
 	} else if (!strcmp(name, "starfive/jh7110-starfive-visionfive-2-lite") &&
-		    !strncmp(get_product_id_from_eeprom(), "VF7110SL", 8)) {
+		    !strncmp(get_product_id_from_eeprom(), "VF7110SL", 8) &&
+		    !get_mmc_size_from_eeprom()) {
+		return 0;
+	} else if (!strcmp(name, "starfive/jh7110-starfive-visionfive-2-lite-emmc") &&
+		    !strncmp(get_product_id_from_eeprom(), "VF7110SL", 8) &&
+		    get_mmc_size_from_eeprom()) {
 		return 0;
 	}
 
diff --git a/board/starfive/visionfive2/starfive_visionfive2.c b/board/starfive/visionfive2/starfive_visionfive2.c
index 1a76f745ec8..97f40715f8f 100644
--- a/board/starfive/visionfive2/starfive_visionfive2.c
+++ b/board/starfive/visionfive2/starfive_visionfive2.c
@@ -72,7 +72,11 @@ static void set_fdtfile(void)
 	} else if (!strncmp(get_product_id_from_eeprom(), "VF7110B", 7)) {
 		fdtfile = "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb";
 	} else if (!strncmp(get_product_id_from_eeprom(), "VF7110SL", 8)) {
-		fdtfile = "starfive/jh7110-starfive-visionfive-2-lite.dtb";
+		if (get_mmc_size_from_eeprom()) {
+			fdtfile = "starfive/jh7110-starfive-visionfive-2-lite-emmc.dtb";
+		} else {
+			fdtfile = "starfive/jh7110-starfive-visionfive-2-lite.dtb";
+		}
 	} else {
 		log_err("Unknown product\n");
 		return;
-- 
2.43.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v1 0/2] Add support for StarFive VisionFive 2 Lite eMMC board
  2026-04-02  7:00 [PATCH v1 0/2] Add support for StarFive VisionFive 2 Lite eMMC board Hal Feng
  2026-04-02  7:00 ` [PATCH v1 1/2] configs: visionfive2: Add VisionFive 2 Lite eMMC DT to OF_LIST Hal Feng
  2026-04-02  7:00 ` [PATCH v1 2/2] board: starfive: visionfive2: Support VisionFive 2 Lite eMMC Hal Feng
@ 2026-04-02  7:10 ` Hal Feng
  2026-04-02 10:52 ` E Shattow
  3 siblings, 0 replies; 5+ messages in thread
From: Hal Feng @ 2026-04-02  7:10 UTC (permalink / raw)
  To: Leo Yu-Chi Liang, Tom Rini, Rick Chen, Sumit Garg,
	Emil Renner Berthing, Heinrich Schuchardt, E Shattow
  Cc: u-boot@lists.denx.de

> On 02.04.26 15:01, Hal Feng wrote:
> VisionFive 2 Lite eMMC board uses the eMMC as storage component instead of
> the MicroSD card in VisionFive 2 Lite board. The device tree of VisionFive 2 Lite
> eMMC board is already upstream in Linux, so add support in u-boot also.
> 
> Hal Feng (2):
>   configs: visionfive2: Add VisionFive 2 Lite eMMC DT to OF_LIST
>   board: starfive: visionfive2: Support VisionFive 2 Lite eMMC
> 
>  board/starfive/visionfive2/spl.c                  | 7 ++++++-
>  board/starfive/visionfive2/starfive_visionfive2.c | 6 +++++-
>  configs/starfive_visionfive2_defconfig            | 2 +-
>  3 files changed, 12 insertions(+), 3 deletions(-)
> 
> 
> base-commit: 98cf83d81617f489d7ff7bf78d33e693e2799254

The patches are based on the latest next branch.

Best regards,
Hal

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1 0/2] Add support for StarFive VisionFive 2 Lite eMMC board
  2026-04-02  7:00 [PATCH v1 0/2] Add support for StarFive VisionFive 2 Lite eMMC board Hal Feng
                   ` (2 preceding siblings ...)
  2026-04-02  7:10 ` [PATCH v1 0/2] Add support for StarFive VisionFive 2 Lite eMMC board Hal Feng
@ 2026-04-02 10:52 ` E Shattow
  3 siblings, 0 replies; 5+ messages in thread
From: E Shattow @ 2026-04-02 10:52 UTC (permalink / raw)
  To: Hal Feng, Leo Yu-Chi Liang, Tom Rini, Rick Chen, Sumit Garg,
	Emil Renner Berthing, Heinrich Schuchardt
  Cc: u-boot

Hi Hal,

On 4/2/26 00:00, Hal Feng wrote:
> VisionFive 2 Lite eMMC board uses the eMMC as storage component instead
> of the MicroSD card in VisionFive 2 Lite board. The device tree of
> VisionFive 2 Lite eMMC board is already upstream in Linux, so add support
> in u-boot also.
> 
> Hal Feng (2):
>   configs: visionfive2: Add VisionFive 2 Lite eMMC DT to OF_LIST
>   board: starfive: visionfive2: Support VisionFive 2 Lite eMMC
> 
>  board/starfive/visionfive2/spl.c                  | 7 ++++++-
>  board/starfive/visionfive2/starfive_visionfive2.c | 6 +++++-
>  configs/starfive_visionfive2_defconfig            | 2 +-
>  3 files changed, 12 insertions(+), 3 deletions(-)
> 
> 
> base-commit: 98cf83d81617f489d7ff7bf78d33e693e2799254

Looks good to me (for -next). For the series:

Reviewed-by: E Shattow <e@freeshell.de>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-04-02 10:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-02  7:00 [PATCH v1 0/2] Add support for StarFive VisionFive 2 Lite eMMC board Hal Feng
2026-04-02  7:00 ` [PATCH v1 1/2] configs: visionfive2: Add VisionFive 2 Lite eMMC DT to OF_LIST Hal Feng
2026-04-02  7:00 ` [PATCH v1 2/2] board: starfive: visionfive2: Support VisionFive 2 Lite eMMC Hal Feng
2026-04-02  7:10 ` [PATCH v1 0/2] Add support for StarFive VisionFive 2 Lite eMMC board Hal Feng
2026-04-02 10:52 ` E Shattow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox