armv8: Add generic smbios information into the device tree
authorRaymond Mao <raymond.mao@linaro.org>
Fri, 6 Dec 2024 22:54:25 +0000 (14:54 -0800)
committerTom Rini <trini@konsulko.com>
Tue, 14 Jan 2025 20:29:29 +0000 (14:29 -0600)
commit86898a98fdd5f528f5f71a66902fbe95de5927e6
tree92217269b1fc30adfbb70c53fa15406e064dc1fb
parentc0e1775a867c3acc0b841468fb95f5433a62f527
armv8: Add generic smbios information into the device tree

Add common smbios information that can be used by all armv8
platforms and set it as default for qemu-arm64.
>From now smbios library can load values from here for those fields
doesn't exist in the sysinfo driver.

To run this with QEMU arm64, we need to dump the generated DTB
from QEMU first, merge it with the one we build and then re-run
QEMU with the merged DTB.
```
qemu-system-aarch64 -machine virt -machine dumpdtb=qemu.dtb
cat  <(dtc -I dtb qemu.dtb) <(dtc -I dtb ./dts/dt.dtb | \
  grep -v /dts-v1/) | dtc - -o merged.dtb
qemu-system-aarch64 -machine virt -nographic -bios u-boot.bin \
  -dtb merged.dtb
```
For details please take reference on dt_qemu.rst

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
arch/arm/dts/qemu-arm64.dts
arch/arm/dts/smbios_generic.dtsi [new file with mode: 0644]