Pinout UP Core

From UpWiki
Jump to: navigation, search

Pin Map (100-pin header)

Description Pin Pin Description
5V 01 02 5V
5V 03 04 5V
5V 05 06 5V
5V 07 08 5V
Ground 09 10 Ground
PMU_RSTBTN_N 11 12 UART1_RTS
PMU_PWRBTN_N 13 14 UART1_CTS
PMU_SLP_S0IX_N 15 16 GPIO16/UART1_TX
PCIE_CLKREQ0 17 18 GPIO17/UART1_RX
PMC_SUSCLK0 19 20 Ground
Ground 21 22 DDI2_DDC_CLK
GPIO7/HAT_SPI2_MOSI 23 24 DDI2_DDC_DAT
GPIO8/SPI_MISO 25 26 HDMI_D
GPIO9/SPI_CLK 27 28 HDMI_R
 GPIO22/SPI_CS0N 29 30 DDI2_TYPE_C_HPD
GPIO23/SPI_CS1N 31 32 ISH_GPIO0
Ground 33 34 CPLD CLEAR/ISH_GPIO1
RESERVE 35 36 ISH_GPIO2
RESERVE 37 38 ISH_GPIO3
RESERVE 39 40 ISH_GPIO4
RESERVE 41 42 CPLD DIN/ISH_GPIO7
Ground 43 44 ISH_GPIO9
GPIO18/I2S2_CLK 45 46 GPIO25/PWM0
GPIO14/I2S2_FRM 47 48 GPIO13/PWM1
GPIO27/I2S2_DATAIN 49 50 Ground
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
I2C0_SOC_SDA 73 74 SD3_CD
I2C0_SOC_SCL 75 76 SD3_CMD
Ground 77 78 SD3_1P8_EN
I2C1_SOC_SDA 79 80 SD3_PWREN
I2C1_SOC_SCL 81 82 SD3_WP
Ground 83 84 SD3_CLK
CPLD DOUT/ISH_I2C1_DATA 85 86 SD3_SD0
ISH_I2C1_CLK 87 88 SD3_SD1
Ground 89 90 SD3_SD2
RESERVE 91 92 SD3_SD3
RESERVE 93 94 Ground
RESERVE 95 96 CPLD_OE/GPIO_SW78
RESERVE 97 98 CPLD_RST/GPIO_SUS8 
RESERVE 99 100 CPLD_STROBE/GPIO_SUS9

SPI Ports

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

Installing ACPI overrides to enable spi in userspace

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

  1. Download this tar.gz file [1] and uncompress it.
  2. enter in the extracted directory and type in a terminal:
  3.  $ sudo ./install_hooks && sudo acpi-add spidev*
  4. reboot the system

now you should see the spi devices under /dev

$ ls /dev/spi*
/dev/spidev2.0