1 # SPDX-License-Identifier: GPL-2.0
6 bool "Device Tree and Open Firmware support"
8 This option enables the device tree infrastructure.
9 It is automatically selected by platforms that need it or can
10 be enabled manually for unittests, overlays or
16 bool "Device Tree runtime unit tests"
19 select OF_EARLY_FLATTREE
22 This option builds in test cases for the device tree infrastructure
23 that are executed once at boot time, and the results dumped to the
26 This option should only be enabled for a development kernel. The tests
27 will taint the kernel with TAINT_TEST. The tests will cause ERROR and
28 WARNING messages to print on the console. The tests will cause stack
29 traces to print on the console. It is possible that the tests will
30 leave the devicetree in a corrupted state.
32 The unittest output will be verbose. Copy the output to a file
33 via capturing the console output or via the dmesg command. Process
34 this file with scripts/dtc/of_unittest_expect to reduce the
35 verbosity, test whether expected output is present, and to
36 summarize the results.
38 If unsure, say N here. This option is not safe to enable.
41 bool "Build all Device Tree Blobs"
42 depends on COMPILE_TEST
45 This option builds all possible Device Tree Blobs (DTBs) for the
48 If unsure, say N here, but this option is safe to enable.
56 config OF_EARLY_FLATTREE
58 select DMA_DECLARE_COHERENT if HAS_DMA && HAS_IOMEM
67 # Hardly any platforms need this. It is safe to select, but only do so if you
70 bool "Support for dynamic device trees" if OF_UNITTEST
73 On some platforms, the device tree can be manipulated at runtime.
74 While this option is selected automatically on such platforms, you
75 can enable it manually to improve device tree unit test coverage.
79 depends on !SPARC && (HAS_IOMEM || UML)
83 depends on !SPARC && IRQ_DOMAIN
85 config OF_RESERVED_MEM
86 def_bool OF_EARLY_FLATTREE
92 bool "Device Tree overlays"
97 Overlays are a method to dynamically modify part of the kernel's
98 device tree with dynamically loaded data.
99 While this option is selected automatically when needed, you can
100 enable it manually to improve device tree unit test coverage.