public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] powerpc: dts: Build devicetrees of enabled platforms
@ 2026-03-03 15:55 J. Neuschäfer via B4 Relay
  2026-03-03 21:34 ` Geert Uytterhoeven
  0 siblings, 1 reply; 3+ messages in thread
From: J. Neuschäfer via B4 Relay @ 2026-03-03 15:55 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Christophe Leroy (CS GROUP)
  Cc: devicetree, linuxppc-dev, linux-kernel, J. Neuschäfer

From: "J. Neuschäfer" <j.ne@posteo.net>

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 <j.ne@posteo.net>
---
A similar patch was previously posted as:

  [PATCH 09/19] powerpc: boot: Build devicetrees when CONFIG_MPC831x=y
  https://lore.kernel.org/lkml/20250102-mpc83xx-v1-9-86f78ba2a7af@posteo.net/
---
 arch/powerpc/boot/dts/Makefile     | 155 +++++++++++++++++++++++++++++++++++++
 arch/powerpc/boot/dts/fsl/Makefile | 100 ++++++++++++++++++++++++
 2 files changed, 255 insertions(+)

diff --git a/arch/powerpc/boot/dts/Makefile b/arch/powerpc/boot/dts/Makefile
index 0cd0d8558b475c..2fd1e24b7aee6c 100644
--- a/arch/powerpc/boot/dts/Makefile
+++ b/arch/powerpc/boot/dts/Makefile
@@ -3,3 +3,158 @@
 subdir-y += fsl
 
 dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(src)/%.dts,%.dtb, $(wildcard $(src)/*.dts))
+
+# PPC44x platforms
+dtb-$(CONFIG_PPC44x_SIMPLE) += \
+	arches.dtb \
+	bamboo.dtb \
+	bluestone.dtb \
+	glacier.dtb \
+	eiger.dtb \
+	katmai.dtb \
+	rainier.dtb \
+	redwood.dtb \
+	sequoia.dtb \
+	taishan.dtb \
+	yosemite.dtb \
+	icon.dtb
+dtb-$(CONFIG_EBONY) += \
+	ebony.dtb
+dtb-$(CONFIG_SAM440EP) += \
+	sam440ep.dtb
+dtb-$(CONFIG_WARP) += \
+	warp.dtb
+dtb-$(CONFIG_ISS4xx) += \
+	iss4xx.dtb \
+	iss4xx-mpic.dtb
+dtb-$(CONFIG_CANYONLANDS) += \
+	canyonlands.dtb
+dtb-$(CONFIG_CURRITUCK) += \
+	currituck.dtb
+dtb-$(CONFIG_AKEBONO) += \
+	akebono.dtb
+dtb-$(CONFIG_FSP2) += \
+	fsp2.dtb
+
+# Embedded 6xx platforms
+dtb-$(CONFIG_LINKSTATION) += \
+	kuroboxHG.dtb \
+	kuroboxHD.dtb
+dtb-$(CONFIG_STORCENTER) += \
+	storcenter.dtb
+dtb-$(CONFIG_PPC_HOLLY) += \
+	holly.dtb
+dtb-$(CONFIG_GAMECUBE) += \
+	gamecube.dtb
+dtb-$(CONFIG_WII) += \
+	wii.dtb
+dtb-$(CONFIG_MVME5100) += \
+	mvme5100.dtb
+
+# MPC8xx platforms
+dtb-$(CONFIG_MPC885ADS) += \
+	mpc885ads.dtb
+dtb-$(CONFIG_MPC86XADS) += \
+	mpc866ads.dtb
+dtb-$(CONFIG_PPC_EP88XC) += \
+	ep88xc.dtb
+dtb-$(CONFIG_PPC_ADDER875) += \
+	adder875-redboot.dtb \
+	adder875-uboot.dtb
+dtb-$(CONFIG_TQM8XX) += \
+	tqm8xx.dtb
+
+# MPC512x platforms
+dtb-$(CONFIG_MPC5121_ADS) += \
+	mpc5121ads.dtb
+dtb-$(CONFIG_MPC512x_GENERIC) += \
+	mpc5125twr.dtb \
+	ac14xx.dts
+dtb-$(CONFIG_PDM360NG) += \
+	pdm360ng.dtb
+
+# MPC5200 platforms
+dtb-$(CONFIG_PPC_MPC5200_SIMPLE) += \
+	a3m071.dtb \
+	a4m072.dtb \
+	charon.dtb \
+	cm5200.dtb \
+	digsy_mtc.dtb \
+	motionpro.dtb \
+	mucmc52.dtb \
+	o2d.dtb \
+	o2d300.dtb \
+	o2dnt2.dtb \
+	o2i.dtb \
+	o2mnt.dtb \
+	o3dnt.dtb \
+	pcm030.dtb \
+	pcm032.dtb \
+	tqm5200.dtb \
+	uc101.dtb
+dtb-$(CONFIG_PPC_LITE5200) += \
+	lite5200.dtb \
+	lite5200b.dtb
+dtb-$(CONFIG_PPC_MEDIA5200) += \
+	media5200.dtb
+
+# MPC82xx platforms
+dtb-$(CONFIG_EP8248E) += \
+	ep8248e.dtb
+dtb-$(CONFIG_MGCOGE) += \
+	mgcoge.dtb
+
+# MPC83xx platforms
+dtb-$(CONFIG_MPC830x_RDB) += \
+	mpc8308rdb.dtb \
+	mpc8308_p1m.dtb
+dtb-$(CONFIG_MPC831x_RDB) += \
+	mpc8313erdb.dtb \
+	mpc8315erdb.dtb
+dtb-$(CONFIG_MPC832x_RDB) += \
+	mpc832x_rdb.dtb
+dtb-$(CONFIG_MPC834x_ITX) += \
+	mpc8349emitx.dtb \
+	mpc8349emitxgp.dtb
+dtb-$(CONFIG_ASP834x) += \
+	asp834x-redboot.dtb
+dtb-$(CONFIG_MPC836x_RDK) += \
+	mpc836x_rdk.dtb
+dtb-$(CONFIG_KMETER1) += \
+	kmeter1.dtb
+dtb-$(CONFIG_MPC837x_RDB) += \
+	mpc8377_rdb.dtb \
+	mpc8378_rdb.dtb \
+	mpc8379_rdb.dtb \
+	mpc8377_wlan.dtb
+
+# MPC85xx platforms
+dtb-$(CONFIG_STX_GP3) += \
+	stx_gp3_8560.dtb \
+	stxssa8555.dtb
+dtb-$(CONFIG_TQM85xx) += \
+	tqm8540.dtb \
+	tqm8541.dtb \
+	tqm8548.dtb \
+	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 \
+	xpedite5200_xmon.dtb \
+	xpedite5301.dtb \
+	xpedite5330.dtb \
+	xpedite5370.dtb
+
+# Misc. platforms
+dtb-$(CONFIG_PPC_MICROWATT) += \
+	microwatt.dtb
+dtb-$(CONFIG_AMIGAONE) += \
+	amigaone.dtb
+dtb-$(CONFIG_PPC_PS3) += \
+	ps3.dtb
diff --git a/arch/powerpc/boot/dts/fsl/Makefile b/arch/powerpc/boot/dts/fsl/Makefile
index d3ecdf14bc42e7..cc96315d4b7e33 100644
--- a/arch/powerpc/boot/dts/fsl/Makefile
+++ b/arch/powerpc/boot/dts/fsl/Makefile
@@ -1,3 +1,103 @@
 # SPDX-License-Identifier: GPL-2.0
 
 dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(src)/%.dts,%.dtb, $(wildcard $(src)/*.dts))
+
+# MPC85xx platforms
+dtb-$(CONFIG_BSC9131_RDB) += \
+	bsc9131rdb.dtb
+dtb-$(CONFIG_BSC9132_QDS) += \
+	bsc9132qds.dtb
+dtb-$(CONFIG_C293_PCIE) += \
+	c293pcie.dtb
+dtb-$(CONFIG_MPC8536_DS) += \
+	mpc8536ds.dtb \
+	mpc8536ds_36b.dtb
+dtb-$(CONFIG_MPC85xx_DS) += \
+	mpc8544ds.dtb \
+	mpc8572ds_camp_core0.dtb \
+	mpc8572ds_camp_core1.dtb \
+	mpc8572ds_36b.dtb \
+	mpc8572ds.dtb
+dtb-$(CONFIG_MPC85xx_MDS) += \
+	mpc8568mds.dtb \
+	mpc8569mds.dtb \
+	p1021mds.dtb
+dtb-$(CONFIG_MPC85xx_RDB) += \
+	p1020mbg-pc_32b.dtb \
+	p1020mbg-pc_36b.dtb \
+	p1020rdb_36b.dtb \
+	p1020rdb.dtb \
+	p1020rdb-pc_32b.dtb \
+	p1020rdb-pc_36b.dtb \
+	p1020rdb-pc_camp_core0.dtb \
+	p1020rdb-pc_camp_core1.dtb \
+	p1020rdb-pd.dtb \
+	p1020utm-pc_32b.dtb \
+	p1020utm-pc_36b.dtb \
+	p1021rdb-pc_32b.dtb \
+	p1021rdb-pc_36b.dtb \
+	p1024rdb_32b.dtb \
+	p1024rdb_36b.dtb \
+	p1025rdb_32b.dtb \
+	p1025rdb_36b.dtb
+dtb-$(CONFIG_P1010_RDB) += \
+	p1010rdb-pa_36b.dtb \
+	p1010rdb-pa.dtb \
+	p1010rdb-pb_36b.dtb \
+	p1010rdb-pb.dtb
+dtb-$(CONFIG_P1022_DS) += \
+	p1022ds_32b.dtb \
+	p1022ds_36b.dtb
+dtb-$(CONFIG_P1022_RDK) += \
+	p1022rdk.dtb
+dtb-$(CONFIG_P1023_RDB) += \
+	p1023rdb.dtb
+dtb-$(CONFIG_PPC_P2020) += \
+	p2020ds.dtb \
+	turris1x.dtb
+dtb-$(CONFIG_TWR_P102x) += \
+	p1025twr.dtb
+dtb-$(CONFIG_CORENET_GENERIC) += \
+	b4420qds.dtb \
+	b4860qds.dtb \
+	cyrus_p5020.dtb \
+	kmcent2.dtb \
+	kmcoge4.dtb \
+	oca4080.dtb \
+	p2041rdb.dtb \
+	p3041ds.dtb \
+	p4080ds.dtb \
+	p5020ds.dtb \
+	p5040ds.dtb \
+	t1023rdb.dtb \
+	t1024qds.dtb \
+	t1024rdb.dtb \
+	t1040d4rdb.dtb \
+	t1040qds.dtb \
+	t1040rdb.dtb \
+	t1040rdb-rev-a.dtb \
+	t1042d4rdb.dtb \
+	t1042qds.dtb \
+	t1042rdb.dtb \
+	t1042rdb_pi.dtb \
+	t2080qds.dtb \
+	t2080rdb.dtb \
+	t2081qds.dtb \
+	t4240qds.dtb \
+	t4240rdb.dtb
+dtb-$(CONFIG_PPA8548) += \
+	ppa8548.dtb
+dtb-$(CONFIG_GE_IMP3A) += \
+	ge_imp3a.dtb
+dtb-$(CONFIG_MVME2500) += \
+	mvme2500.dtb
+
+# MPC86xx platforms
+dtb-$(CONFIG_GEF_SBC310) += \
+	gef_sbc310.dtb
+dtb-$(CONFIG_GEF_SBC610) += \
+	gef_sbc610.dtb
+dtb-$(CONFIG_GEF_PPC9A) += \
+	gef_ppc9a.dtb
+dtb-$(CONFIG_MVME7100) += \
+	mvme7100.dtb

---
base-commit: 883ca7b2ea487e5547e4728703fd04fad34f2bb9
change-id: 20260101-mpc83xx-dtb-23d98a190e23

Best regards,
-- 
J. Neuschäfer <j.ne@posteo.net>



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH RESEND] powerpc: dts: Build devicetrees of enabled platforms
  2026-03-03 15:55 [PATCH RESEND] powerpc: dts: Build devicetrees of enabled platforms J. Neuschäfer via B4 Relay
@ 2026-03-03 21:34 ` Geert Uytterhoeven
  2026-03-04 13:47   ` J. Neuschäfer
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2026-03-03 21:34 UTC (permalink / raw)
  To: j.ne
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Christophe Leroy (CS GROUP), devicetree, linuxppc-dev,
	linux-kernel

Hi J,

On Tue, 3 Mar 2026 at 16:56, J. Neuschäfer via B4 Relay
<devnull+j.ne.posteo.net@kernel.org> wrote:
> From: "J. Neuschäfer" <j.ne@posteo.net>
>
> 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 <j.ne@posteo.net>

Thanks for your patch!

> --- a/arch/powerpc/boot/dts/Makefile
> +++ b/arch/powerpc/boot/dts/Makefile
> @@ -3,3 +3,158 @@
>  subdir-y += fsl
>
>  dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(src)/%.dts,%.dtb, $(wildcard $(src)/*.dts))
> +
> +# PPC44x platforms
> +dtb-$(CONFIG_PPC44x_SIMPLE) += \
> +       arches.dtb \
> +       bamboo.dtb \
> +       bluestone.dtb \
> +       glacier.dtb \
> +       eiger.dtb \
> +       katmai.dtb \
> +       rainier.dtb \
> +       redwood.dtb \
> +       sequoia.dtb \
> +       taishan.dtb \
> +       yosemite.dtb \
> +       icon.dtb
> +dtb-$(CONFIG_EBONY) += \
> +       ebony.dtb

This fits on a single line (many more below)

[...]

> +# MPC5200 platforms
> +dtb-$(CONFIG_PPC_MPC5200_SIMPLE) += \
> +       a3m071.dtb \
> +       a4m072.dtb \
> +       charon.dtb \
> +       cm5200.dtb \
> +       digsy_mtc.dtb \
> +       motionpro.dtb \
> +       mucmc52.dtb \
> +       o2d.dtb \
> +       o2d300.dtb \
> +       o2dnt2.dtb \
> +       o2i.dtb \
> +       o2mnt.dtb \
> +       o3dnt.dtb \
> +       pcm030.dtb \
> +       pcm032.dtb \
> +       tqm5200.dtb \
> +       uc101.dtb

Even when it wouldn't fit on a single line, having separate

    dtb-$(CONFIG_FOO) += bar1.dtb
    dtb-$(CONFIG_FOO) += bar2.dtb

lines not only makes it a little bit shorter, but avoids the churn of
adding a backslash to the previous line when adding new entries.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH RESEND] powerpc: dts: Build devicetrees of enabled platforms
  2026-03-03 21:34 ` Geert Uytterhoeven
@ 2026-03-04 13:47   ` J. Neuschäfer
  0 siblings, 0 replies; 3+ messages in thread
From: J. Neuschäfer @ 2026-03-04 13:47 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: j.ne, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Christophe Leroy (CS GROUP), devicetree, linuxppc-dev,
	linux-kernel

On Tue, Mar 03, 2026 at 10:34:26PM +0100, Geert Uytterhoeven wrote:
> Hi J,
> 
> On Tue, 3 Mar 2026 at 16:56, J. Neuschäfer via B4 Relay
> <devnull+j.ne.posteo.net@kernel.org> wrote:
> > From: "J. Neuschäfer" <j.ne@posteo.net>
> >
> > 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 <j.ne@posteo.net>
> 
> Thanks for your patch!
> 
> > --- a/arch/powerpc/boot/dts/Makefile
> > +++ b/arch/powerpc/boot/dts/Makefile
> > @@ -3,3 +3,158 @@
> >  subdir-y += fsl
> >
> >  dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(src)/%.dts,%.dtb, $(wildcard $(src)/*.dts))
> > +
> > +# PPC44x platforms
> > +dtb-$(CONFIG_PPC44x_SIMPLE) += \
> > +       arches.dtb \
[...]
> > +       icon.dtb
> > +dtb-$(CONFIG_EBONY) += \
> > +       ebony.dtb
> 
> This fits on a single line (many more below)
> 
> [...]
> 
> > +# MPC5200 platforms
> > +dtb-$(CONFIG_PPC_MPC5200_SIMPLE) += \
[...]
> > +       tqm5200.dtb \
> > +       uc101.dtb
> 
> Even when it wouldn't fit on a single line, having separate
> 
>     dtb-$(CONFIG_FOO) += bar1.dtb
>     dtb-$(CONFIG_FOO) += bar2.dtb
> 
> lines not only makes it a little bit shorter, but avoids the churn of
> adding a backslash to the previous line when adding new entries.

Sounds good, I'll do that for v2.

> 
> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> -- 
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-04 13:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-03 15:55 [PATCH RESEND] powerpc: dts: Build devicetrees of enabled platforms J. Neuschäfer via B4 Relay
2026-03-03 21:34 ` Geert Uytterhoeven
2026-03-04 13:47   ` J. Neuschäfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox