xref: /rk3399_rockchip-uboot/dts/Kconfig (revision dffb86e468c8e02ba77283989aefef214d904dc5)
1783e6a72SMasahiro Yamada#
2783e6a72SMasahiro Yamada# Device Tree Control
3783e6a72SMasahiro Yamada#
4783e6a72SMasahiro Yamada
5783e6a72SMasahiro Yamadaconfig SUPPORT_OF_CONTROL
6783e6a72SMasahiro Yamada	bool
7783e6a72SMasahiro Yamada
8783e6a72SMasahiro Yamadamenu "Device Tree Control"
9783e6a72SMasahiro Yamada	depends on SUPPORT_OF_CONTROL
10783e6a72SMasahiro Yamada
11783e6a72SMasahiro Yamadaconfig OF_CONTROL
12783e6a72SMasahiro Yamada	bool "Run-time configuration via Device Tree"
13783e6a72SMasahiro Yamada	help
14783e6a72SMasahiro Yamada	  This feature provides for run-time configuration of U-Boot
15783e6a72SMasahiro Yamada	  via a flattened device tree.
16783e6a72SMasahiro Yamada
17*dffb86e4SMasahiro Yamadaconfig SPL_OF_CONTROL
18*dffb86e4SMasahiro Yamada	bool "Enable run-time configuration via Device Tree in SPL"
19*dffb86e4SMasahiro Yamada	depends on SPL && OF_CONTROL
202860f03bSSimon Glass	help
212860f03bSSimon Glass	  Some boards use device tree in U-Boot but only have 4KB of SRAM
222860f03bSSimon Glass	  which is not enough to support device tree. Enable this option to
232860f03bSSimon Glass	  allow such boards to be supported by U-Boot SPL.
242860f03bSSimon Glass
25783e6a72SMasahiro Yamadachoice
26783e6a72SMasahiro Yamada	prompt "Provider of DTB for DT control"
27783e6a72SMasahiro Yamada	depends on OF_CONTROL
28783e6a72SMasahiro Yamada
29783e6a72SMasahiro Yamadaconfig OF_SEPARATE
30783e6a72SMasahiro Yamada	bool "Separate DTB for DT control"
31783e6a72SMasahiro Yamada	depends on !SANDBOX
32783e6a72SMasahiro Yamada	help
33783e6a72SMasahiro Yamada	  If this option is enabled, the device tree will be built and
34783e6a72SMasahiro Yamada	  placed as a separate u-boot.dtb file alongside the U-Boot image.
35783e6a72SMasahiro Yamada
36783e6a72SMasahiro Yamadaconfig OF_EMBED
37783e6a72SMasahiro Yamada	bool "Embedded DTB for DT control"
38783e6a72SMasahiro Yamada	help
39783e6a72SMasahiro Yamada	  If this option is enabled, the device tree will be picked up and
40783e6a72SMasahiro Yamada	  built into the U-Boot image.
41783e6a72SMasahiro Yamada
42783e6a72SMasahiro Yamadaconfig OF_HOSTFILE
43783e6a72SMasahiro Yamada	bool "Host filed DTB for DT control"
44783e6a72SMasahiro Yamada	depends on SANDBOX
45783e6a72SMasahiro Yamada	help
46783e6a72SMasahiro Yamada	  If this option is enabled, DTB will be read from a file on startup.
47783e6a72SMasahiro Yamada	  This is only useful for Sandbox.  Use the -d flag to U-Boot to
48783e6a72SMasahiro Yamada	  specify the file to read.
49783e6a72SMasahiro Yamada
50783e6a72SMasahiro Yamadaendchoice
51783e6a72SMasahiro Yamada
52f1ef2b62SMasahiro Yamadaconfig DEFAULT_DEVICE_TREE
53f1ef2b62SMasahiro Yamada	string "Default Device Tree for DT control"
54f1ef2b62SMasahiro Yamada	help
55f1ef2b62SMasahiro Yamada	  This option specifies the default Device Tree used for DT control.
565699ea6dSRobert P. J. Day	  It can be overridden from the command line:
57f1ef2b62SMasahiro Yamada	  $ make DEVICE_TREE=<device-tree-name>
58f1ef2b62SMasahiro Yamada
59fa78e0a3SSimon Glassconfig OF_SPL_REMOVE_PROPS
60fa78e0a3SSimon Glass	string "List of device tree properties to drop for SPL"
61fa78e0a3SSimon Glass	depends on OF_CONTROL && SPL
62fa78e0a3SSimon Glass	default "pinctrl-0 pinctrl-names clocks clock-names interrupt-parent"
63fa78e0a3SSimon Glass	help
64fa78e0a3SSimon Glass	  Since SPL normally runs in a reduced memory space, the device tree
65fa78e0a3SSimon Glass	  is cut down to only what is needed to load and start U-Boot. Only
66fa78e0a3SSimon Glass	  nodes marked with the property "u-boot,dm-pre-reloc" will be
67fa78e0a3SSimon Glass	  included. In addition, some properties are not used by U-Boot and
68fa78e0a3SSimon Glass	  can be discarded. This option defines the list of properties to
69fa78e0a3SSimon Glass	  discard.
70fa78e0a3SSimon Glass
71783e6a72SMasahiro Yamadaendmenu
72