GPIOs on DIMM-RZ/A1H 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 an GPIO pin, first, write the GPIO number to /sys/class/gpio/export

echo 83 > /sys/class/gpio/export

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

echo out > /sys/class/gpio/GPIO0/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/GPIO0/valuecat /sys/class/gpio/GPIO0/value

The list of GPIO numbers can be found below.

 

Verno 3/Verno 4/Cadun

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

 

ConnectorPinSignalSignal on RZ/A1HPort and pinGPIO Number
J124GPIO_0GPIO06-383
J126GPIO_1GPIO16-484
J128GPIO_2GPIO24-054
J1210GPIO_3GPIO34-155
J1212GPIO_4GPIO44-256
J1214GPIO_5GPIO54-357
J1216GPIO_6GPIO611-12165
J1218GPIO_7GPIO711-13

166

J1220GPIO_8GPIO811-14

167

J1222GPIO_9GPIO911-15

168




Back