NVIDIA Jetson - Device Tree Overlay: Difference between revisions

Line 108: Line 108:




==Creating a Tree Overlay to configure GPIO as UART==
==Device tree overlay nodes==


To create a device tree overlay to add a change the GPIO configuration for Jetson TX2 Developer Kit, create a file named tx2-uart-overlay.dts on the target platform with the following contents:
Since in a device tree overlay some symbols can not be defined, since they are defined in the device tree, then is required overlay nodes to manage this cases.
To show the device tree node, we are going to create a device tree overlay to add a change the GPIO configuration for Jetson TX2 Developer Kit as example.
Create a file named tx2-uart-overlay.dts on the target platform with the following contents:


<source lang="c">
<source lang="c">
Line 116: Line 118:
/plugin/;
/plugin/;
/ {
/ {
     overlay-name = "d3_overlay_v4";
     overlay-name = "tx2_uart_overlay";
     compatible = "nvidia,p2597-0000+p3310-1000";
     compatible = "nvidia,p2597-0000+p3310-1000";


Line 149: Line 151:
     };
     };
};
};
</source>


</source>
 
*'''__overlay__''': contains the body of which is added to the target node.
*'''__symbols__''': This node is only required for the target=<phandle> method, since it contains the information required to map from a phandle to a tree location.
*'''__fixups__''': contains a list of properties mapping the names of unresolved symbols to lists of paths to cells within the fragments that need patching with the phandle of the target node. This section only is created if the device tree contains /plugin/ tag.
*'''__local_fixups__:''' holds the locations of any references to labels that exist within the overlay


==References==
==References==
214

edits