GPIOs on DIMM-MX6 under Linux

Please see the following table for the translation from baseboard pin to CPU pin:

 

Under Linux you can use sysfs to access gpios.

To get access to a GPIO pin, first, write the GPIO number to /sys/class/gpio/export

echo 40 [gt] /sys/class/gpio/export

Now you should find a directory in /sys/class/gpio to access your GPIO pin. Write in or out to direction to change the direction of the pin:

echo out [gt] /sys/class/gpio/gpio40/direction

The value (0 for off, 1 for on) of the pin is in the value file. To read or change it, read the file or write to it.

echo 1 [gt] /sys/class/gpio/gpio40/value
cat /sys/class/gpio/gpio40/value

The list of GPIO numbers can be found below.

 

Verno 3/Verno 4/Cadun

There are 8 GPIOs on J12 with a signal level of 3.3V and 14 more on J16 via an GPIO expander.

 

Connector Pin Signal Signal on MX6 Bank and pin GPIO Number
J12 4 GPIO_0 GPIO_0 2-0 32
J12 6 GPIO_1 GPIO_1 2-1 33
J12 8 GPIO_2 GPIO_2 2-2 34
J12 10 GPIO_3 GPIO_3 2-3 35
J12 12 GPIO_4 GPIO_4 1-9 9
J12 14 GPIO_5 GPIO_5 2-9 41
J12 16 GPIO_6 GPIO_6 2-10 42
J12 18 GPIO_7 GPO_7 2-27 59

Tarion

There are 2 GPIOs on J12 with a signal level of 3.3V and 14 more on J16 via an GPIO expander. The signal GPO_7 of DIMM-MX6 can only be used as output and not as input.

 

Connector Pin Signal Signal on MX6 Bank and pin GPIO Number
J12 4 GPIO_0 GPIO_0 2-0 32
J12 6 GPIO_1 GPIO_1 2-1 33

Lothron 3

The Lothron 3 has 8 accessible GPIO pins on J25.

 

Connector Pin Signal Signal on MX6 Bank and pin GPIO Number
J25 11 GPIO_0 GPIO_0 2-0 32
J25 12 GPIO_1 GPIO_1 2-1 33
J25 13 GPIO_2 GPIO_2 2-2 34
J25 14 GPIO_3 GPIO_3 2-3 35
J25 15 GPIO_4 GPIO_4 1-9 9
J25 16 GPIO_5 GPIO_5 2-9 41
J25 17 GPIO_6 GPIO_6 2-10 42
J25 18 GPIO_7 GPO_7 2-27 59
Facebook
X (Twitter)
YouTube
LinkedIn
Instagram