Skip to contentSkip to conversation

build full dtbs for BananaPi R3/R4(Pro)

PATCH Applied Frank Wunderlich 5 participants 12 messages Nov 19, 2025 – Jan 8

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover build full dtbs for BananaPi R3/R4(Pro)

From: Frank Wunderlich <[email protected]>

Build devicetree binaries for testing overlays and providing users full dtb without using overlays for Bananapi R4 (pro) variants.

It is not required to build all possible combinations, only for common usecases and to test if all overlays can be applied.

This series is based on
https://git.kernel.org/pub/scm/linux/kernel/git/mediatek/linux.git/log/?h=v6.18-next/dts64

Frank Wunderlich (2):
arm64: dts: mediatek: mt7986: add dtbs with applied overlays for

    bpi-r3
  arm64: dts: mediatek: mt7988: add dtbs with applied overlays for
    bpi-r4 (pro)
 arch/arm64/boot/dts/mediatek/Makefile | 53 +++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/2 arm64: dts: mediatek: mt7986: add dtbs with applied overlays for bpi-r3

From: Frank Wunderlich <[email protected]>

Build devicetree binaries for testing overlays and providing users full dtb without using overlays.

---
resend of
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
due to discussions here:
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

changes:
- updated sd-nand with sata-overlay

---
 arch/arm64/boot/dts/mediatek/Makefile | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm64/boot/dts/mediatek/Makefile +21 -0
index c5fd6191a925..77d76730d61b 100644
@@ -19,6 +19,27 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nand.dtbo
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nor.dtbo
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sata.dtbo
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd.dtbo
+mt7986a-bananapi-bpi-r3-emmc-nand-dtbs := \
+	mt7986a-bananapi-bpi-r3.dtb \
+	mt7986a-bananapi-bpi-r3-emmc.dtbo \
+	mt7986a-bananapi-bpi-r3-nand.dtbo
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc-nand.dtb
+mt7986a-bananapi-bpi-r3-emmc-nor-dtbs := \
+	mt7986a-bananapi-bpi-r3.dtb \
+	mt7986a-bananapi-bpi-r3-emmc.dtbo \
+	mt7986a-bananapi-bpi-r3-nor.dtbo
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc-nor.dtb
+mt7986a-bananapi-bpi-r3-sd-nand-dtbs := \
+	mt7986a-bananapi-bpi-r3.dtb \
+	mt7986a-bananapi-bpi-r3-sd.dtbo \
+	mt7986a-bananapi-bpi-r3-nand.dtbo \
+	mt7986a-bananapi-bpi-r3-sata.dtbo
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd-nand.dtb
+mt7986a-bananapi-bpi-r3-sd-nor-dtbs := \
+	mt7986a-bananapi-bpi-r3.dtb \
+	mt7986a-bananapi-bpi-r3-sd.dtbo \
+	mt7986a-bananapi-bpi-r3-nor.dtbo
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd-nor.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-rfb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986b-rfb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4.dtb
Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH v1 1/2] arm64: dts: mediatek: mt7986: add dtbs with applied overlays for bpi-r3

Quoted 13 lines · Frank Wunderlich

From: Frank Wunderlich <[email protected]>

Build devicetree binaries for testing overlays and providing users full dtb without using overlays.

---
resend of
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
due to discussions here:
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

Quoted 5 lines

changes:
- updated sd-nand with sata-overlay

---
 arch/arm64/boot/dts/mediatek/Makefile | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

This looks like still not being applied and now it is a warning in Linus' tree.

Can this be applied and sent as fixes?

Best regards,
Krzysztof

maintainer Acked-by
#3 lore raw

Re: [PATCH v1 1/2] arm64: dts: mediatek: mt7986: add dtbs with applied overlays for bpi-r3

Il 05/12/25 09:10, Krzysztof Kozlowski ha scritto:

Quoted 21 lines · Frank Wunderlich
Quoted 13 lines

From: Frank Wunderlich <[email protected]>

Build devicetree binaries for testing overlays and providing users full dtb without using overlays.

---
resend of
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
due to discussions here:
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

Quoted 5 lines

changes:
- updated sd-nand with sata-overlay

---
  arch/arm64/boot/dts/mediatek/Makefile | 21 +++++++++++++++++++++
  1 file changed, 21 insertions(+)
Quoted 7 lines

This looks like still not being applied and now it is a warning in Linus' tree.

Can this be applied and sent as fixes?

Best regards,
Krzysztof

Matthias, can you please take care of sending this?

Cheers,
Angelo

maintainer Acked-by
#4 lore raw

Re: [PATCH v1 1/2] arm64: dts: mediatek: mt7986: add dtbs with applied overlays for bpi-r3

Quoted 27 lines · AngeloGioacchino Del Regno

Il 05/12/25 09:10, Krzysztof Kozlowski ha scritto:

Quoted 25 lines · Frank Wunderlich
Quoted 13 lines

From: Frank Wunderlich <[email protected]>

Build devicetree binaries for testing overlays and providing users full dtb without using overlays.

---
resend of
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
due to discussions here:
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

Quoted 5 lines

changes:
- updated sd-nand with sata-overlay

---
  arch/arm64/boot/dts/mediatek/Makefile | 21 +++++++++++++++++++++
  1 file changed, 21 insertions(+)

This looks like still not being applied and now it is a warning in Linus' tree.

Can this be applied and sent as fixes?

There's still one warning remaining after applying this series which I reported:

scripts/Makefile.dtbs:20: .dtbo is not applied to any base:
mt8395-radxa-nio-12l-8-hd-panel.dtbo

It's fixed in my original patch. Can you all take that and drop the bpi hunks.

FWIW:

#5 lore raw

Re: [PATCH v1 1/2] arm64: dts: mediatek: mt7986: add dtbs with applied overlays for bpi-r3

Am 5. Dezember 2025 14:46:45 MEZ schrieb Rob Herring <[email protected]>:

Quoted 28 lines
Quoted 26 lines · AngeloGioacchino Del Regno

Il 05/12/25 09:10, Krzysztof Kozlowski ha scritto:

Quoted 24 lines · Frank Wunderlich
Quoted 13 lines

From: Frank Wunderlich <[email protected]>

Build devicetree binaries for testing overlays and providing users full dtb without using overlays.

---
resend of
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
due to discussions here:
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

Quoted 5 lines

changes:
- updated sd-nand with sata-overlay

---
  arch/arm64/boot/dts/mediatek/Makefile | 21 +++++++++++++++++++++
  1 file changed, 21 insertions(+)

This looks like still not being applied and now it is a warning in Linus' tree.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Can this be applied and sent as fixes?

There's still one warning remaining after applying this series which I reported:

scripts/Makefile.dtbs:20: .dtbo is not applied to any base:
mt8395-radxa-nio-12l-8-hd-panel.dtbo

It's fixed in my original patch. Can you all take that and drop the bpi hunks.

Sorry, missed this part and i do not have this board,so I'm not sure if this should be applied this way.
But if it helps i can separate it from robs patch and send tomorrow.

Quoted 3 lines

FWIW:

regards Frank

#6 lore raw

Re: [PATCH v1 1/2] arm64: dts: mediatek: mt7986: add dtbs with applied overlays for bpi-r3

In reply to Krzysztof Kozlowski

Hi

Am 2025-12-05 09:10, schrieb Krzysztof Kozlowski:

Quoted 21 lines · Frank Wunderlich
Quoted 13 lines

From: Frank Wunderlich <[email protected]>

Build devicetree binaries for testing overlays and providing users full dtb without using overlays.

---
resend of
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
due to discussions here:
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

Quoted 5 lines

changes:
- updated sd-nand with sata-overlay

---
 arch/arm64/boot/dts/mediatek/Makefile | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
Quoted 4 lines

This looks like still not being applied and now it is a warning in Linus' tree.

Can this be applied and sent as fixes?

afair the series was sent after the pull-request from angelo and maybe he waited for an ack from you/rob before applying ;)

if it helps i collected the commits for (possibly) sending as fix

Fixes a58c36806741 ("arm64: dts: mediatek: mt7988a-bpi-r4pro: Add mmc overlays")
Fixes dec929e61a42 ("arm64: dts: mediatek: mt7988a-bpi-r4-pro: Add PCIe overlays")
Fixes 714a80ced07a ("arm64: dts: mediatek: mt7988a-bpi-r4: Add dt overlays for sd + emmc")
Fixes 312189ebb802 ("arm64: dts: mt7986: add overlay for SATA power socket on BPI-R3")
Fixes 8e01fb15b815 ("arm64: dts: mt7986: add Bananapi R3")
Quoted 2 lines

Best regards,
Krzysztof

regards Frank

#7 lore raw

PATCH 2/2 arm64: dts: mediatek: mt7988: add dtbs with applied overlays for bpi-r4 (pro)

In reply to Frank Wunderlich

From: Frank Wunderlich <[email protected]>

Build devicetree binaries for testing overlays and providing users full dtb without using overlays for Bananapi R4 (pro) variants.

---
It is not required to build all possible combinations, only for common usecases and to test if all overlays can be applied.

---
 arch/arm64/boot/dts/mediatek/Makefile | 32 +++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
arch/arm64/boot/dts/mediatek/Makefile +32 -0
index 77d76730d61b..cac8f4c6d76f 100644
@@ -52,6 +52,38 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-pro-cn18.dtbo
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-pro-emmc.dtbo
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-pro-sd.dtbo
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-sd.dtbo
+mt7988a-bananapi-bpi-r4-emmc-dtbs := \
+	mt7988a-bananapi-bpi-r4.dtb \
+	mt7988a-bananapi-bpi-r4-emmc.dtbo
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-emmc.dtb
+mt7988a-bananapi-bpi-r4-sd-dtbs := \
+	mt7988a-bananapi-bpi-r4.dtb \
+	mt7988a-bananapi-bpi-r4-sd.dtbo
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-sd.dtb
+mt7988a-bananapi-bpi-r4-2g5-emmc-dtbs := \
+	mt7988a-bananapi-bpi-r4-2g5.dtb \
+	mt7988a-bananapi-bpi-r4-emmc.dtbo
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-2g5-emmc.dtb
+mt7988a-bananapi-bpi-r4-2g5-sd-dtbs := \
+	mt7988a-bananapi-bpi-r4-2g5.dtb \
+	mt7988a-bananapi-bpi-r4-sd.dtbo
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-2g5-sd.dtb
+mt7988a-bananapi-bpi-r4-pro-8x-emmc-dtbs := \
+	mt7988a-bananapi-bpi-r4-pro-8x.dtb \
+	mt7988a-bananapi-bpi-r4-pro-emmc.dtbo
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-pro-8x-emmc.dtb
+mt7988a-bananapi-bpi-r4-pro-8x-sd-dtbs := \
+	mt7988a-bananapi-bpi-r4-pro-8x.dtb \
+	mt7988a-bananapi-bpi-r4-pro-sd.dtbo
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-pro-8x-sd.dtb
+mt7988a-bananapi-bpi-r4-pro-8x-sd-cn15-dtbs := \
+	mt7988a-bananapi-bpi-r4-pro-8x-sd.dtb \
+	mt7988a-bananapi-bpi-r4-pro-cn15.dtbo
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-pro-8x-sd-cn15.dtb
+mt7988a-bananapi-bpi-r4-pro-8x-sd-cn18-dtbs := \
+	mt7988a-bananapi-bpi-r4-pro-8x-sd.dtb \
+	mt7988a-bananapi-bpi-r4-pro-cn18.dtbo
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-pro-8x-sd-cn18.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8167-pumpkin.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm-hana.dtb
Signature · 1 line
2.43.0
maintainer
#8 lore raw
In reply to Frank Wunderlich
Quoted 17 lines · Frank Wunderlich

From: Frank Wunderlich <[email protected]>

Build devicetree binaries for testing overlays and providing users full dtb without using overlays for Bananapi R4 (pro) variants.

It is not required to build all possible combinations, only for common usecases and to test if all overlays can be applied.

This series is based on
https://git.kernel.org/pub/scm/linux/kernel/git/mediatek/linux.git/log/?h=v6.18-next/dts64

Frank Wunderlich (2):
arm64: dts: mediatek: mt7986: add dtbs with applied overlays for

    bpi-r3
  arm64: dts: mediatek: mt7988: add dtbs with applied overlays for
    bpi-r4 (pro)
Quoted 8 lines
 arch/arm64/boot/dts/mediatek/Makefile | 53 +++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

--
2.43.0

My bot found new DTB warnings on the .dts files added or changed in this series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:

  pip3 install dtschema --upgrade

This patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/next-20251119 (exact match)
Base: tags/next-20251119 (use --merge-base to override)

If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)

New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/mediatek/' for [email protected]:

scripts/Makefile.dtbs:20: .dtbo is not applied to any base: mt8395-radxa-nio-12l-8-hd-panel.dtbo

maintainer
#9 lore raw
In reply to Frank Wunderlich
Quoted 8 lines · Frank Wunderlich

From: Frank Wunderlich <[email protected]>

Build devicetree binaries for testing overlays and providing users full dtb without using overlays for Bananapi R4 (pro) variants.

It is not required to build all possible combinations, only for common usecases and to test if all overlays can be applied.

Quoted 8 lines

This series is based on
https://git.kernel.org/pub/scm/linux/kernel/git/mediatek/linux.git/log/?h=v6.18-next/dts64

Frank Wunderlich (2):
arm64: dts: mediatek: mt7986: add dtbs with applied overlays for

    bpi-r3
  arm64: dts: mediatek: mt7988: add dtbs with applied overlays for
    bpi-r4 (pro)

Since there's been no movement on this, I've applied this series and the other patch and will send to Linus today.

Rob

maintainer Applied
#10 lore raw
In reply to Frank Wunderlich
Quoted 9 lines · Frank Wunderlich

From: Frank Wunderlich <[email protected]>

Build devicetree binaries for testing overlays and providing users full dtb without using overlays for Bananapi R4 (pro) variants.

It is not required to build all possible combinations, only for common usecases and to test if all overlays can be applied.

[...]

Applied to v6.19-next/dts64, thanks!

[1/2] arm64: dts: mediatek: mt7986: add dtbs with applied overlays for bpi-r3

      commit: 0516c548883bbe58a48d604e81e33b390986cdb6
[2/2] arm64: dts: mediatek: mt7988: add dtbs with applied overlays for bpi-r4 (pro)
      commit: d977b61d38030f50bae9f634049110af0a364d0d

Cheers,
Angelo

maintainer
#11 lore raw
Quoted 10 lines · AngeloGioacchino Del Regno
Quoted 8 lines · Frank Wunderlich

From: Frank Wunderlich <[email protected]>

Build devicetree binaries for testing overlays and providing users full dtb without using overlays for Bananapi R4 (pro) variants.

It is not required to build all possible combinations, only for common usecases and to test if all overlays can be applied.

Quoted 8 lines
Quoted 1 line

[...]

Applied to v6.19-next/dts64, thanks!

[1/2] arm64: dts: mediatek: mt7986: add dtbs with applied overlays for bpi-r3

      commit: 0516c548883bbe58a48d604e81e33b390986cdb6
[2/2] arm64: dts: mediatek: mt7988: add dtbs with applied overlays for bpi-r4 (pro)
      commit: d977b61d38030f50bae9f634049110af0a364d0d

These are already in Linus' tree. I picked them up because there was no movement and he was complaining about the warnings.

Rob