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

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

Commit Message

Nisarg Rajput May 3, 2026, 3:58 p.m. UTC
>From a0c7eaa6032748bb79953282a984064a922c916f Mon Sep 17 00:00:00 2001
From: ixnisarg <rajputnisarg17@outlook.com>
Date: Sun, 3 May 2026 15:42:38 +0000
Subject: [PATCH] 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: ixnisarg <rajputnisarg17@outlook.com>
---
 arch/arm/boot/dts/allwinner/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)
  

Comments

Chen-Yu Tsai May 5, 2026, 2:25 p.m. UTC | #1
On Sun, May 3, 2026 at 11:58 PM Nisarg Rajput
<rajputnisarg17@outlook.com> wrote:
>
> From a0c7eaa6032748bb79953282a984064a922c916f Mon Sep 17 00:00:00 2001
> From: ixnisarg <rajputnisarg17@outlook.com>
> Date: Sun, 3 May 2026 15:42:38 +0000
> Subject: [PATCH] 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: ixnisarg <rajputnisarg17@outlook.com>

Please use a proper name for the author and Signed-off-by.

> ---
>  arch/arm/boot/dts/allwinner/Makefile | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> 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 \
> --
> 2.43.0
>
>
>
> Thanks,
> Nisarg...
  
Chen-Yu Tsai May 5, 2026, 2:33 p.m. UTC | #2
On Sun, May 3, 2026 at 11:58 PM Nisarg Rajput
<rajputnisarg17@outlook.com> wrote:
>
> From a0c7eaa6032748bb79953282a984064a922c916f Mon Sep 17 00:00:00 2001
> From: ixnisarg <rajputnisarg17@outlook.com>
> Date: Sun, 3 May 2026 15:42:38 +0000
> Subject: [PATCH] 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: ixnisarg <rajputnisarg17@outlook.com>

On Sun, May 3, 2026 at 11:58 PM Nisarg Rajput
<rajputnisarg17@outlook.com> wrote:
>
> From a0c7eaa6032748bb79953282a984064a922c916f Mon Sep 17 00:00:00 2001
> From: ixnisarg <rajputnisarg17@outlook.com>
> Date: Sun, 3 May 2026 15:42:38 +0000
> Subject: [PATCH] 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: ixnisarg <rajputnisarg17@outlook.com>

Please use a proper name for the author and Signed-off-by.
  

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 \