I have a ROCK 3a v 1.3 board.
rock-3a_debian_bullseye_xfce_b25.img.xz
U-Boot latest-2023.07.02-3-b1eb2bde-gb1eb2bde (Aug 29 2023 - 10:43:04 +0000)
Linux rock-3a 5.10.160-12-rk356x #fd78925da SMP Tue Aug 29 11:45:05 UTC 2023 aarch64
I want to use 36pin GPIO3_A2.
My actions:
root@rock-3a:/home/rock# gpiodetect
gpiochip0 [gpio0] (32 lines)
gpiochip1 [gpio1] (32 lines)
gpiochip2 [gpio2] (32 lines)
gpiochip3 [gpio3] (32 lines)
gpiochip4 [gpio4] (32 lines)
gpiochip5 [rk817-gpio] (1 lines)
root@rock-3a:/home/rock# gpioinfo gpio3
gpiochip3 - 32 lines:
line 0: unnamed unused input active-high
line 1: unnamed unused input active-high
line 2: unnamed unused input active-high
line 3: unnamed unused input active-high
line 4: unnamed unused input active-high
line 5: unnamed unused input active-high
line 6: unnamed unused input active-high
etc.
root@rock-3a:/home/rock# gpioget gpio3 2
1
root@rock-3a:/home/rock# gpioset gpio3 2=0
root@rock-3a:/home/rock# gpioget gpio3 2
1
If I try to do the same for 38pin GPIO3_A6, then it works
root@rock-3a:/home/rock# gpioget gpio3 6
0
root@rock-3a:/home/rock# gpioset gpio3 6=1
root@rock-3a:/home/rock# gpioget gpio3 6
1
- why is gpio3 2 (GPIO3_A2) set to 1 by default?
- why gpio3 2 (GPIO3_A2) does not change its value?
I’m confused.