SDAA507A October 2026 – November 2026 AM62L
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.
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.
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:
&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>";