I've been doing a bit of looking at riscv and dt creation, and was thinking the following two helper functions would be useful so implemented qemu_fdt_setprop_reg64_map() and qemu_fdt_setprop_strings() and then applied them to the hw/riscv/sifive_u.c machine.
- [v2] pair of device-tree helpers Ben Dooks
- [PATCH 3/4] device_tree: add qemu_fdt_setprop_string... Ben Dooks
- Re: [PATCH 3/4] device_tree: add qemu_fdt_setpro... Alistair Francis
- Re: [PATCH 1/4] device_tree: add qemu_fdt_setprop_re... Alistair Francis
- Re: [PATCH 2/4] hw/riscv: use qemu_fdt_setprop_reg64... Alistair Francis
- Re: [PATCH 2/4] hw/riscv: use qemu_fdt_setprop_r... Alistair Francis
- Re: [PATCH 4/4] hw/riscv: use qemu_fdt_setprop_strin... Alistair Francis
- Re: [PATCH 4/4] hw/riscv: use qemu_fdt_setprop_s... Ben Dooks
- Re: [PATCH 4/4] hw/riscv: use qemu_fdt_setpr... Alistair Francis