[v2] arm: dts: allwinner: enable overlay support for sun8i-h2-plus pi boards

Message ID BESPR10MB9223FFB989C825881E02F0CAD2122@BESPR10MB9223.EURPRD10.PROD.OUTLOOK.COM (mailing list archive)
State New
Headers
Series [v2] arm: dts: allwinner: enable overlay support for sun8i-h2-plus pi boards |

Commit Message

Nisarg Rajput June 2, 2026, 3:38 a.m. UTC
Subject: [PATCH v2] arm: dts: allwinner: enable overlay support for sun8i-h2-plus pi boards

Add DTC_FLAGS -@ for all H2+ pi-class devices to enable device-tree
overlay support. This follows the same approach used for H3 pi boards
in commit 0801a3a9f35854c91f1f3ab8e879c3d14912d214 ("arm: dts: Enable
device-tree overlay support for sun8i-h3 pi devices").

The -@ flag populates the __symbols__ node in the DTB which is required
for applying device-tree overlays from the bootloader or firmware.

Boards affected:
- sun8i-h2-plus-bananapi-m2-zero
- sun8i-h2-plus-libretech-all-h3-cc
- sun8i-h2-plus-orangepi-r1
- sun8i-h2-plus-orangepi-zero

Signed-off-by: Nisarg Rajput <rajputnisarg17@outlook.com>
---
 arch/arm/boot/dts/allwinner/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

--
2.43.0
  

Patch

diff --git a/arch/arm/boot/dts/allwinner/Makefile b/arch/arm/boot/dts/allwinner/Makefile
index 296be33ec934..2e0cc454df74 100644
--- a/arch/arm/boot/dts/allwinner/Makefile
+++ b/arch/arm/boot/dts/allwinner/Makefile
@@ -198,6 +198,12 @@  DTC_FLAGS_sun8i-h3-nanopi-r1 := -@
 DTC_FLAGS_sun8i-h3-orangepi-pc := -@
 DTC_FLAGS_sun8i-h3-bananapi-m2-plus-v1.2 := -@
 DTC_FLAGS_sun8i-h3-orangepi-pc-plus := -@
+
+# Enables support for device-tree overlays for H2+ pi boards
+DTC_FLAGS_sun8i-h2-plus-bananapi-m2-zero := -@
+DTC_FLAGS_sun8i-h2-plus-libretech-all-h3-cc := -@
+DTC_FLAGS_sun8i-h2-plus-orangepi-r1 := -@
+DTC_FLAGS_sun8i-h2-plus-orangepi-zero := -@
 dtb-$(CONFIG_MACH_SUN8I) += \
 	sun8i-a23-evb.dtb \
 	sun8i-a23-gt90h-v4.dtb \