This successfully downloads to the development board however the overlay is not successfully applied. I have run the ‘dmesg’ command checked the output. I have noticed the following errors
[ 0.933983] imx8mm-pinctrl 30330000.pinctrl: pin MX8MM_IOMUXC_UART3_RXD already requested by 30330000.pinctrl; cannot claim for leds
[ 0.933997] imx8mm-pinctrl 30330000.pinctrl: pin-145 (leds) status -22
[ 0.934005] imx8mm-pinctrl 30330000.pinctrl: could not request pin 145 (MX8MM_IOMUXC_UART3_RXD) from group myledgrp on device 30330000.pinctrl
[ 0.934013] leds-gpio leds: Error applying setting, reverse things back
Any pointers and help would be greatly appreciated.
Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
The error message you’re encountering indicates that the pin MX8MM_IOMUXC_UART3_RXD (SODIMM 210) is already being used by another function in the system, which prevents your device tree overlay from claiming it for GPIO use. This is a common issue when multiple functionalities are assigned to the same pin without proper reconfiguration.
To resolve this issue, you need to ensure that the pin is not being used by another driver or function. This typically involves modifying the device tree to disable the conflicting function before you can use the pin as a GPIO. Here’s how you can approach this:
Identify the conflicting function: Based on the error, the UART3_RXD function is currently claiming the pin. You’ll need to locate where this pin is defined in the device tree for its original purpose (in this case, as part of UART3) and make the necessary adjustments.
Disable the conflicting function: If UART3 is not needed for your application, you can disable it in the device tree to free up the pin. This can be done by setting the status of UART3 to “disabled”. For example:
&uart3 {
status = "disabled";
};
Apply your overlay: After ensuring that the pin is no longer claimed by another function, your overlay should be able to apply without errors. Make sure your overlay is correctly formatted and applied according to the Torizon or Yocto Project documentation for device tree overlays.
Verify the changes: After applying the overlay, use the dmesg command again to check for any errors and ensure that the pin configuration has been applied successfully. You can also use tools like gpioinfo or gpioset from the libgpiod package to verify the pin’s state and control it from userspace.
Remember, modifying the device tree and working with overlays requires a careful approach to avoid conflicts and ensure that all hardware components function as expected. Always backup your original device tree files before making changes.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem: