]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - doc/README.KARO-FDT
merged tx6dl-devel into denx master branch
[karo-tx-uboot.git] / doc / README.KARO-FDT
1                                  Managing the device tree data in U-Boot
2                                  =======================================
3
4 The 'fdt' command can be used to manipulate the device tree (DT) data
5 that is passed from U-Boot to Linux.
6
7 - 'fdt boardsetup' will trim out some device nodes according to
8   environment settings:
9
10 Environment setting             removed nodes
11 ---------------------------------------------
12 otg_mode=host                   usbh1
13 otg_mode=device                 usbotg
14 otg_mode=<UNSET>                <both of the above> + usbphy
15
16 touchpanel=edt-ft5x06           ti,tsc2007
17 touchpanel=tsc2007              edt,edt-ft5x06
18 touchpanel=<UNSET>              <both of the above>
19
20 Note: This command is automatically executed when booting Linux via
21       'run bootm_cmd'.
22
23 - 'fdt rm' and 'fdt add' can be used to remove/create additional nodes.
24
25 The whole DT data can be saved to and reloaded from the flash partition
26 'dtb' (or any other partition):
27   nand erase.part dtb
28   nand write.jffs2 ${fdtaddr} dtb ${fdtsize}
29
30 If a DT is loaded from flash which should not be further manipulated
31 upon booting Linux, the string 'fdt boardsetup;' should be removed
32 from the 'bootm_cmd' environment variable.
33
34 Loading the DT data:
35   nand read ${fdtaddr} dtb