Hi,
tdx-info
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.6.84-7.2.0-devel #1 SMP PREEMPT Thu Mar 27 16:42:10 UTC 2025
Kernel command line: root=PARTUUID=5754471f-02 ro rootwait console=tty1 console=ttyS2,115200
Distro name: NAME="TDX Wayland with XWayland"
Distro version: VERSION_ID=7.2.0-devel-20250603185829-build.0
Distro variant: -
Hostname: verdin-am62-15387774
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin AM62 WB on Verdin Development Board
Toradex version: 0075 V1.1C
Serial number: 15387774
Processor arch: aarch64
------------------------------------------------------------
I am trying to configure SODIMM_206 as an output. The vendor DTSI defines this pin as input in &mcu_pmx0.
&mcu_pmx0 {
/* Verdin PCIE_1_RESET# */
pinctrl_pcie_1_reset: mcu-gpio0-0-default-pins {
pinctrl-single,pins = <
AM62X_MCU_IOPAD(0x0000, PIN_INPUT, 7) /* (E8) MCU_SPI0_CS0.MCU_GPIO0_0 */ /* SODIMM 244 */
>;
};
/* Verdin GPIO_1 */
pinctrl_gpio_1: mcu-gpio0-1-default-pins {
pinctrl-single,pins = <
AM62X_MCU_IOPAD(0x0004, PIN_INPUT, 7) /* (B8) MCU_SPI0_CS1.MCU_GPIO0_1 */ /* SODIMM 206 */
>;
};
I tried creating a Device Tree overlay like this to configure it as OUTPUT
/dts-v1/; // Declares the syntax version of the DTS file.
/plugin/; // Indicates that this is a Device Tree Overlay.
// Header file with GPIO macros
#include <dt-bindings/gpio/gpio.h>
// Header file with SoC-specific pinmux macros
#include "k3-pinctrl.h"
/ {
compatible = "toradex,verdin-am62"; // Set hardware compatibility
};
&mcu_pmx0 {
pinctrl_gpio_1: mcu-gpio0-1-default-pins {
pinctrl-single,pins = <
AM62X_MCU_IOPAD(0x0004, PIN_OUTPUT, 7)
>;
};
};
&mcu_gpio0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_1>,
<&pinctrl_gpio_2>,
<&pinctrl_gpio_3>,
<&pinctrl_gpio_4>,
<&pinctrl_pcie_1_reset>;
};
But after applying the overlay, gpioinfo still shows the pin as input.
Here is the bbappend file:
FILESEXTRAPATHS:prepend := "${THISDIR}/device-tree-overlays-ti:"
CUSTOM_OVERLAYS_SOURCE = " \
gpio-verdin-am62-overlay.dts \
"
CUSTOM_OVERLAYS_BINARY = " \
gpio-verdin-am62-overlay.dtbo \
"
SRC_URI += " \
file://gpio-verdin-am62-overlay.dts \
"
TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT = " \
${CUSTOM_OVERLAYS_BINARY} \
"
TEZI_EXTERNAL_KERNEL_DEVICETREE:append = " \
${CUSTOM_OVERLAYS_BINARY} \
"
do_collect_overlays:prepend() {
for DTS in ${CUSTOM_OVERLAYS_SOURCE}; do
cp ${WORKDIR}/${DTS} ${S}
done
}
What is the proper way to set SODIMM206 as output? Any guidance or working examples would be greatly appreciated.