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 [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 the direction to change the direction of the pin:

echo out [gt] /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 [gt] /sys/class/gpio/GPIO0/value
cat /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.

 

Connector Pin Signal Signal on RZ/A1H Port and pin GPIO Number
J12 4 GPIO_0 GPIO0 6-3 83
J12 6 GPIO_1 GPIO1 6-4 84
J12 8 GPIO_2 GPIO2 4-0 54
J12 10 GPIO_3 GPIO3 4-1 55
J12 12 GPIO_4 GPIO4 4-2 56
J12 14 GPIO_5 GPIO5 4-3 57
J12 16 GPIO_6 GPIO6 11-12 165
J12 18 GPIO_7 GPIO7 11-13

166

J12 20 GPIO_8 GPIO8 11-14

167

J12 22 GPIO_9 GPIO9 11-15

168

Facebook
X (Twitter)
YouTube
LinkedIn
Instagram