Jump to content

NVIDIA Jetson - Device Tree Overlay: Difference between revisions

Line 110: Line 110:


In a device tree overlay, symbols and labels that are not defined in the device tree overlay can not be used, since they are defined in the original device tree. To manage these cases the device tree overlay defines extra nodes to define symbols and labels that are not defined.
In a device tree overlay, symbols and labels that are not defined in the device tree overlay can not be used, since they are defined in the original device tree. To manage these cases the device tree overlay defines extra nodes to define symbols and labels that are not defined.
This extra node can be defined manually or you can use the tag /plugin/ and the device tree compiler dynamic resolves all the references to the device tree
This extra node can be defined manually or you can use the tag <code>/plugin/</code> and the device tree compiler dynamic resolves all the references to the device tree
/plugin/; /* allow undefined label references and record them */
To show the device tree nodes, we are going to create a device tree overlay to add a change the GPIO configuration for Jetson TX2 Developer Kit.
To show the device tree nodes, we are going 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:
Create a file named tx2-uart-overlay.dts on the target platform with the following contents:
Line 160: Line 159:
</source>
</source>


This is the fdtdump tool output
This is the <code>fdtdump</code> tool output


<source lang="bash">
<source lang="bash">
Line 225: Line 224:
*'''__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.
*'''__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.
*'''__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
*'''__local_fixups__:''' holds the locations of any references to labels that exist within the overlay.


==References==
==References==
214

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.