xref: /rk3399_rockchip-uboot/dts/Kconfig (revision 3d3f60cb7a6bb6c338e00a9769fa918a8536096c)
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
17dffb86e4SMasahiro Yamadaconfig SPL_OF_CONTROL
18dffb86e4SMasahiro Yamada	bool "Enable run-time configuration via Device Tree in SPL"
19dffb86e4SMasahiro 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
40*3d3f60cbSSimon Glass	  built into the U-Boot image. This is suitable for local debugging
41*3d3f60cbSSimon Glass	  and development only and is not recommended for production devices.
42*3d3f60cbSSimon Glass	  Boards in the mainline U-Boot tree should not use it.
43783e6a72SMasahiro Yamada
44783e6a72SMasahiro Yamadaconfig OF_HOSTFILE
45783e6a72SMasahiro Yamada	bool "Host filed DTB for DT control"
46783e6a72SMasahiro Yamada	depends on SANDBOX
47783e6a72SMasahiro Yamada	help
48783e6a72SMasahiro Yamada	  If this option is enabled, DTB will be read from a file on startup.
49783e6a72SMasahiro Yamada	  This is only useful for Sandbox.  Use the -d flag to U-Boot to
50783e6a72SMasahiro Yamada	  specify the file to read.
51783e6a72SMasahiro Yamada
52783e6a72SMasahiro Yamadaendchoice
53783e6a72SMasahiro Yamada
54f1ef2b62SMasahiro Yamadaconfig DEFAULT_DEVICE_TREE
55f1ef2b62SMasahiro Yamada	string "Default Device Tree for DT control"
56f1ef2b62SMasahiro Yamada	help
57f1ef2b62SMasahiro Yamada	  This option specifies the default Device Tree used for DT control.
585699ea6dSRobert P. J. Day	  It can be overridden from the command line:
59f1ef2b62SMasahiro Yamada	  $ make DEVICE_TREE=<device-tree-name>
60f1ef2b62SMasahiro Yamada
61fa78e0a3SSimon Glassconfig OF_SPL_REMOVE_PROPS
62fa78e0a3SSimon Glass	string "List of device tree properties to drop for SPL"
63897705ecSMasahiro Yamada	depends on SPL_OF_CONTROL
646aa8179fSMasahiro Yamada	default "clocks clock-names interrupt-parent" if SPL_PINCTRL_FULL
65fa78e0a3SSimon Glass	default "pinctrl-0 pinctrl-names clocks clock-names interrupt-parent"
66fa78e0a3SSimon Glass	help
67fa78e0a3SSimon Glass	  Since SPL normally runs in a reduced memory space, the device tree
68fa78e0a3SSimon Glass	  is cut down to only what is needed to load and start U-Boot. Only
69fa78e0a3SSimon Glass	  nodes marked with the property "u-boot,dm-pre-reloc" will be
70fa78e0a3SSimon Glass	  included. In addition, some properties are not used by U-Boot and
71fa78e0a3SSimon Glass	  can be discarded. This option defines the list of properties to
72fa78e0a3SSimon Glass	  discard.
73fa78e0a3SSimon Glass
74783e6a72SMasahiro Yamadaendmenu
75