Jump to content

NVIDIA Jetson - Device Tree Overlay: Difference between revisions

Line 117: Line 117:
*'''__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.


To show the device tree nodes works, 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 works, we are going to create a device tree overlay to add a change to 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 162: Line 162:


* label: <code>hdr40_pinmux</code>
* label: <code>hdr40_pinmux</code>
* Properties mapping the names of unresolved symbols: <code>target = <&pinmux>;</code>
* Properties that map the names of unresolved symbols: <code>target = <&pinmux>;</code>
* References to labels that exist within the overlay: <code>hdr40_pinmux</code>
* References to labels that exist within the overlay: <code>hdr40_pinmux</code>


To see how the compiler dynamic Resolves these labels and symbols, you can see the dtbo file generated. Compile the device tree and use <code>fdtdump</code> to see the device tree overlay content.
To see how the compiler dynamically resolves these labels and symbols, you can see the dtbo file generated. Compile the device tree and use <code>fdtdump</code> to see the device tree overlay content.


<source lang="bash">
<source lang="bash">
35

edits

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