Pinout_UP_Core_Plus - up-board/up-community GitHub Wiki
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 | ||
349 | PMU_RSTBTN_N | 11 | 12 | LPSS_UART1_RTS | 478 |
348 | PMU_PWRBTN_N | 13 | 14 | LPSS_UART1_CTS | 479 |
350 | PM_SLP_S3#_3P3 | 15 | 16 | LPSS_UART1_TXD | 477 |
339 | PCIE_CLKREQ3# | 17 | 18 | LPSS_UART1_RXD | 476 |
270 | PCIE_WAKE3_N | 19 | 20 | Ground | |
Ground | 21 | 22 | CPU_prog_JTAG_TDO | 459 | |
422 | SIO_SPI_0_TXD | 23 | 24 | CPU_prog_JTAG_TMS | 458 |
421 | SIO_SPI_0_RXD | 25 | 26 | HDMI1_CEC_D | 455 |
418 | SIO_SPI_0_CLK | 27 | 28 | CPU_prog_JTAG_TCK | 457 |
419 | SIO_SPI_0_FS0 | 29 | 30 | CPU_prog_JTAG_TDI | 456 |
420 | SIO_SPI_0_FS1 | 31 | 32 | ISH_GPIO_0 | 326 |
Ground | 33 | 34 | ISH_GPIO_1 | 327 | |
304 | LPC_R_AD0 | 35 | 36 | ISH_GPIO_2 | 328 |
305 | LPC_R_AD1 | 37 | 38 | ISH_GPIO_3 | 329 |
306 | LPC_R_AD2 | 39 | 40 | ISH_GPIO_4 | 330 |
307 | LPC_R_AD3 | 41 | 42 | ISH_GPIO_5 | 331 |
Ground | 43 | 44 | ISH_GPIO_6 | 332 | |
401 | AVS_I2S2_MCLK | 45 | 46 | PWM0 | 474 |
403 | AVS_I2S2_WS_SYNC | 47 | 48 | PWM1 | 475 |
404 | AVS_I2S2_SDI | 49 | 50 | Ground | |
405 | AVS_I2S2_SDO | 51 | 52 | I2C_SDA6 | 322 |
Ground | 53 | 54 | I2C_SCL6 | 323 | |
PCIE_P5_USB3_P2_TXP | 55 | 56 | Ground | ||
PCIE_P5_USB3_P2_TXN | 57 | 58 | AVS_I2S2_BCLK | 402 | |
Ground | 59 | 60 | BT_HOST_WAKE | 452 | |
PCIE_P5_USB3_P2_RXP | 61 | 62 | Ground | ||
PCIE_P5_USB3_P2_RXN | 63 | 64 | USB2_DP2 | ||
Ground | 65 | 66 | USB2_DN2 | ||
PCIE_REFCLK3_P | 67 | 68 | Ground | ||
PCIE_REFCLK3_N | 69 | 70 | nSTATUS | 483 | |
Ground | 71 | 72 | Ground | ||
310 | I2C_SDA0 | 73 | 74 | ISH_GPIO_7 | 333 |
311 | I2C_SCL0 | 75 | 76 | ISH_GPIO_8 | 334 |
Ground | 77 | 78 | ISH_GPIO_9 | 335 | |
312 | I2C_SDA1 | 79 | 80 | ISH_GPIO_10 | 462 |
313 | I2C_SCL1 | 81 | 82 | ISH_GPIO_11 | 463 |
Ground | 83 | 84 | ISH_GPIO_12 | 464 | |
436 | GPIO_2 | 85 | 86 | ISH_GPIO_13 | 465 |
437 | GPIO_3 | 87 | 88 | ISH_GPIO_14 | 466 |
Ground | 89 | 90 | PMIC_IRQ_N | 467 | |
309 | LPC_FRAME_R | 91 | 92 | FPGA_CLR | 439 |
302 | LPC_R_CLKOUT0 | 93 | 94 | Ground | |
308 | LPC_CLKRU_N | 95 | 96 | FPGA_OE | 505 |
301 | INT_SERIRQ_R | 97 | 98 | FPGA_RST | 506 |
453 | CONFIG_SEL | 99 | 100 | FPGA_fw_reload | 461 |
SPI device nodes in Linux can be identified as follows:
$ ls /sys/bus/pci/devices/0000\:00\:19.*/pxa2xx-spi.*/spi_master/ | grep spi
/sys/bus/pci/devices/0000:00:19.0/pxa2xx-spi.10/spi_master/:
spi1
/sys/bus/pci/devices/0000:00:19.2/pxa2xx-spi.11/spi_master/:
spi3
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 zip 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/spidev1.0 /dev/spidev1.1