Hello,
We are using apalis i.mx6 modules. Our kernel versions are 5.7.6 and 6.1.83. We use Apalis i.mx6 modules. Until now we were able to manage all gpios that we need, but we are going to manage gpios 176, 178, 180 and 188 and we aren´t able to manage them.
We don´t know if these gpios need something special to be configured. But as with the others gpios we are using sysfs to manage.
In our device tree overlay we have set
&usdhc2 {
status = "disabled";
};
MX6QDL_PAD_SD2_DAT2__GPIO1_IO13 0x130b0 /* SODIMM 176 */
MX6QDL_PAD_SD2_DAT3__GPIO1_IO12 0x130b0 /* SODIMM 178 */
MX6QDL_PAD_SD2_CMD__GPIO1_IO11 0x130b0 /* SODIMM 180 */
MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x130b0 /* SODIMM 188 */
These are the steps that we follow:
GPIO 176
echo 13 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio13/direction
echo 1 > /sys/class/gpio/gpio13/value
echo 0 > /sys/class/gpio/gpio13/value
GPIO 178
echo 12 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio12/direction
echo 1 > /sys/class/gpio/gpio12/value
echo 0 > /sys/class/gpio/gpio12/value
GPIO 180
echo 11 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio11/direction
echo 1 > /sys/class/gpio/gpio11/value
echo 0 > /sys/class/gpio/gpio11/value
GPIO 188
echo 14 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio14/direction
cat /sys/class/gpio/gpio14/value
The problem that we face is that the real voltage at the gpio is always 3.3v. No changes are shown.
From documentation those gpios are configured to be GPIOS, so none peripheal takes control of them
This is the result from using ‘gpioinfo 0’ command before we try to configure them
gpiochip0 - 32 lines:
line 0: “MXM3_84” “regulator-usb-host-vbus” output active-low [used]
line 1: “MXM3_4” unused input active-high
line 2: “MXM3_15/GPIO7” unused input active-high
line 3: “MXM3_96” unused input active-high
line 4: “MXM3_37” unused input active-high
line 5: unnamed unused input active-high
line 6: “MXM3_17/GPIO8” unused input active-high
line 7: “MXM3_14” unused input active-high
line 8: “MXM3_12” unused input active-high
line 9: “MXM3_2” unused input active-high
line 10: “MXM3_184” unused input active-high
line 11: “MXM3_180” unused input active-high
line 12: “MXM3_178” unused input active-high
line 13: “MXM3_176” unused input active-high
line 14: “MXM3_188” unused input active-high
line 15: “MXM3_186” unused input active-high
line 16: “MXM3_160” unused input active-high
line 17: “MXM3_162” unused input active-high
line 18: “MXM3_150” unused input active-high
line 19: “MXM3_144” unused input active-high
line 20: “MXM3_154” unused input active-high
line 21: “MXM3_146” unused input active-high
line 22: unnamed unused input active-high
line 23: unnamed unused input active-high
line 24: “MXM3_72” unused input active-high
line 25: unnamed “phy-reset” output active-high [used]
line 26: unnamed unused input active-high
line 27: unnamed unused input active-high
line 28: unnamed unused input active-high
line 29: unnamed unused input active-high
line 30: unnamed unused input active-high
line 31: unnamed unused input active-high
For the GPIO 180 this is the gpioinfo 0 result after configured it
line 11: “MXM3_180” “sysfs” output active-high [used]
So could you help us and tell us if we are doing something wrong or if we have missed somethig?
Best Regards and thank you.