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

From DAVE Developer's Wiki
Jump to: navigation, search
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
! 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" |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" |2021/12/10
+
| 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" |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" |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" |[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 15: Line 25:
  
 
==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 is available on the Evaluation Kit at the connector J8.  
+
The GPIOs interface available on the Evaluation Kit at the connector ''TBD:Jxxx''.  
  
J8 is a 20x2x2.54mm pin strip header connector.
+
''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).
  
  
[[File:ORCA-EVK-J8-connector.png|thumb|center|500px|GPIOs connector (J8)]]
+
[[File:{{{nome-som}}-EVB-GPIOs-connector.png|thumb|center|500px|GPIOs connector]]
  
 
===Signals ===
 
===Signals ===
Line 36: Line 49:
 
|-
 
|-
 
|7
 
|7
|J15.150
+
|
|SAI2_TXFS
+
|
|GPIO4_IO24
+
|
 
|
 
|
 
|-
 
|-
 
|8
 
|8
|J15.144
+
|
|SAI2_RXFS
+
|
|GPIO4_IO21
+
|
 
|
 
|
 
|-
 
|-
 
|10
 
|10
|J15.140
+
|
|SAI2_RXC
+
|
|GPIO4_IO22
+
|
 
|
 
|
 
|-
 
|-
 
|11
 
|11
|J15.142
+
|
|SAI2_RXD0
+
|
|GPIO4_IO23
+
|
 
|
 
|
 
|-
 
|-
 
|12
 
|12
|J15.146
+
|
|SAI2_TXC
+
|
|GPIO4_IO25
+
|
 
|
 
|
 
|-
 
|-
 
|13
 
|13
|J15.132
+
|
|SPDIF_RX
+
|
|GPIO5_IO04
+
|
 
|
 
|
 
|-
 
|-
 
|15
 
|15
|J15.134
+
|
|SPDIF_TX
+
|
|GPIO5_IO03
+
|
 
|
 
|
 
|-
 
|-
 
|16
 
|16
|J15.148
+
|
|SAI2_TXD0
+
|
|GPIO4_IO26
+
|
 
|
 
|
 
|-
 
|-
 
|18
 
|18
|J15.138
+
|
|SAI2_MCLK
+
|
|GPIO4_IO27
+
|
 
|
 
|
 
|-
 
|-
 
|19
 
|19
|J15.122
+
|
 
|ECSPI2_MOSI
 
|ECSPI2_MOSI
|GPIO5_IO11
+
|I2C3_SDA
 
|
 
|
 
|-
 
|-
 
|21
 
|21
|J15.120
+
|
 
|ECSPI2_MISO
 
|ECSPI2_MISO
|GPIO5_IO12
+
|I2C4_SCL
 
|
 
|
 
|-
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+
|I2C5_SCL
 
|
 
|
 
|-
 
|-
 
|40
 
|40
|J15.168
+
|
 
|SAI5_RXC
 
|SAI5_RXC
|GPIO3_IO20
+
|I2C6_SDA
 
|
 
|
 
|-
 
|-
Line 209: Line 222:
 
|
 
|
 
|}
 
|}
All the GPIO signals are 0-3.3V level.
 
 
 
=== Device mapping ===
 
=== Device mapping ===
GPIOs are mapped into banks each of which contains 32 pins. They are named as GPIO<bank>_IO<pin>
+
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.
  
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]]
+
[[Category:ORCA SOM]]

Revision as of 13:51, 15 September 2021

History
Version Issue Date Notes
X.Y.Z Month Year TBD
[TBD_link X.Y.Z] Month Year TBD
... ... ...


GPIOs interface[edit | edit source]

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[edit | edit source]

The GPIOs interface available on the Evaluation Kit at the connector TBD:Jxxx.

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).


[[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
8
10
11
12
13
15
16
18
19 ECSPI2_MOSI I2C3_SDA
21 ECSPI2_MISO I2C4_SCL
22 SAI5_MCLK I2C5_SDA
23 ECSPI2_SCLK I2C3_SCL
24 ECSPI2_SS0 I2C4_SDA
26
27
28
29
31
32 SAI5_RXFS I2C6_SCL
33
35
36
37
38 SAI5_RXD0 I2C5_SCL
40 SAI5_RXC I2C6_SDA
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

Device mapping[edit | edit source]

UART3 is mapped to /dev/ttymxc2 device in Linux. The peripheral is used as the default serial console, both for the bootloader and the kernel.

Device usage[edit | edit source]

To connect to the debug serial port:

  1. connect the DB9 adapter bracket to the J22 connector on the SBCX board
  2. connect a serial cable between DB9 connector and PC COM port through a NULL-modem cable (not provided)
  3. start your favorite terminal emulator software on PC (eg: PuTTY); communication parameters are: 115200,N,8,1