RE: [PATCH v2 3/5] board: starfive: visionfive2: Add Orange Pi RV selection by product_id

Hal Feng
2025-12-31T13:17:58Z

> On 27.12.25 03:30, E Shattow wrote:
> 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 <e@freeshell.de>

Reviewed-by: Hal Feng <hal.feng@starfivetech.com>

Best regards,
Hal

> ---
> 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