Difference between revisions of "ORCA SOM/ORCA Evaluation Kit/Interfaces and Connectors/GPIOs"

From DAVE Developer's Wiki
Jump to: navigation, search
Line 7: Line 7:
 
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Notes
 
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Notes
 
|-
 
|-
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |X.Y.Z
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |1.0.0
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |Month Year
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |Nov 2021
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |TBD
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |First release
 
|-
 
|-
|-
 
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |[TBD_link X.Y.Z]
 
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |Month Year
 
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |TBD
 
|-
 
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |...
 
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |...
 
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |...
 
 
|-
 
|-
 
|}
 
|}
Line 25: Line 17:
  
 
==GPIOs interface ==
 
==GPIOs interface ==
 
''TBD: sostituire le sezioni con le informazioni sull'uso della periferica e del suo connettore''
 
''Nell'esempio di seguito c'è la descrizione dell'interfaccia UART/console''
 
  
 
=== Description  ===
 
=== Description  ===
  
The GPIOs interface available on the Evaluation Kit at the connector ''TBD:Jxxx''.  
+
The GPIOs interface is available on the Evaluation Kit at the connector J8.  
  
''Jxx'' is a ''TBD:connector-type'' header connector for the RS232 two-wires UART3 port, used for debug purposes (bootloader and operating system serial console).
+
J8 is a 20x2x2.54mm pin strip header connector.
  
  
Line 49: Line 38:
 
|-
 
|-
 
|7
 
|7
|
+
|J15.150
|
+
|SAI2_TXFS
|
+
|GPIO4_IO24
 
|
 
|
 
|-
 
|-
 
|8
 
|8
|
+
|J15.144
|
+
|SAI2_RXFS
|
+
|GPIO4_IO21
 
|
 
|
 
|-
 
|-
 
|10
 
|10
|
+
|J15.140
|
+
|SAI2_RXC
|
+
|GPIO4_IO22
 
|
 
|
 
|-
 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MCLK
|
+
|GPIO5_IO02
 
|
 
|
 
|-
 
|-
 
|29
 
|29
|
+
|J15.250
|
+
|UART2_TXD
|
+
|GPIO5_IO25
 
|
 
|
 
|-
 
|-
 
|31
 
|31
|
+
|J15.256
|
+
|UART4_RXD
|
+
|GPIO5_IO28
 
|
 
|
 
|-
 
|-
 
|32
 
|32
|
+
|J15.178
 
|SAI5_RXFS
 
|SAI5_RXFS
|I2C6_SCL
+
|GPIO3_IO19
 
|
 
|
 
|-
 
|-
 
|33
 
|33
|
+
|J15.258
|
+
|UART4_TXD
|
+
|GPIO5_IO29
 
|
 
|
 
|-
 
|-
 
|35
 
|35
|
+
|J15.176
|
+
|SAI5_RXD3
|
+
|GPIO3_IO24
 
|
 
|
 
|-
 
|-
 
|36
 
|36
|
+
|J15.174
|
+
|SAI5_RXD2
|
+
|GPIO3_IO23
 
|
 
|
 
|-
 
|-
 
|37
 
|37
|
+
|J15.172
|
+
|SAI5_RXD1
|
+
|GPIO3_IO22
 
|
 
|
 
|-
 
|-
 
|38
 
|38
|
+
|J15.170
 
|SAI5_RXD0
 
|SAI5_RXD0
|I2C5_SCL
+
|GPIO3_IO21
 
|
 
|
 
|-
 
|-
 
|40
 
|40
|
+
|J15.168
 
|SAI5_RXC
 
|SAI5_RXC
|I2C6_SDA
+
|GPIO3_IO20
 
|
 
|
 
|-
 
|-
Line 222: Line 211:
 
|
 
|
 
|}
 
|}
 +
All the GPIO signals are 0-3.3V level.
 +
 
=== Device mapping ===
 
=== Device mapping ===
UART3 is mapped to <code>/dev/ttymxc2</code> device in Linux. The peripheral is used as the default serial console, both for the bootloader and the kernel.
+
GPIOs are mapped into banks each of which contains 32 pins. They are named as GPIO<bank>_IO<pin>
 +
 
 +
Each pin can be addressed with an incremental number, calculated as follows: GPIO = 32 x (<bank> - 1) + <pin>
  
 
=== Device usage ===
 
=== Device usage ===
  
To connect to the debug serial port:
+
Under Linux the GPIOs can be manipulated su sysfs export or with the gpio tools.
 
 
# connect the DB9 adapter bracket to the J22 connector on the SBCX board
 
# connect a serial cable between DB9 connector and PC COM port through a NULL-modem cable (not provided)
 
# start your favorite terminal emulator software on PC (eg: PuTTY); communication parameters are: 115200,N,8,1
 
  
 
----
 
----
  
 
[[Category:ORCA SOM]]
 
[[Category:ORCA SOM]]

Revision as of 07:14, 10 November 2021

History
Version Issue Date Notes
1.0.0 Nov 2021 First release


GPIOs interface[edit | edit source]

Description[edit | edit source]

The GPIOs interface is available on the Evaluation Kit at the connector J8.

J8 is a 20x2x2.54mm pin strip header connector.


[[File:{Template:Nome-som-EVB-GPIOs-connector.png|thumb|center|500px|GPIOs connector]]

Signals[edit | edit source]

The following table describes the interface signals:

Pin# SOM Pin# Pin name Pin function Pin Notes
7 J15.150 SAI2_TXFS GPIO4_IO24
8 J15.144 SAI2_RXFS GPIO4_IO21
10 J15.140 SAI2_RXC GPIO4_IO22
11 J15.142 SAI2_RXD0 GPIO4_IO23
12 J15.146 SAI2_TXC GPIO4_IO25
13 J15.132 SPDIF_RX GPIO5_IO04
15 J15.134 SPDIF_TX GPIO5_IO03
16 J15.148 SAI2_TXD0 GPIO4_IO26
18 J15.138 SAI2_MCLK GPIO4_IO27
19 J15.122 ECSPI2_MOSI GPIO5_IO11
21 J15.120 ECSPI2_MISO GPIO5_IO12
22 J15.166 SAI5_MCLK GPIO3_IO25
23 J15.124 ECSPI2_SCLK GPIO5_IO10
24 J15.126 ECSPI2_SS0 GPIO5_IO13
26 J15.130 SPDIF_EXT_CLK GPIO5_IO05
27 J15.248 UART2_RXD GPIO5_IO24
28 J15.152 SAI3_MCLK GPIO5_IO02
29 J15.250 UART2_TXD GPIO5_IO25
31 J15.256 UART4_RXD GPIO5_IO28
32 J15.178 SAI5_RXFS GPIO3_IO19
33 J15.258 UART4_TXD GPIO5_IO29
35 J15.176 SAI5_RXD3 GPIO3_IO24
36 J15.174 SAI5_RXD2 GPIO3_IO23
37 J15.172 SAI5_RXD1 GPIO3_IO22
38 J15.170 SAI5_RXD0 GPIO3_IO21
40 J15.168 SAI5_RXC GPIO3_IO20
1, 17 - 3V3_CB +3.3V BOARD_PGOOD driven rail
2, 4 - 5V_VIN +5V Always powered
6, 9, 14, 20, 25, 30, 34, 39 - DGND Ground

All the GPIO signals are 0-3.3V level.

Device mapping[edit | edit source]

GPIOs are mapped into banks each of which contains 32 pins. They are named as GPIO<bank>_IO<pin>

Each pin can be addressed with an incremental number, calculated as follows: GPIO = 32 x (<bank> - 1) + <pin>

Device usage[edit | edit source]

Under Linux the GPIOs can be manipulated su sysfs export or with the gpio tools.