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 > /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 > /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 > /sys/class/gpio/gpio40/valuecat /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.

 

ConnectorPinSignalSignal on MX6Bank and pinGPIO Number
J124GPIO_0GPIO_02-032
J126GPIO_1GPIO_12-133
J128GPIO_2GPIO_22-234
J1210GPIO_3GPIO_32-335
J1212GPIO_4GPIO_41-99
J1214GPIO_5GPIO_52-941
J1216GPIO_6GPIO_62-1042
J1218GPIO_7GPO_72-2759

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.

 

ConnectorPinSignalSignal on MX6Bank and pinGPIO Number
J124GPIO_0GPIO_02-032
J126GPIO_1GPIO_12-133

Lothron 3

The Lothron 3 has 8 accessible GPIO pins on J25.

 

ConnectorPinSignalSignal on MX6Bank and pinGPIO Number
J2511GPIO_0GPIO_02-032
J2512GPIO_1GPIO_12-133
J2513GPIO_2GPIO_22-234
J2514GPIO_3GPIO_32-335
J2515GPIO_4GPIO_41-99
J2516GPIO_5GPIO_52-941
J2517GPIO_6GPIO_62-1042
J2518GPIO_7GPO_72-2759



Zurück