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

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "{{subst:EVB_Interfaces_and_Connectors | nome-som=ETRA | nome-peripheral =USB}}")
 
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 2020
|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" />
  
==USB interface ==
+
==USB ports ==
 
 
''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  ===
 +
ETRA SBC provides two USB ports, one HOST and one OTG:
 +
* J17 is a standard USB HOST 2.0 Type A connector
 +
[[File:{{{nome-som}}-EVB-USB-HOST-connector.png|thumb|center|500px|USB HOST connector]]
  
The USB interface available on the Evaluation Kit at the connector ''TBD:Jxxx''.
+
* J16 is a micro-AB type receptacle for a USB OTG connection: this interface can operate in Host mode and Device (peripheral) mode
 
 
''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-USB-connector.png|thumb|center|500px|USB connector]]
 
[[File:{{{nome-som}}-EVB-USB-connector.png|thumb|center|500px|USB connector]]
  
Line 42: Line 30:
 
The following table describes the interface signals:
 
The following table describes the interface signals:
  
{| class="wikitable"  
+
==== USB HOST ====
! latexfontsize="scriptsize"| Pin#
+
{| class="wikitable"
! latexfontsize="scriptsize"| SOM Pin#
+
!Pin#
! latexfontsize="scriptsize"| Pin name
+
!SOM Pin#
! latexfontsize="scriptsize"| Pin function
+
!Pin name
! latexfontsize="scriptsize"| Pin Notes
+
!Pin function
 +
!Pin Notes
 +
|-
 +
|1
 +
|J18.188
 +
|USB_HOST_VBUS
 +
|VBUS
 +
|
 +
|-
 +
|2
 +
|J18.202
 +
|USB_DM1
 +
|USB Host Data -
 +
|
 +
|-
 +
|3
 +
|J18.200
 +
|USB_DP1
 +
|USB Host Data +
 +
|
 +
|-
 +
|4
 +
| -
 +
|DGND
 +
|Ground
 +
|
 
|-
 
|-
|1,2,4,6,,7,8,10
+
|5, 6, 7, 8
 
| -
 
| -
| N.A.
+
|PCB_GND_RNG
| N.C.
+
|Shield
| Not connected
+
|
 +
|}
 +
 
 +
==== USB OTG ====
 +
{| class="wikitable"
 +
!Pin#
 +
!SOM Pin#
 +
!Pin name
 +
!Pin function
 +
!Pin Notes
 +
|-
 +
|1
 +
|J18.185
 +
|VBUS_OTG_IN
 +
|VBUS
 +
|Can be used to power the board
 +
|-
 +
|2
 +
|J18.196
 +
|USB_DM2
 +
|USB OTG Data -
 +
|
 +
|-
 +
|3
 +
|J18.198
 +
|USB_DP2
 +
|USB OTG Data +
 +
|
 
|-
 
|-
| 3
+
|4
| J1.189
+
|J18.72
| RS232_RX
+
|PA8
| Receive line
+
|USB OTG ID
|  
+
|
 
|-
 
|-
| 3
+
|5
| J1.187
+
| -
| RS232_TX
+
|GND
| Transmit line
+
|Ground
|  
+
|
 
|-
 
|-
| 9
+
|6, 7, 8
 
| -
 
| -
| DGND
+
|PCB_GND_RNG
| Ground
+
|Shield
|  
+
|
 
|}
 
|}
  
 
=== 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.
+
The USB Host port can be used under Linux for connecting USB peripheral devices: the related peripheral driver has to be integrated into the Linux kernel.
 
 
=== Device usage ===
 
 
 
To connect to the debug serial port:
 
 
 
# 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
 
  
 +
The USB OTG feature can be easily tested using the Mass Storage Gadget driver.
 
----
 
----
  
 
[[Category:ETRA]]
 
[[Category:ETRA]]

Revision as of 15:06, 31 December 2020

History
Version Issue Date Notes
1.0.0 Dec 2020 First Release


USB ports[edit | edit source]

Description[edit | edit source]

ETRA SBC provides two USB ports, one HOST and one OTG:

  • J17 is a standard USB HOST 2.0 Type A connector

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

  • J16 is a micro-AB type receptacle for a USB OTG connection: this interface can operate in Host mode and Device (peripheral) mode

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

Signals[edit | edit source]

The following table describes the interface signals:

USB HOST[edit | edit source]

Pin# SOM Pin# Pin name Pin function Pin Notes
1 J18.188 USB_HOST_VBUS VBUS
2 J18.202 USB_DM1 USB Host Data -
3 J18.200 USB_DP1 USB Host Data +
4 - DGND Ground
5, 6, 7, 8 - PCB_GND_RNG Shield

USB OTG[edit | edit source]

Pin# SOM Pin# Pin name Pin function Pin Notes
1 J18.185 VBUS_OTG_IN VBUS Can be used to power the board
2 J18.196 USB_DM2 USB OTG Data -
3 J18.198 USB_DP2 USB OTG Data +
4 J18.72 PA8 USB OTG ID
5 - GND Ground
6, 7, 8 - PCB_GND_RNG Shield

Device mapping[edit | edit source]

The USB Host port can be used under Linux for connecting USB peripheral devices: the related peripheral driver has to be integrated into the Linux kernel.

The USB OTG feature can be easily tested using the Mass Storage Gadget driver.