GPIO configuration on IMX.6

Hi @leighjboyd ,

I have some good news for you: based on the steps given by @jeremias.tx I was able to make both SODIMM 113 and 123 function correctly as GPIO. I made some tests using gpioset and your ToggleGPIO() and everything works: both pins can be set and I can read the correct value of SODIMM 123.

Here is what I’ve done in the device tree:

  • Disabled weim as that uses the pins we need;
  • Created a custom pinctrl group with both pins in it set as GPIO;
  • In iomuxc I added this group to pinctrl-0, a property that wasn’t declared before;
  • I also created pinctrl-names inside iomuxc.

All these changes are in the attached Device Tree source file. It is a copy of imx6dl-colibri-eval-v3.dts albeit with the above modifications. You can use TorizonCore Builder to create a custom image that uses this .dts file.

Let me know if that works for you.

Best regards,
Lucas Akira

imx6dl-colibri-eval-v3-gpio-custom.dts (4.5 KB)