GPIO Pin分布
下表介绍了GPIO pin、映射图以及每个pin的功能说明。
Sys | dts | GPIO Num | Pin名 | Pin Num | Pin Num | Pin名 | 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 |
注:
- dts列为DTSI文件(jh7110-visionfive-v2.dtsi)中的节点名。如需查找相关节点,搜索节点名即可。
- Sys列为在/sys/class/gpio下导出GPIO pin时使用的pin号。