[PATCH v3 1/8] MIPS: Kconfig: Allow user selection of BUILTIN_DTB with description

From: H. Nikolaus Schaller

Date: Sat Nov 28 2026 - 12:21:15 EST


Make CONFIG_BUILTIN_DTB visible in Kconfig by adding a prompt and a
detailed help text.

Previously, BUILTIN_DTB was a silent option forcefully selected by
certain machine types (such as MACH_INGENIC) whenever appended DTB
support was disabled. This prevented modern setups from turning off the
built-in DTB fallback when the bootloader is fully capable of passing a
dynamic DTB.

By adding a prompt, users can now explicitly toggle this behavior. The
added help text clarifies the distinction between MIPS_NO_APPENDED_DTB
(which controls image appending) and BUILTIN_DTB (which controls the
compiled-in fallback data and code path via get_fdt()), as well as its
relationship to BUILTIN_DTB_NAME.

Suggested-by: Paul Cercueil <paul@xxxxxxxxxxxxxxx>
Signed-off-by: H. Nikolaus Schaller <hns@xxxxxxxxxxxxx>
---

Notes:
Changes in v3:
Simplify the help text without asserting a fixed DTB precedence.

Help text and commit message generated by public Google AI.

arch/mips/Kconfig | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index dac3ec5120a34..749d8cc7855aa 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2924,7 +2924,20 @@ config UHI_BOOT
bool

config BUILTIN_DTB
- bool
+ bool "Enable builtin DTB fallback support"
+ depends on USE_OF
+ help
+ Enable support for a Device Tree Blob built into the kernel.
+ The built-in DTB can be used when no suitable Device Tree is
+ supplied by the boot firmware or by another supported mechanism.
+
+ The DTB to embed is selected using BUILTIN_DTB_NAME. If no
+ built-in DTB is needed, for example because the bootloader
+ supplies one, this option can be disabled.
+
+ This option is independent of the appended-DTB selection below.
+
+ If unsure, say N.

choice
prompt "Kernel appended dtb support"
--
2.56.0