Changes between Version 3 and Version 4 of linux/devicetree


Ignore:
Timestamp:
10/31/2017 03:12:27 PM (8 months ago)
Author:
Tim Harvey
Comment:

updated links and remove reference to dated not device-tree kernel

Legend:

Unmodified
Added
Removed
Modified
  • linux/devicetree

    v3 v4  
    66Typically 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.
    77
    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)
     8The Gateworks Ventana product family based off the Freescale i.MX6 CPU, uses devicetree.
    99
    10 [[Image(devicetree.png,400px)]]
    1110
    1211== Device Tree Terminology ==
     
    1918You can find the device tree files in arch/arm/boot/dts
    2019
    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]
     20For 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]
    2221
    2322
     
    2928Examples:
    3029 * display the fdt of a Ventana board (loaded from NAND flash ubifs):
    31 {{{
     30{{{#!bash
    3231setenv fsload 'ubifsload'
    3332ubi part rootfs && ubifsmount ubi0:rootfs
     
    3635}}}
    3736 * disable PCI via device-tree:
    38 {{{
     37{{{#!bash
    3938setenv fsload 'ubifsload'
    4039ubi part rootfs && ubifsmount ubi0:rootfs
     
    5251Examples:
    5352 * show board model:
    54 {{{
     53{{{#!bash
    5554echo $(cat /proc/device-tree/board)
    5655}}}
    5756 * show board serialnumber
    58 {{{
     57{{{#!bash
    5958echo $(cat /proc/device-tree/system-serial)
    6059}}}
    6160 * show devicetree compatible node (this describes which device-tree was used as there is one per base-board design):
    62 {{{
     61{{{#!bash
    6362echo $(cat /proc/device-tree/compatible)
    6463}}}
    6564 * show chosen bootargs (the bootargs passed in by the bootloader, same as /proc/cmdline):
    66 {{{
     65{{{#!bash
    6766echo $(cat /proc/device-tree/chosen/bootargs)
    6867}}}