-
Notifications
You must be signed in to change notification settings - Fork 11
Pinout_UP_Core
AAEONAEU-SW edited this page Jan 15, 2021
·
2 revisions
Linux GPIO | Description | Pin | Pin | Description | Linux GPIO |
---|---|---|---|---|---|
5V | 01 | 02 | 5V | ||
5V | 03 | 04 | 5V | ||
5V | 05 | 06 | 5V | ||
5V | 07 | 08 | 5V | ||
Ground | 09 | 10 | Ground | ||
319 | PMU_RSTBTN_N | 11 | 12 | UART1_RTS | 429 |
322 | PMU_PWRBTN_N | 13 | 14 | UART1_CTS | 432 |
317 | PMU_SLP_S0IX_N | 15 | 16 | GPIO16/UART1_TX | 434 |
504 | PCIE_CLKREQ0 | 17 | 18 | GPIO17/UART1_RX | 430 |
320 | PMC_SUSCLK0 | 19 | 20 | Ground | |
Ground | 21 | 22 | DDI2_DDC_CLK | 466 | |
234 | GPIO7/HAT_SPI2_MOSI | 23 | 24 | DDI2_DDC_DAT | 460 |
231 | GPIO8/SPI_MISO | 25 | 26 | HDMI_D | 345 |
232 | GPIO9/SPI_CLK | 27 | 28 | HDMI_R | 346 |
235 | GPIO22/SPI_CS0N | 29 | 30 | DDI2_TYPE_C_HPD | 409 |
307 | GPIO23/SPI_CS1N | 31 | 32 | ISH_GPIO0 | 335 |
Ground | 33 | 34 | CPLD CLEAR/ISH_GPIO1 | 332 | |
RESERVE | 35 | 36 | ISH_GPIO2 | 338 | |
RESERVE | 37 | 38 | ISH_GPIO3 | 329 | |
RESERVE | 39 | 40 | ISH_GPIO4 | 336 | |
RESERVE | 41 | 42 | CPLD DIN/ISH_GPIO7 | 330 | |
Ground | 43 | 44 | ISH_GPIO9 | 334 | |
506 | GPIO18/I2S2_CLK | 45 | 46 | GPIO25/PWM0 | 233 |
510 | GPIO14/I2S2_FRM | 47 | 48 | GPIO13/PWM1 | 229 |
508 | GPIO27/I2S2_DATAIN | 49 | 50 | Ground | |
511 | GPIO28/I2S2_DATAOUT | 51 | 52 | USB_HSIC_1_DATA | |
Ground | 53 | 54 | USB_HSIC_1_STROBE | ||
PCIE_TX0_DP | 55 | 56 | Ground | ||
PCIE_TX0_DN | 57 | 58 | USB_HSIC_2_DATA | ||
Ground | 59 | 60 | USB_HSIC_2_STROBE | ||
PCIE_RX0_DP | 61 | 62 | Ground | ||
PCIE_RX0_DN | 63 | 64 | USB2_P0_DP | ||
Ground | 65 | 66 | USB2_P0_DN | ||
PCIE_REFCLK0_DP | 67 | 68 | Ground | ||
PCIE_REFCLK0_DN | 69 | 70 | USB_OTG_R_ID | ||
Ground | 71 | 72 | Ground | ||
475 | I2C0_SOC_SDA | 73 | 74 | SD3_CD | 309 |
479 | I2C0_SOC_SCL | 75 | 76 | SD3_CMD | 262 |
Ground | 77 | 78 | SD3_1P8_EN | 313 | |
474 | I2C1_SOC_SDA | 79 | 80 | SD3_PWREN | 306 |
477 | I2C1_SOC_SCL | 81 | 82 | SD3_WP | 509 |
Ground | 83 | 84 | SD3_CLK | 259 | |
340 | CPLD DOUT/ISH_I2C1_DATA | 85 | 86 | SD3_SD0 | 263 |
331 | ISH_I2C1_CLK | 87 | 88 | SD3_SD1 | 258 |
Ground | 89 | 90 | SD3_SD2 | 261 | |
RESERVE | 91 | 92 | SD3_SD3 | 260 | |
RESERVE | 93 | 94 | Ground | ||
RESERVE | 95 | 96 | CPLD_OE/GPIO_SW78 | 492 | |
RESERVE | 97 | 98 | CPLD_RST/GPIO_SUS8 | 364 | |
RESERVE | 99 | 100 | CPLD_STROBE/GPIO_SUS9 | 307 |
SPI device nodes in Linux can be identified as follows:
$ ls /sys/bus/acpi/devices/8086228E\:01/physical_node/spi_master/spi2/
device power spi-SPT0001:01 statistics subsystem uevent
By default, no SPI device is created for user access by default. To enable access to SPI from userspace you should add an ACPI override on the kernel
- Download this tar.gz file and uncompress it.
- Enter in the extracted directory and type in a terminal:
$ sudo ./install_hooks && sudo acpi-add spidev*
- Reboot the system
Now you should see the SPI devices under /dev
$ ls /dev/spi*
/dev/spidev2.0
DIO NO(Up Framework) | Pin No(100 pin connector) |
---|---|
1 | 79 |
2 | 81 |
3 | 32 |
4 | 23 |
5 | 25 |
6 | 27 |
7 | 73 |
8 | 36 |
9 | 38 |
10 | 48 |
11 | 47 |
12 | 40 |
13 | 16 |
14 | 18 |
15 | 45 |
16 | 29 |
17 | 31 |
18 | 75 |
19 | 46 |
20 | 44 |
21 | 49 |
22 | 51 |
NOTE: This wiki is the main source of documentation for developers working with (or contributing to) the UP products. If this is your first time hearing about UP, we recommend starting with our main UP website, and our UP community page.