SDAA507A October   2026  – November 2026 AM62L

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1 Introduction
  5. 2 Installing the SDK
  6. 3 Understanding the AM62Lx Bootflow
  7. 4 TF-A Build System Integration
  8. 5 U-Boot Build System Integration
  9. 6 Minimal Devicetree and Reaching the U-Boot Prompt
    1. 6.1 Introduction to Devicetrees
    2. 6.2 Minimal Platform Support
    3. 6.3 Adding Custom Board Devicetrees
    4. 6.4 Initial Devicetree Modifications
    5. 6.5 Building U-Boot
    6. 6.6 Reaching the U-Boot Prompt
  10. 7 Expanding the Devicetree
    1. 7.1 Adding New Devicetree Nodes
    2. 7.2 Revising Devicetree Nodes
    3. 7.3 Devicetree Development Tips
  11. 8 Booting the Linux Kernel
    1. 8.1 Boot Method Overview
    2. 8.2 Reaching the Linux Command Prompt
  12. 9 Tools and Debugging
    1. 9.1 Debug Traces
    2. 9.2 OpenOCD
  13. 10Future Work
  14. 11Summary
  15. 12References
  16.   Revision History

Initial Devicetree Modifications

The device trees created in the U-Boot repository must be modified to function properly on the new custom hardware. This section walks through the necessary modifications required prior to attempting the first board boot.

The pin configurations in the custom board device tree were generated using TI's SysConfig PinMux Tool for a TI EVM. This application maps internal peripheral signals to physical external balls on the SoC package. Because of hardware multiplexing constraints, only specific pin combinations are valid. The tool identifies these restrictions and provides warnings and errors for invalid configurations. Finally, the tool exports the configuration files to integrate into the U-Boot source code. Board designers should use the SysConfig tool to develop valid pin configurations for their specific use case. The board designer must then pass these generated files to the software developer to ensure an efficient board bring-up process.

CAUTION: The board design and the software pin configuration must be kept strictly in sync. An invalid pin configuration in either the hardware design or the software can lead to system instability that is difficult to diagnose and debug. Any pin-related hardware change must be validated with the SysConfig PinMux Tool and immediately reflected in software.

Generate DTSI for pin configuration:

After launching the SysConfig tool and logging in to your myTI account, set the "Device" field to "AM62L". Start the program. Once within the PinMux tool, look at the left side column under "PERIPHERALS": Click the + sign next to the controller you want to route. Some controller instances are grouped together (for example, MCAN0, MCAN1, MCAN2), so the "Use Peripheral" dropdown can be used to further select a specific instance of a controller.

  • Configuring Mux Modes: Under the individual signal dropdowns (for example., TXD or RXD), choose your target physical pin ball number
  • Setting Pin Attributes: IO characteristics must be set explicitly:
    • Enable or disable the internal "Pull Up/Down" resistors
    • Set pin direction to "PIN_INPUT" or "PIN_OUTPUT" by toggling the "Rx" box

To review the final pin configurations, click on the devicetree.dtsi file listed in the rightmost column. This action launches an editor view with all configuration changes displayed in DTS language. See the SysConfig DDR Configuration README for a complete guide to this tool.

The default pin configurations in the minimal device tree are tailored for the TI EVM and do not require modification if the reference hardware is used. However, when deploying a custom board, replace these default settings with the custom pin configuration generated by TI's SysConfig tool. There are two methods to accomplish this:

  • Method 1: Include the Generated DTSI File: Copy the SysConfig-generated DTSI file directly into the U-Boot source directory where the DTS file is located, and add an "#include" directive at the top of the k3-am62lx-<boardname>.dts file. This is the preferred industry practice because it separates automated, machine-generated code from manual board configurations and it keeps the main devicetree clean and simplifies future pinmux updates. With this method, remove the existing pmx0 node in k3-am62lx-<boardname>.dts and rename the DTSI generated main_pmx0 node name to pmx0.
  • Method 2: Directly Paste the Pinmux Contents: Delete the contents of the pmx0 node in k3-am62lx-<boardname>.dts and paste the raw text contents of the SysConfig-generated file in its place. This is the commonly used method on TI device trees, an example of this method is shown below.
    &pmx0 {
    - [... UART pin configuration ...]
    - [... SD pin configuration ...]
    };
    
    &pmx0 {
    + [... New pin configurations ...]
    };

After defining the pin settings, you must link the new configuration to its respective peripheral node. This is achieved by updating the pinctrl-0 property within the peripheral node in k3-am62lx-<boardname>.dts.

Suppose the new pin configuration node, labeled "uart0_custom_pins_default", for UART0 looks like the following:

+ uart0_custom_pins_default: uart0-custom-default-pins {
+      pinctrl-single,pins = <
+           AM62LX_IOPAD(0x01b4, PIN_INPUT, 0) /* (D13) UART0_RXD */
+           AM62LX_IOPAD(0x01b8, PIN_OUTPUT, 0) /* (C13) UART0_TXD */
+      >;
+ };

To apply this configuration in software, modify the pinctrl-0 property within the UART0 node as shown below. Ensure you use the exact reference label (e.g., &uart0_custom_pins_default) to prevent devicetree compilation errors.

&uart0 {
     bootph-all;
     status = "okay";
     pinctrl-names = "default";
-    pinctrl-0 = <&main_uart0_pins_default>;
+    pinctrl-0 = <&uart0_custom_pins_default>;
};

Repeat this process for all subsequent peripherals added to the new custom devicetree file.

The default peripheral instances configured in the reference devicetree template also need to be updated. The template assumes UART0 is designated for the serial console and UART boot, and that MMC1 serves as the SD card interface. If the custom hardware uses different peripheral instances, you must update the corresponding devicetree nodes to match the hardware.

In the example below, assume that the correct UART instance for the serial console is UART1. Modify the k3-am62lx-<boardname>.dts file as shown below to configure UART1 as the primary console output.

- &uart0 {
+ &uart1 {
     bootph-all;
     status = "okay";
     pinctrl-names = "default";
-    pinctrl-0 = <&uart0_custom_pins_default>;
+    pinctrl-0 = <&uart1_custom_pins_default>;
};

If a peripheral instance is changed (e.g., from &uart0 to &uart1), its pin configuration must also be updated. In the above example, the pinctrl-0 property is updated to reference the pin configuration node for UART1.

If the UART instance for the serial console is changed, the chosen node must be updated accordingly. The example below demonstrates this modification:

chosen {
- stdout-path = &uart0;
+ stdout-path = &uart1;
};

This ensures the Linux kernel uses the correct UART instance for the console handoff, preventing a 'blind boot' where early kernel log output is lost before the main serial driver initializes.

If the custom board does not feature an SD card slot, remove the &sdhci1 node as shown below. This prevents unnecessary MMC timeout and boot errors from occurring during initialization.

- &sdhci1 {
-     [... Properties ...]
- };

At the top of the device tree, the compatible and model property is set to "minimal" and "ti". Modify this string for the custom board as seen below.

- compatible = "ti,am62l3-minimal", "ti,am62l3";
- model = "Texas Instruments AM62L3 MINIMAL";
+ compatible = "<company>,am62lx-<boardname>", "ti,am62l3";
+ model = "<company> <boardname>";