Subject: Re: [PATCH v3] powerpc: dts: Build devicetrees of enabled platforms

From: J. Neuschäfer <[email-masked]>
Date: Fri, 13 Mar 2026 09:53:18 +0000

On Wed, Mar 11, 2026 at 02:41:14PM +0100, J. Neuschäfer via B4 Relay wrote:
> From: "J. Neuschäfer" <[email-masked]>
> 
> Follow the same approach as other architectures such as Arm or RISC-V,
> and build devicetrees based on platforms selected in Kconfig. This makes
> it unnecessary to use CONFIG_OF_ALL_DTBS on PowerPC in order to build
> DTB files.
> 
> This makes it easier to use other build and test infrastructure such as
> `make dtbs_check`, and is a first step towards generating FIT images
> that include all the relevant DTBs with `make image.fit`.
> 
> Signed-off-by: J. Neuschäfer <[email-masked]>
> ---
> Changes in v3:
> - Group multiple files per line, while still avoiding backslashes
>   (suggested by Christophe Leroy)
> - Link to v2: https://lore.kernel.org/r/[email-masked]
> 
> Changes in v2:
> - Use "dtb-$(FOO) += foo.dtb" format on every line, avoid backslashes
>   (suggested by Geert Uytterhoeven)
> - Link to v1: https://lore.kernel.org/r/[email-masked]
> ---
>  arch/powerpc/boot/dts/Makefile     | 72 ++++++++++++++++++++++++++++++++++++++
>  arch/powerpc/boot/dts/fsl/Makefile | 43 +++++++++++++++++++++++
>  2 files changed, 115 insertions(+)
> 
> diff --git a/arch/powerpc/boot/dts/Makefile b/arch/powerpc/boot/dts/Makefile
> index 0cd0d8558b475c..56581c2489df0f 100644
> --- a/arch/powerpc/boot/dts/Makefile
> +++ b/arch/powerpc/boot/dts/Makefile
> @@ -3,3 +3,75 @@
[...]
> +# MPC85xx platforms
> +dtb-$(CONFIG_STX_GP3) += stx_gp3_8560.dtb stxssa8555.dtb
> +dtb-$(CONFIG_TQM85xx) += tqm8540.dtb tqm8541.dtb tqm8548.dtb
> +dtb-$(CONFIG_TQM85xx) += tqm8548-bigflash.dtb tqm8555.dtb tqm8560.dtb
> +dtb-$(CONFIG_SOCRATES) += socrates.dtb
> +dtb-$(CONFIG_KSI8560) += ksi8560.dtb
> +dtb-$(CONFIG_XES_MPC85xx) += xcalibur1501.dtb xpedite5200.dtb
> +dtb-$(CONFIG_XES_MPC85xx) += xpedite5200_xmon.dtb xpedite5301.dtb
> +dtb-$(CONFIG_XES_MPC85xx) += xpedite5330.dtb xpedite5370.dtb
[...]
> diff --git a/arch/powerpc/boot/dts/fsl/Makefile b/arch/powerpc/boot/dts/fsl/Makefile
> index d3ecdf14bc42e7..be784cbda6b56d 100644
> --- a/arch/powerpc/boot/dts/fsl/Makefile
> +++ b/arch/powerpc/boot/dts/fsl/Makefile
> @@ -1,3 +1,46 @@
[...]
> +dtb-$(CONFIG_PPC_P2020) += p2020ds.dtb turris1x.dtb

I just noticed that turris1x.dts is in boot/dts, not boot/dts/fsl.
I'll fix the Makefile listing and respin.

(This is an arbitrary split that doesn't catch all Freescale parts
anyway, but moving dts files around is out of scope for this patch.)

Best regards