[PATCH] arm64: dts: ti: Enable overlays for all DTB files

Andrew Davis posted 1 patch 3 months, 1 week ago
arch/arm64/boot/dts/ti/Makefile | 22 +---------------------
1 file changed, 1 insertion(+), 21 deletions(-)
[PATCH] arm64: dts: ti: Enable overlays for all DTB files
Posted by Andrew Davis 3 months, 1 week ago
Allow overlays to be applied to any DTB without manually enabling it
for each file. This adds around ~10% to the total size of the DTB files
on average.

Signed-off-by: Andrew Davis <afd@ti.com>
---

Note that Broadcom's DTS already do this, so there is precedent for this.
And we do this unconditionally in our Yocto Distros[0] already, this just
moves this so everyone gets overlay support for all boards.

[0] https://git.yoctoproject.org/meta-ti/tree/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc#n5

 arch/arm64/boot/dts/ti/Makefile | 22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile
index 743e7b945af3b..93fb2c5c3bbda 100644
--- a/arch/arm64/boot/dts/ti/Makefile
+++ b/arch/arm64/boot/dts/ti/Makefile
@@ -348,24 +348,4 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \
 	k3-j784s4-evm-usxgmii-exp1-exp2.dtb
 
 # Enable support for device-tree overlays
-DTC_FLAGS_k3-am625-beagleplay += -@
-DTC_FLAGS_k3-am625-phyboard-lyra-rdk += -@
-DTC_FLAGS_k3-am62a7-phyboard-lyra-rdk += -@
-DTC_FLAGS_k3-am625-sk += -@
-DTC_FLAGS_k3-am62-lp-sk += -@
-DTC_FLAGS_k3-am62a7-sk += -@
-DTC_FLAGS_k3-am62p5-sk += -@
-DTC_FLAGS_k3-am642-evm += -@
-DTC_FLAGS_k3-am642-phyboard-electra-rdk += -@
-DTC_FLAGS_k3-am642-tqma64xxl-mbax4xxl += -@
-DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@
-DTC_FLAGS_k3-am68-sk-base-board += -@
-DTC_FLAGS_k3-am69-sk += -@
-DTC_FLAGS_k3-j7200-common-proc-board += -@
-DTC_FLAGS_k3-j721e-common-proc-board += -@
-DTC_FLAGS_k3-j721e-evm-pcie0-ep += -@
-DTC_FLAGS_k3-j721e-sk += -@
-DTC_FLAGS_k3-j721s2-common-proc-board += -@
-DTC_FLAGS_k3-j722s-evm += -@
-DTC_FLAGS_k3-j784s4-evm += -@
-DTC_FLAGS_k3-j742s2-evm += -@
+DTC_FLAGS := -@
-- 
2.39.2
Re: [PATCH] arm64: dts: ti: Enable overlays for all DTB files
Posted by Vignesh Raghavendra 3 months ago
Hi Andrew Davis,

On Wed, 02 Jul 2025 09:53:14 -0500, Andrew Davis wrote:
> Allow overlays to be applied to any DTB without manually enabling it
> for each file. This adds around ~10% to the total size of the DTB files
> on average.
> 
> 

I have applied the following to branch ti-k3-dts-next on [1].
Thank you!

[1/1] arm64: dts: ti: Enable overlays for all DTB files
      commit: bca4146b1f66dbca07591bfd6ad695c699b5a093

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Vignesh
Re: [PATCH] arm64: dts: ti: Enable overlays for all DTB files
Posted by Bryan Brattlof 3 months ago
On July  2, 2025 thus sayeth Andrew Davis:
> Allow overlays to be applied to any DTB without manually enabling it
> for each file. This adds around ~10% to the total size of the DTB files
> on average.
> 
> Signed-off-by: Andrew Davis <afd@ti.com>
> ---
> 
> Note that Broadcom's DTS already do this, so there is precedent for this.
> And we do this unconditionally in our Yocto Distros[0] already, this just
> moves this so everyone gets overlay support for all boards.
> 
> [0] https://git.yoctoproject.org/meta-ti/tree/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc#n5
> 
>  arch/arm64/boot/dts/ti/Makefile | 22 +---------------------
>  1 file changed, 1 insertion(+), 21 deletions(-)

With the current size of the kernel and initrd these days, +10% of a few 
KBs is not even a rounding error IMHO :)

Acked-by: Bryan Brattlof <bb@ti.com>

~Bryan