riscv: dts: Enable device-tree overlay support for starfive devices
authorFelix Moessbauer <felix.moessbauer@siemens.com>
Tue, 27 Jun 2023 08:06:20 +0000 (16:06 +0800)
committerConor Dooley <conor.dooley@microchip.com>
Wed, 12 Jul 2023 16:27:18 +0000 (17:27 +0100)
commitef6012f301f71fd8d8bc07dd9710f5e5de362cf5
treebf1925fa4a9bd630c41c9d1f628cbbaa095fd3d8
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
riscv: dts: Enable device-tree overlay support for starfive devices

Add the '-@' DTC option for the starfive devices. This option
populates the '__symbols__' node that contains all the necessary symbols
for supporting device-tree overlays (for instance from the firmware or
the bootloader) on these devices.

The starfive devices allow various modules to be connected and this
enables users to create out-of-tree device-tree overlays for these modules.

Please note that this change does increase the size of the resulting DTB
by ~20%. For example, with v6.4 increase in size is as follows:

jh7100-beaglev-starlight.dtb 6192 -> 7339
jh7100-starfive-visionfive-v1.dtb 6281 -> 7428
jh7110-starfive-visionfive-2-v1.2a.dtb 11101 -> 13447
jh7110-starfive-visionfive-2-v1.3b.dtb 11101 -> 13447

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Acked-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/boot/dts/starfive/Makefile