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

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "{{subst:EVB_Interfaces_and_Connectors | nome-som=ORCA SOM | nome-peripheral = GPIOs}}")
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<section begin=History/>
+
<section begin="History" />
 
{| style="border-collapse:collapse; "
 
{| style="border-collapse:collapse; "
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
+
! colspan="4" style="width:100%; text-align:left" ; border-bottom:solid 2px #ededed" |History
 
|-  
 
|-  
!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"|Version
+
! 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" |Version
!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"|Issue Date
+
! 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" |Issue Date
!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" |Dec 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"|...
 
 
|-
 
|-
 
|}
 
|}
<section end=History/>
+
<section end="History" />
<section begin=Body/>
+
<section begin="Body" />
  
 
==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.
  
  
[[File:{{{nome-som}}-EVB-GPIOs-connector.png|thumb|center|500px|GPIOs connector]]
+
[[File:ORCA-EVK-J8-connector.png|thumb|center|500px|GPIOs connector (J8)]]
  
 
===Signals ===
 
===Signals ===
  
 
The following table describes the interface signals:
 
The following table describes the interface signals:
 
+
{| class="wikitable"
{| class="wikitable"  
+
! latexfontsize="scriptsize" |Pin#
! latexfontsize="scriptsize"| Pin#
+
! latexfontsize="scriptsize" |SOM Pin#
! latexfontsize="scriptsize"| SOM Pin#
+
! latexfontsize="scriptsize" |Pin name
! latexfontsize="scriptsize"| Pin name
+
! latexfontsize="scriptsize" |Pin function
! latexfontsize="scriptsize"| Pin function
+
! latexfontsize="scriptsize" |Pin Notes
! latexfontsize="scriptsize"| 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,2,4,6,,7,8,10
+
|1, 17
 
| -
 
| -
| N.A.
+
|3V3_CB
| N.C.
+
| +3.3V
| Not connected
+
|BOARD_PGOOD driven rail
 
|-
 
|-
| 3
+
|2, 4
| J1.189
+
| -
| RS232_RX
+
|5V_VIN
| Receive line
+
| +5V
|
+
|Always powered
|-
 
| 3
 
| J1.187
 
| RS232_TX
 
| Transmit line
 
|  
 
 
|-
 
|-
| 9
+
|6, 9, 14, 20, 25, 30, 34, 39
 
| -
 
| -
| DGND
+
|DGND
| Ground
+
|Ground
|  
+
|
 
|}
 
|}
 +
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]]

Revision as of 15:13, 10 December 2021

History
Version Issue Date Notes
1.0.0 Dec 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.


GPIOs connector (J8)

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.