GPIO Pinout

The following table describes the GPIO pinout, the map, and the explanation of what each pin can do.

Table 1. GPIO Assignments
Sys dts GPIO Num Pin Name Pin Num Pin Num Pin Name GPIO Num dts Sys
N/A +3.3V 1 2 +5V N/A
i2c-0 i2c0 58 GPIO58 (I2C SDA) 3 4 +5V N/A
i2c-0 i2c0 57 GPIO57 (I2C SCL) 5 6 GND N/A
55 55 GPIO55 7 8 GPIO5 (UART TX) 5 uart0 ttyS0
N/A GND 9 10 GPIO6 (UART RX) 6 uart0 ttyS0
42 42 GPIO42 11 12 GPIO38 38 38
43 43 GPIO43 13 14 GND N/A
47 47 GPIO47 15 16 GPIO54 54 54
N/A +3.3V 17 18 GPIO51 51 51
spidev1.0 spi0 52 GPIO52 (SPI MOSI) 19 20 GND N/A
spidev1.0 spi0 53 GPIO53 (SPI MISO) 21 22 GPIO50 50 50
spidev1.0 spi0 48 GPIO48 (SPI SCLK) 23 24 GPIO49 (SPI CE0) 49 spi0 spidev1.0
N/A GND 25 26 GPIO56 56 56
45 45 GPIO45 27 28 GPIO40 40 40
37 37 GPIO37 29 30 GND N/A
39 39 GPIO39 31 32 GPIO46 (PWM0) 49 pwm0
pwm1 59 GPIO59 (PWM1) 33 34 GND N/A
63 63 GPIO63 35 36 GPIO36 36 36
60 60 GPIO60 37 38 GPIO61 61 61
N/A GND 39 40 GPIO44 44 44
Note:
  • The dts column shows the name of the node in the DTSI file (jh7110-visionfive-v2.dtsi). You can find the associated node by simply searching the name.
  • The Sys column shows the pin number used when exporting the GPIO pin under the /sys/class/gpio.