Tool/software:
root@am62axx-evm:/dev# uname -a Linux am62axx-evm 6.6.32-gdb8871293143-dirty #2 SMP PREEMPT Fri Nov 15 04:36:08 EST 2024 aarch64 aarch64 aarch64 GNU/Linux root@am62axx-evm:/dev# gpiodetect gpiochip0 [4201000.gpio] (24 lines) gpiochip1 [600000.gpio] (92 lines) gpiochip2 [601000.gpio] (52 lines) gpiochip3 [0-0048] (11 lines)
I am using an AM62 chip with SDK version 10.0.0.
I tried to use the gpio tool in the application layer to control GPIO0_89 to be high and then pull it low for the purpose of manually resetting the chip. When I try to configure the output of this pin using gpioset and gpioget etc. it does not configure properly and it does remain low when I measure it with a multimeter .
root@am62axx-evm:/dev# gpioset /dev/gpiochip1 89=1 root@am62axx-evm:/dev# gpioget /dev/gpiochip1 89 0
At the same time, when I configure another pin GPIO1_23, I can use this instruction to control it normally, and I can test it with a multimeter.
root@am62axx-evm:/dev# gpioget /dev/gpiochip2 23 1 root@am62axx-evm:/dev# gpioset /dev/gpiochip2 23=0 root@am62axx-evm:/dev# gpioget /dev/gpiochip2 23 0
dmesg prints the following
[ 1321.003665] gpio gpiochip1: Persistence not supported for GPIO 89 [ 1321.003690] gpio gpiochip1: registered chardev handle for line 89 [ 1321.003713] gpio gpiochip1: registered chardev handle for 1 lines [ 1772.929431] gpio gpiochip1: Persistence not supported for GPIO 89 [ 1772.929456] gpio gpiochip1: registered chardev handle for line 89 [ 1772.929476] gpio gpiochip1: registered chardev handle for 1 lines [ 1779.010352] gpio gpiochip1: Persistence not supported for GPIO 89 [ 1779.010376] gpio gpiochip1: registered chardev handle for line 89 [ 1779.010397] gpio gpiochip1: registered chardev handle for 1 lines [ 1927.101133] gpio gpiochip2: Persistence not supported for GPIO 23 [ 1927.101157] gpio gpiochip2: registered chardev handle for line 23 [ 1927.101177] gpio gpiochip2: registered chardev handle for 1 lines [ 1932.502128] gpio gpiochip2: Persistence not supported for GPIO 23 [ 1932.502153] gpio gpiochip2: registered chardev handle for line 23 [ 1932.502172] gpio gpiochip2: registered chardev handle for 1 lines [ 1933.760519] gpio gpiochip2: Persistence not supported for GPIO 23 [ 1933.760544] gpio gpiochip2: registered chardev handle for line 23 [ 1933.760563] gpio gpiochip2: registered chardev handle for 1 lines