[PATCH] board: starfive: handle compatible property in dynamic DT configuration
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 10 Jan 2024 20:17:44 +0000 (21:17 +0100)
committerVagrant Cascadian <vagrant@debian.org>
Thu, 9 Jan 2025 19:14:04 +0000 (11:14 -0800)
commitf381584c54804655f18812bc8f7d6fdec4e100c6
treeaa6f4cfdb85512e21306a45f7064e1f2cbbe81bd
parent5eadb4eefaa060d19f8b6b893507635a6b0928c1
[PATCH] board: starfive: handle compatible property in dynamic DT configuration

The difference between the StarFive VisionFive 2 1.2A and 1.3B boards is
handled dynamically by looking at the PCB version in the EEPROM in order
to have a single u-boot version for both versions of the board. While
the "model" property is correctly handled, the "compatible" one is
always the the one of version 1.3b.

This patch add support for dynamically configuring that property.

Fixes: 9b7060bd15e7 ("riscv: dts: jh7110: Combine the board device tree files of 1.2A and 1.3B")
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Gbp-Pq: Topic riscv64
Gbp-Pq: Name board-starfive-handle-compatible-property-in-dynamic.patch
board/starfive/visionfive2/spl.c