Skip to content

Commit 0801a3a

Browse files
fmoessbauerjernejsk
authored andcommitted
arm: dts: Enable device-tree overlay support for sun8i-h3 pi devices
Add the '-@' DTC option for the sun8i-h3 pi-class 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. These 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 ~30%. For example, with v6.4 increase in size is as follows: 22909 -> 29564 sun8i-h3-orangepi-lite.dtb 24214 -> 30935 sun8i-h3-bananapi-m2-plus.dtb 23915 -> 30664 sun8i-h3-nanopi-m1-plus.dtb 22969 -> 29537 sun8i-h3-nanopi-m1.dtb 24157 -> 30836 sun8i-h3-nanopi-duo2.dtb 24110 -> 30845 sun8i-h3-orangepi-plus2e.dtb 23472 -> 30037 sun8i-h3-orangepi-one.dtb 24600 -> 31410 sun8i-h3-orangepi-plus.dtb 23618 -> 30230 sun8i-h3-orangepi-2.dtb 22170 -> 28548 sun8i-h3-orangepi-zero-plus2.dtb 23258 -> 29795 sun8i-h3-nanopi-neo-air.dtb 23113 -> 29699 sun8i-h3-zeropi.dtb 22803 -> 29270 sun8i-h3-nanopi-neo.dtb 24674 -> 31318 sun8i-h3-nanopi-r1.dtb 23477 -> 30038 sun8i-h3-orangepi-pc.dtb 24622 -> 31380 sun8i-h3-bananapi-m2-plus-v1.2.dtb 23750 -> 30366 sun8i-h3-orangepi-pc-plus.dtb Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://lore.kernel.org/r/20230627133703.355893-1-felix.moessbauer@siemens.com Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
1 parent f1b3ddb commit 0801a3a

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

arch/arm/boot/dts/allwinner/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,25 @@ dtb-$(CONFIG_MACH_SUN7I) += \
179179
sun7i-a20-pcduino3-nano.dtb \
180180
sun7i-a20-wexler-tab7200.dtb \
181181
sun7i-a20-wits-pro-a20-dkt.dtb
182+
183+
# Enables support for device-tree overlays for all pis
184+
DTC_FLAGS_sun8i-h3-orangepi-lite := -@
185+
DTC_FLAGS_sun8i-h3-bananapi-m2-plus := -@
186+
DTC_FLAGS_sun8i-h3-nanopi-m1-plus := -@
187+
DTC_FLAGS_sun8i-h3-nanopi-m1 := -@
188+
DTC_FLAGS_sun8i-h3-nanopi-duo2 := -@
189+
DTC_FLAGS_sun8i-h3-orangepi-plus2e := -@
190+
DTC_FLAGS_sun8i-h3-orangepi-one := -@
191+
DTC_FLAGS_sun8i-h3-orangepi-plus := -@
192+
DTC_FLAGS_sun8i-h3-orangepi-2 := -@
193+
DTC_FLAGS_sun8i-h3-orangepi-zero-plus2 := -@
194+
DTC_FLAGS_sun8i-h3-nanopi-neo-air := -@
195+
DTC_FLAGS_sun8i-h3-zeropi := -@
196+
DTC_FLAGS_sun8i-h3-nanopi-neo := -@
197+
DTC_FLAGS_sun8i-h3-nanopi-r1 := -@
198+
DTC_FLAGS_sun8i-h3-orangepi-pc := -@
199+
DTC_FLAGS_sun8i-h3-bananapi-m2-plus-v1.2 := -@
200+
DTC_FLAGS_sun8i-h3-orangepi-pc-plus := -@
182201
dtb-$(CONFIG_MACH_SUN8I) += \
183202
sun8i-a23-evb.dtb \
184203
sun8i-a23-gt90h-v4.dtb \

0 commit comments

Comments
 (0)