Private
Public Access
2
0
Files
mraa/docs/joule.md
Arun Ravindran 0470aebee6 joule: Fix issues with gpio mapping
The GPIOs are not mapped correctly in MRAA for tuchuk board.

This patch corrects the GPIO maps and the PIN assignments.

Note:
1) There are nothing called I2S(x)SDO and I2S(x)SDI available over breakout
   pins, the usage is commented now.
2) There is nothing called SPP0FS3, is now commented, what we have is SPP1FS3.
3) I2C1SDA available twise 15 and 71. PIN 71 as per gpio used should be renamed as ISHI2C0SDA
4) I2C1SCL available twise 17 and 73. PIN 73 as per gpio used should be renamed as ISHI2C0SCL
5) UART1TX available twise 22 and 74. PIN 74 as per gpio used is ISHUART1TXD
   and is not available in breakout.
6) UART1RX available twise 24 and 76. PIN 76 as per gpio used is ISHUART1RXD
   and is not available in breakout.
7) I2C2SDA available twise 19 and 75. PIN 75 as per gpio used is ISHI2C1SDA
   and is not available in breakout pins
8) I2C2SCL available twise 21 and 77. PIN 75 as per gpio used is ISHI2C1SCL
   and is not available in breakout pins
9) PIN 78 UART1RT as per GPIO used is ISHUART1RT and is not available in breakout pins
10) PIN 80 UART1CT as per GPIO is ISHUART1CT and is not available in breakout pins

BIOS used is 193

Signed-off-by: Arun Ravindran <arun.ravindran@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2017-03-09 17:25:07 +01:00

4.9 KiB

Intel Joule

http://www.intel.com/joule

The Intel Joule expansion board is supported by Mraa

Revision Support

Intel Joule expansion board

Interface notes

SPI

Two SPI buses are available, with one chipselect each. Pins listed are MRAA numbered pins. Other chip selects are available if enabled in BIOS/EEPROM but cannot be enabled as BIOS options. You will need the spidev kernel module loaded, Ostro-XT does this by default.

Bus 0 (32765) MOSI = 2 MISO = 4 CS = 6 CLK = 10

Bus 1 (32766) MOSI = 67 MISO = 69 CS0 = 59 CS1 = 61 CLK = 65

(remove 40 from numbers to get pin header number for pins on low speed header 2)

UART Some pins are labelled as UARTs but are not configured in BIOS as UART so only available UART is on the FTDI header. Disable the getty on ttyS2 and use mraa's uart raw mode to initialise on ttyS2. The Jumper J8 can be used to switch between using the FTDI 6 pin header and the micro USB output.

Pin Mapping

The Intel Joule expansion board has two breakouts, breakout #1 is 1-40 whilst breakout2 is 41-80. The LEDs are numbered from 100-103.

ISH UART are named as: IURT ISH I2C are named as:IIC

MRAA Number Physical Pin Function
1 GPIO GPIO
2 SPP1RX GPIO SPI
3 PMICRST NONE
4 SPP1TX GPIO SPI
5 19.2mhz GPIO
6 SPP1FS0 GPIO SPI
7 UART0TX GPIO
8 SPP1FS2 GPIO SPI
9 PWRGD NONE
10 SPP1CLK GPIO SPI
11 I2C0SDA I2C
12 I2S1SDI GPIO
13 I2C0SCL I2C
14 I2S1SDO GPIO
15 I2C1SDA I2C
16 I2S1WS GPIO
17 I2C1SCL I2C
18 I2S1CLK GPIO
19 I2C2SDA I2C
20 I2S1MCL GPIO
21 I2C2SCL I2CO
22 UART1TX UART
23 I2S4SDO NONE
24 UART1RX UART
25 I2S4SDI NONE
26 PWM0 GPIO PWM
27 I2S4BLK GPIO
28 PWM1 GPIO PWM
29 I2S4WS NONE
30 PWM2 GPIO PWM
31 I2S3SDO NONE
32 PWM3 GPIO PWM
33 I2S3SDI NONE
34 1.8V NONE
35 I2S4BLK GPIO
36 GND NONE
37 GND NONE
38 GND NONE
39 GND NONE
40 3.3V NONE
41 GND NONE
42 5V NONE
43 GND NONE
44 5V NONE
45 GND NONE
46 3.3V NONE
47 GND NONE
48 3.3V NONE
49 GND NONE
50 1.8V NONE
51 GPIO GPIO
52 1.8V NONE
53 PANEL GPIO
54 GND NONE
55 PANEL GPIO
56 CAMERA NONE
57 PANEL GPIO
58 CAMERA NONE
59 SPP0FS0 GPIO SPI
60 CAMERA NONE
61 SPP0FS1 GPIO SPI
62 SPI_DAT SPI
63 SPP0FS2 GPIO SPI
64 SPICLKB GPIO
65 SPP0FS3 GPIO SPI
66 SPICLKA GPIO
67 SPP0TX GPIO SPI
68 UART0RX GPIO UART
69 SPP0RX GPIO SPI
70 UART0RT GPIO UART
71 IIC0SDA GPIO I2C
72 UART0CT GPIO UART
73 IIC0SCL GPIO I2C
74 IURT1TX GPIO UART
75 IIC1SDA GPIO I2C
76 IURT1RX GPIO UART
77 IIC1SCL GPIO I2C
78 IURT1RT GPIO UART
79 RTC_CLK GPIO
80 IURT1CT GPIO UART
100 LED100 GPIO
101 LED101 GPIO
102 LED102 GPIO
103 LED103 GPIO
104 LEDWIFI GPIO
105 LEDBT GPIO

To see a live pin mapping use the command: $ mraa-gpio list