Hello,
We are using the Verdin AM62 with the Dahlia Board and are currently experimenting with GPIO behavior for our tests.
There is a GPIO pin (SODIMM_206) defined as an input with pull-up enabled in the device tree. I would like to change this configuration to pull-down from the Linux terminal using the gpioget tool.
The target pin is AM62 SODIMM_206, which corresponds to X20.27 on the Dahlia Board.
We refer to it as GPIO_1 → gpiochip1, line 1.
Here is the relevant part of the device tree:
&mcu_pmx0 {
/* Baseboard GPIO_1 */
pinctrl_gpio_1: mcu-gpio0-1-default-pins {
pinctrl-single,pins = <
AM62X_MCU_IOPAD(0x0004, PIN_INPUT_PULLUP, 7) /* (B8) MCU_GPIO0_1 */ /* SODIMM 206 */
>;
};
..
}
When the board boots, I measure 1.8V on the pin, which confirms that the pull-up is correctly enabled.
When I check the configuration using gpioinfo, here is the output:
root@verdin-am62-15564022:~# gpioinfo -c1
gpiochip1 - 24 lines:
line 0: "GPIO_9" input
line 1: "GPIO_1" input <<<-- pull-up enabled in device tree, but not shown here
line 2: "GPIO_2" input
line 3: "GPIO_3" input
line 4: "GPIO_4" input
line 5: "GPIO_10" input
line 6: "GPIO_11" input
line 7: "GPIO_12" input
line 8: "GPIO_13" input
line 9: unnamed input
line 10: unnamed input
line 11: unnamed input
line 12: unnamed input
line 13: unnamed input
line 14: unnamed input
line 15: unnamed input
line 16: "GPIO_14" input
line 17: unnamed input
line 18: unnamed input
line 19: unnamed input
line 20: unnamed input
line 21: unnamed input
line 22: unnamed input
line 23: unnamed input
Next, I try to change the bias to pull-down with the following command:
root@verdin-am62-15564022:~# gpioget --bias pull-down -p30000 -c1 1&
[1] 26623
root@verdin-am62-15564022:~# gpioinfo -c1
gpiochip1 - 24 lines:
line 0: "GPIO_9" input
line 1: "GPIO_1" input bias=pull-down consumer="gpioget"
line 2: "GPIO_2" input
line 3: "GPIO_3" input
line 4: "GPIO_4" input
line 5: "GPIO_10" input
line 6: "GPIO_11" input
line 7: "GPIO_12" input
line 8: "GPIO_13" input
line 9: unnamed input
line 10: unnamed input
line 11: unnamed input
line 12: unnamed input
line 13: unnamed input
line 14: unnamed input
line 15: unnamed input
line 16: "GPIO_14" input
line 17: unnamed input
line 18: unnamed input
line 19: unnamed input
line 20: unnamed input
line 21: unnamed input
line 22: unnamed input
line 23: unnamed input
As shown, the bias is now reported as pull-down. However, when measuring the pin, I still see 1.8V, which indicates that the pull-up is still active despite the tool reporting otherwise.
Info about the board:
root@verdin-am62-15564022:~# tdx-info
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.6.94-7.4.0-devel #1 SMP PREEMPT Wed Aug 20 11:57:36 UTC 2025
Kernel command line: root=PARTUUID=04e80fcc-02 ro rootwait console=tty1 console=ttyS2,115200
Distro name: NAME="TDX Wayland with XWayland"
Distro version: VERSION_ID=7.4.0-devel-20250815115749-build.0
Distro variant: -
Hostname: verdin-am62-15564022
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: REFERENCE BOARD using Verdin AM62
Toradex version: 0076 V1.2A
Serial number: 15564022
Processor arch: aarch64
------------------------------------------------------------
Thank you.