Skip to content

Commit e925743

Browse files
aurel32ffainelli
authored andcommitted
arm: dts: bcm: Enable device-tree overlay support for RPi devices
Add the '-@' DTC option for the Raspberry Pi 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 Rasbperry Pi devices are well known for their GPIO header, that allow various "HATs" or other modules do 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 ~40%. For example, with v6.4-rc1 increase in size is as follows: bcm2711-rpi-400.dtb 27556 -> 38141 bytes bcm2711-rpi-4-b.dtb 27484 -> 38069 bytes bcm2711-rpi-cm4-io.dtb 27373 -> 38076 bytes bcm2835-rpi-a.dtb 12879 -> 18235 bytes bcm2835-rpi-a-plus.dtb 13015 -> 18371 bytes bcm2835-rpi-b.dtb 12997 -> 18377 bytes bcm2835-rpi-b-plus.dtb 13237 -> 18666 bytes bcm2835-rpi-b-rev2.dtb 13085 -> 18514 bytes bcm2835-rpi-cm1-io1.dtb 13109 -> 18528 bytes bcm2835-rpi-zero.dtb 12923 -> 18311 bytes bcm2835-rpi-zero-w.dtb 13449 -> 18889 bytes bcm2836-rpi-2-b.dtb 14500 -> 20252 bytes bcm2837-rpi-3-a-plus.dtb 14930 -> 20713 bytes bcm2837-rpi-3-b.dtb 15107 -> 20979 bytes bcm2837-rpi-3-b-plus.dtb 15463 -> 21443 bytes bcm2837-rpi-cm3-io3.dtb 14429 -> 20098 bytes bcm2837-rpi-zero-2-w.dtb 14781 -> 20524 bytes Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Link: https://lore.kernel.org/r/20220410225940.135744-3-aurelien@aurel32.net [ukleinek: rebased to v6.4-rc1] Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
1 parent 9d7121f commit e925743

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

arch/arm/boot/dts/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,24 @@ dtb-$(CONFIG_SOC_SP7021) += \
8585
sunplus-sp7021-demo-v3.dtb
8686
dtb-$(CONFIG_ARCH_AXXIA) += \
8787
axm5516-amarillo.dtb
88+
# Enables support for device-tree overlays
89+
DTC_FLAGS_bcm2835-rpi-b := -@
90+
DTC_FLAGS_bcm2835-rpi-a := -@
91+
DTC_FLAGS_bcm2835-rpi-b-rev2 := -@
92+
DTC_FLAGS_bcm2835-rpi-b-plus := -@
93+
DTC_FLAGS_bcm2835-rpi-a-plus := -@
94+
DTC_FLAGS_bcm2835-rpi-cm1-io1 := -@
95+
DTC_FLAGS_bcm2836-rpi-2-b := -@
96+
DTC_FLAGS_bcm2837-rpi-3-a-plus := -@
97+
DTC_FLAGS_bcm2837-rpi-3-b := -@
98+
DTC_FLAGS_bcm2837-rpi-3-b-plus := -@
99+
DTC_FLAGS_bcm2837-rpi-cm3-io3 := -@
100+
DTC_FLAGS_bcm2837-rpi-zero-2-w := -@
101+
DTC_FLAGS_bcm2711-rpi-400 := -@
102+
DTC_FLAGS_bcm2711-rpi-4-b := -@
103+
DTC_FLAGS_bcm2711-rpi-cm4-io := -@
104+
DTC_FLAGS_bcm2835-rpi-zero := -@
105+
DTC_FLAGS_bcm2835-rpi-zero-w := -@
88106
dtb-$(CONFIG_ARCH_BCM2835) += \
89107
bcm2835-rpi-b.dtb \
90108
bcm2835-rpi-a.dtb \

0 commit comments

Comments
 (0)