Changes between Version 3 and Version 4 of linux/devicetree
- Timestamp:
- 10/31/2017 10:12:27 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
linux/devicetree
v3 v4 6 6 Typically the bootloader will pass a 'flattened device tree' (a compiled binary representation of a device-tree) to the kernel so that the kernel can configure all the components on the board. 7 7 8 The Gateworks Ventana product family based off the Freescale i.MX6 CPU, uses devicetree (with the exception of the early Yocto 1.3 and Android jellybean BSP's which were based on a 3.0.35 non-device-tree kernel)8 The Gateworks Ventana product family based off the Freescale i.MX6 CPU, uses devicetree. 9 9 10 [[Image(devicetree.png,400px)]]11 10 12 11 == Device Tree Terminology == … … 19 18 You can find the device tree files in arch/arm/boot/dts 20 19 21 For an example, see here: [https://github.com/Gateworks/linux-imx6/blob/gateworks_3.10.53_1.1.0_ga/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi]20 For an example, see [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi imx6qdl-gw54xx.dtsi] 22 21 23 22 … … 29 28 Examples: 30 29 * display the fdt of a Ventana board (loaded from NAND flash ubifs): 31 {{{ 30 {{{#!bash 32 31 setenv fsload 'ubifsload' 33 32 ubi part rootfs && ubifsmount ubi0:rootfs … … 36 35 }}} 37 36 * disable PCI via device-tree: 38 {{{ 37 {{{#!bash 39 38 setenv fsload 'ubifsload' 40 39 ubi part rootfs && ubifsmount ubi0:rootfs … … 52 51 Examples: 53 52 * show board model: 54 {{{ 53 {{{#!bash 55 54 echo $(cat /proc/device-tree/board) 56 55 }}} 57 56 * show board serialnumber 58 {{{ 57 {{{#!bash 59 58 echo $(cat /proc/device-tree/system-serial) 60 59 }}} 61 60 * show devicetree compatible node (this describes which device-tree was used as there is one per base-board design): 62 {{{ 61 {{{#!bash 63 62 echo $(cat /proc/device-tree/compatible) 64 63 }}} 65 64 * show chosen bootargs (the bootargs passed in by the bootloader, same as /proc/cmdline): 66 {{{ 65 {{{#!bash 67 66 echo $(cat /proc/device-tree/chosen/bootargs) 68 67 }}}