[PATCH v7 4/8] arm64: dts: imx8mp-sr-som: build dtbs with symbols for overlay support

Josua Mayer posted 8 patches 3 weeks ago
There is a newer version of this series
[PATCH v7 4/8] arm64: dts: imx8mp-sr-som: build dtbs with symbols for overlay support
Posted by Josua Mayer 3 weeks ago
Build all dtbs based on SolidRun i.MX8MP SoM with symbols (adding -@ to
dtc flags) to enable support for device-tree addons.

The SoM has a camera connector for basler cameras that can be enabled by
downstream dtbo.
Hence by extension all boards based on this SoM should support addons.

Signed-off-by: Josua Mayer <josua@solid-run.com>
---
 arch/arm64/boot/dts/freescale/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile
index f30d3fd724d0..c4c6fd6de963 100644
--- a/arch/arm64/boot/dts/freescale/Makefile
+++ b/arch/arm64/boot/dts/freescale/Makefile
@@ -203,6 +203,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-aristainetos3-helios-lvds.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-aristainetos3-proton2s.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-beacon-kit.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-cubox-m.dtb
+DTC_FLAGS_imx8mp-cubox-m := -@
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-data-modul-edm-sbc.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-debix-model-a.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-debix-som-a-bmb-08.dtb
@@ -213,9 +214,13 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-dhcom-picoitx.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-edm-g-wb.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-hummingboard-mate.dtb
+DTC_FLAGS_imx8mp-hummingboard-mate := -@
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-hummingboard-pro.dtb
+DTC_FLAGS_imx8mp-hummingboard-pro := -@
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-hummingboard-pulse.dtb
+DTC_FLAGS_imx8mp-hummingboard-pulse := -@
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-hummingboard-ripple.dtb
+DTC_FLAGS_imx8mp-hummingboard-ripple := -@
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-icore-mx8mp-edimm2.2.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-iota2-lumpy.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-kontron-bl-osm-s.dtb

-- 
2.43.0
Re: [PATCH v7 4/8] arm64: dts: imx8mp-sr-som: build dtbs with symbols for overlay support
Posted by Frank Li 2 weeks, 4 days ago
On Sun, Jan 18, 2026 at 02:51:41PM +0200, Josua Mayer wrote:
> Build all dtbs based on SolidRun i.MX8MP SoM with symbols (adding -@ to
> dtc flags) to enable support for device-tree addons.

Do you means addon as overlay?

>
> The SoM has a camera connector for basler cameras that can be enabled by
> downstream dtbo.

why no upstream dtbs?

> Hence by extension all boards based on this SoM should support addons.
>
> Signed-off-by: Josua Mayer <josua@solid-run.com>
> ---
>  arch/arm64/boot/dts/freescale/Makefile | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile
> index f30d3fd724d0..c4c6fd6de963 100644
> --- a/arch/arm64/boot/dts/freescale/Makefile
> +++ b/arch/arm64/boot/dts/freescale/Makefile
> @@ -203,6 +203,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-aristainetos3-helios-lvds.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-aristainetos3-proton2s.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-beacon-kit.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-cubox-m.dtb
> +DTC_FLAGS_imx8mp-cubox-m := -@

should it put before dtb-$(CONFIG_ARCH_MXC) += imx8mp-cubox-m.dtb?

Frank

>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-data-modul-edm-sbc.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-debix-model-a.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-debix-som-a-bmb-08.dtb
> @@ -213,9 +214,13 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-dhcom-picoitx.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-edm-g-wb.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-hummingboard-mate.dtb
> +DTC_FLAGS_imx8mp-hummingboard-mate := -@
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-hummingboard-pro.dtb
> +DTC_FLAGS_imx8mp-hummingboard-pro := -@
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-hummingboard-pulse.dtb
> +DTC_FLAGS_imx8mp-hummingboard-pulse := -@
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-hummingboard-ripple.dtb
> +DTC_FLAGS_imx8mp-hummingboard-ripple := -@
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-icore-mx8mp-edimm2.2.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-iota2-lumpy.dtb
>  dtb-$(CONFIG_ARCH_MXC) += imx8mp-kontron-bl-osm-s.dtb
>
> --
> 2.43.0
>
>
Re: [PATCH v7 4/8] arm64: dts: imx8mp-sr-som: build dtbs with symbols for overlay support
Posted by Josua Mayer 1 week, 4 days ago
Hi Frank,

On 21/01/2026 22:25, Frank Li wrote:
> On Sun, Jan 18, 2026 at 02:51:41PM +0200, Josua Mayer wrote:
>> Build all dtbs based on SolidRun i.MX8MP SoM with symbols (adding -@ to
>> dtc flags) to enable support for device-tree addons.
> Do you means addon as overlay?
Yes. I am confused what should be the correct terminology, since some places
dtbo is called addon, other places overlay.
>
>> The SoM has a camera connector for basler cameras that can be enabled by
>> downstream dtbo.
> why no upstream dtbs?
No upstream driver or bindings, and generally the description will differ
between different camera modules.

My goal was to show that dtb overlays are useful on this board.

>
>> Hence by extension all boards based on this SoM should support addons.
>>
>> Signed-off-by: Josua Mayer <josua@solid-run.com>
>> ---
>>   arch/arm64/boot/dts/freescale/Makefile | 5 +++++
>>   1 file changed, 5 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile
>> index f30d3fd724d0..c4c6fd6de963 100644
>> --- a/arch/arm64/boot/dts/freescale/Makefile
>> +++ b/arch/arm64/boot/dts/freescale/Makefile
>> @@ -203,6 +203,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-aristainetos3-helios-lvds.dtb
>>   dtb-$(CONFIG_ARCH_MXC) += imx8mp-aristainetos3-proton2s.dtb
>>   dtb-$(CONFIG_ARCH_MXC) += imx8mp-beacon-kit.dtb
>>   dtb-$(CONFIG_ARCH_MXC) += imx8mp-cubox-m.dtb
>> +DTC_FLAGS_imx8mp-cubox-m := -@
> should it put before dtb-$(CONFIG_ARCH_MXC) += imx8mp-cubox-m.dtb?

Checking other Makefiles flags are generally specified before the dtb.
So I will change it accordingly.

Examples:

arch/riscv/boot/dts/starfive/Makefile:DTC_FLAGS_jh7100-beaglev-starlight 
:= -@
arch/riscv/boot/dts/starfive/Makefile:DTC_FLAGS_jh7100-starfive-visionfive-v1 
:= -@
arch/riscv/boot/dts/starfive/Makefile:DTC_FLAGS_jh7110-starfive-visionfive-2-v1.2a 
:= -@
arch/riscv/boot/dts/starfive/Makefile:DTC_FLAGS_jh7110-starfive-visionfive-2-v1.3b 
:= -@
arch/riscv/boot/dts/starfive/Makefile-
arch/riscv/boot/dts/starfive/Makefile-dtb-$(CONFIG_ARCH_STARFIVE) += 
jh7100-beaglev-starlight.dtb
arch/arm64/boot/dts/freescale/Makefile:DTC_FLAGS_fsl-ls1088a-qds := 
-Wno-interrupt_map
arch/arm64/boot/dts/freescale/Makefile-dtb-$(CONFIG_ARCH_LAYERSCAPE) += 
fsl-ls1088a-qds.dtb
arch/arm64/boot/dts/renesas/Makefile:DTC_FLAGS_r8a779g3-sparrow-hawk += 
-Wno-spi_bus_bridge
arch/arm64/boot/dts/renesas/Makefile-dtb-$(CONFIG_ARCH_R8A779G0) += 
r8a779g3-sparrow-hawk.dtb

sincerely
Josua Mayer