I have recently installed Linux 2.7 BSP in the iMX6 using legacy scripts. In order to use GPIOs from sys I have modified imx6dl-colibri-eval-v3.dtb file and added “status = “disabled”;” in gpio_keys. However I can’t use GPIO 54 SODIMM pin 45 that it was set as wake up. But this GPIO doesn’t appear more as wake up button, so what is failing? This is my cat /sys/kernel/debug/gpio" output:
root@colibri-imx6:~# cat /sys/kernel/debug/gpio GPIOs 0-31, platform/209c000.gpio, 209c000.gpio: GPIOs 32-63, platform/20a0000.gpio, 20a0000.gpio: gpio-37 (cd ) in hi GPIOs 64-95, platform/20a4000.gpio, 20a4000.gpio: gpio-90 (enable ) out lo gpio-95 (usb_host_vbus ) out lo GPIOs 96-127, platform/20a8000.gpio, 20a8000.gpio: gpio-108 (scl ) in hi gpio-109 (sda ) in hi GPIOs 128-159, platform/20ac000.gpio, 20ac000.gpio: gpio-130 (spi_imx ) out lo GPIOs 160-191, platform/20b0000.gpio, 20b0000.gpio: GPIOs 192-223, platform/20b4000.gpio, 20b4000.gpio: gpio-204 (id ) in lo
But now I also have problems other GPIO. The GPIOs I use to read digital inputs are GPIO 15, 52, 50, and 51, SODIMM pins 98, 103, 97 and 79 respectively. The problem is that when I read that Gpios they are set to 1 when the digital inputs are OFF or ON. They are always set to 1 without changes…
With the Colibri iMX7 I have followed the same procedure and everything works perfectly.
I wonder if the imx6dl-colibri-eval-v3.dtb change could have triggered this failure…
Thanks in advance;