Open main menu

DAVE Developer's Wiki β

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

< ETRA SOM‎ | ETRA Evaluation Kit
(Created page with "{{subst:EVB_Interfaces_and_Connectors | nome-som=ETRA | nome-peripheral =GPIOs}}")
 
 
(6 intermediate revisions by 2 users 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" |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" |2021/01/14
|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" |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
 
 
|-
 
|-
|-
 
|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''.  
+
STM32MP1 can handle external pins in many different ways and most of them can be configured as GPIOs. When a pin is set as a GPIO, it is possible to read its value, change its direction or change output value directly from the shell.
 
 
''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:{{{nome-som}}-EVB-GPIOs-connector.png|thumb|center|500px|GPIOs connector]]
+
[[File:ETRA-EVK-GPIOs-connector.png|thumb|center|300px|GPIOsconnector]]
  
 
===Signals ===
 
===Signals ===
  
The following table describes the interface signals:
+
The following table describes some GPIOs signals available on J12 (2x15x2.54mm) connector:
 
+
{| class="wikitable"
{| class="wikitable"  
+
!Pin#
! latexfontsize="scriptsize"| Pin#
+
!SOM Pin#
! latexfontsize="scriptsize"| SOM Pin#
+
!Pin name
! latexfontsize="scriptsize"| Pin name
+
!Pin function
! latexfontsize="scriptsize"| Pin function
+
!Pin Notes
! latexfontsize="scriptsize"| Pin Notes
+
|-
 +
|3
 +
|J18.97
 +
|PD13
 +
|
 +
|
 +
|-
 +
|5
 +
|J18.99
 +
|PD12
 +
|
 +
|
 +
|-
 +
|6
 +
|J18.34
 +
|PB13
 +
|
 +
|
 +
|-
 +
|7
 +
|J18.101
 +
|PD11
 +
|
 +
|
 +
|-
 +
|8
 +
|J18.68
 +
|PB5
 +
|
 +
|
 +
|-
 +
|9
 +
|J18.105
 +
|PG9
 +
|
 +
|
 +
|-
 +
|12
 +
|J18.48
 +
|PA12
 +
|
 +
|
 +
|-
 +
|14
 +
|J18.38
 +
|PA11
 +
|
 +
|
 +
|-
 +
|18
 +
|J18.80
 +
|PF6
 +
|
 +
|
 +
|-
 +
|20
 +
|J18.76
 +
|PF9
 +
|
 +
|
 
|-
 
|-
|1,2,4,6,,7,8,10
+
|22
| -
+
|J18.74
| N.A.
+
|PF7
| N.C.
+
|
| Not connected
+
|
 
|-
 
|-
| 3
+
|24
| J1.189
+
|J18.78
| RS232_RX
+
|PF8
| Receive line
+
|
|  
+
|
 
|-
 
|-
| 3
+
|26
| J1.187
+
|J18.181
| RS232_TX
+
|PD6
| Transmit line
+
|
|  
+
|
 
|-
 
|-
| 9
+
|28
| -
+
|J18.28
| DGND
+
|PA9
| Ground
+
|
|  
+
|
 
|}
 
|}
  
 
=== 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 can be used directly on Linux kernel device driver or can be configured on the device tree.
  
 
=== Device usage ===
 
=== Device usage ===
  
To connect to the debug serial port:
+
See the [[DESK-MP1-L/Peripherals/GPIOs|GPIOs]] page on the [[DESK-MP1-L|DESK-MP1-L]] Software Manual.
 
 
# 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:ETRA]]
 
[[Category:ETRA]]

Latest revision as of 12:51, 23 April 2024

History
Issue Date Notes
2021/01/14 First Release


Contents

GPIOs interfaceEdit

DescriptionEdit

STM32MP1 can handle external pins in many different ways and most of them can be configured as GPIOs. When a pin is set as a GPIO, it is possible to read its value, change its direction or change output value directly from the shell.


 
GPIOsconnector

SignalsEdit

The following table describes some GPIOs signals available on J12 (2x15x2.54mm) connector:

Pin# SOM Pin# Pin name Pin function Pin Notes
3 J18.97 PD13
5 J18.99 PD12
6 J18.34 PB13
7 J18.101 PD11
8 J18.68 PB5
9 J18.105 PG9
12 J18.48 PA12
14 J18.38 PA11
18 J18.80 PF6
20 J18.76 PF9
22 J18.74 PF7
24 J18.78 PF8
26 J18.181 PD6
28 J18.28 PA9

Device mappingEdit

GPIOs can be used directly on Linux kernel device driver or can be configured on the device tree.

Device usageEdit

See the GPIOs page on the DESK-MP1-L Software Manual.