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

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "{{subst:EVB_Interfaces_and_Connectors | nome-som=ORCA SOM | nome-peripheral = MIPI}}")
 
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" |Sep 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" />
  
 
==MIPI interface ==
 
==MIPI interface ==
  
''TBD: sostituire le sezioni con le informazioni sull'uso della periferica e del suo connettore''
+
There are two MIPI camera inputs and one MIPI display output available on the Evaluation Kit.
''Nell'esempio di seguito c'è la descrizione dell'interfaccia UART/console''
 
  
 
=== Description  ===
 
=== Description  ===
  
The MIPI interface available on the Evaluation Kit at the connector ''TBD:Jxxx''.  
+
The MIPI camera interfaces are available on the Evaluation Kit at the connectors J5 and J6.  
  
''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).
+
The MIPI display interface is available on the Evaluation Kit at the connector J7.
 +
 
 +
J5, J6 and J7 are a 22x1x0.5mm horizontal ZIF connectors that deliver the MIPI signals, many control signals and power.
  
  
Line 40: Line 33:
 
===Signals ===
 
===Signals ===
  
The following table describes the interface signals:
+
The following tables describe the interfaces signals:
  
 +
==== J5 ====
 
{| 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
 
|-
 
|-
|1,2,4,6,,7,8,10
+
|1, 4, 7, 10, 13
 
| -
 
| -
| N.A.
+
|DGND
| N.C.
+
|Ground
| Not connected
+
|
 +
|-
 +
|2
 +
|J15.117
 +
|MIPI_CSI1_D0_N
 +
|MIPI Data 0 -
 +
|
 
|-
 
|-
 
| 3
 
| 3
| J1.189
+
|J15.115
| RS232_RX
+
|MIPI_CSI1_D0_P
| Receive line
+
|MIPI Data 0 +
|  
+
|
 +
|-
 +
|5
 +
|J15.113
 +
|MIPI_CSI1_D1_N
 +
|MIPI Data 1 -
 +
|
 +
|-
 +
|6
 +
|J15.111
 +
|MIPI_CSI1_D1_P
 +
|MIPI Data 1 +
 +
|
 +
|-
 +
|8
 +
|J15.109
 +
|MIPI_CSI1_CLK_N
 +
|MIPI Clock -
 +
|
 +
|-
 +
|9
 +
|J15.107
 +
|MIPI_CSI1_CLK_P
 +
|MIPI Clock +
 +
|
 +
|-
 +
|11
 +
|J15.105
 +
|MIPI_CSI1_D2_N
 +
|MIPI Data 2 -
 +
|
 +
|-
 +
|12
 +
|J15.103
 +
|MIPI_CSI1_D2_P
 +
|MIPI Data 2 +
 +
|
 +
|-
 +
|14
 +
|J15.101
 +
|MIPI_CSI1_D3_N
 +
|MIPI Data 3 -
 +
|
 +
|-
 +
|15
 +
|J15.99
 +
|MIPI_CSI1_D3_P
 +
|MIPI Data 3 +
 +
|
 +
|-
 +
|16
 +
| -
 +
|CAM1_IO2/GND
 +
|CSI_nRST/Ground
 +
|Default connected to Ground
 +
Can be alternatively routed to J15.233 GPIO
 +
|-
 +
|17
 +
|J15.227
 +
|CAM1_IO0
 +
|CSI_MCLK
 +
|
 +
|-
 +
|18
 +
|J15.231
 +
|CAM1_IO1
 +
|CSI1_SYNC
 +
|
 +
|-
 +
|19
 +
| -
 +
|CAM1_IO3/GND
 +
|CSI_MCLK/Ground
 +
|Default connected to Ground
 +
Can be alternatively routed to J15.38 GPIO
 +
|-
 +
|20
 +
|J15.230
 +
|CAM1_SCL
 +
|I2C2_SCL
 +
|4K7 internal pull-up
 +
|-
 +
|21
 +
|J15.232
 +
|CAM1_SDA
 +
|I2C2_SDA
 +
|4K7 internal pull-up
 +
|-
 +
|22
 +
| -
 +
|MIPI_CSI1_PSU
 +
| +3.3V
 +
|Default connected to 3V3_CB
 +
Can be alternatively routed to 5V_CB or VIN
 +
|}
 +
 
 +
=== J6 ===
 +
{| class="wikitable"
 +
! latexfontsize="scriptsize" | Pin#
 +
! latexfontsize="scriptsize" | SOM Pin#
 +
! latexfontsize="scriptsize" | Pin name
 +
! latexfontsize="scriptsize" | Pin function
 +
! latexfontsize="scriptsize" | Pin Notes
 +
|-
 +
|1, 4, 7, 10, 13
 +
| -
 +
|DGND
 +
|Ground
 +
|
 +
|-
 +
|2
 +
|J15.79
 +
|MIPI_CSI2_D0_N
 +
|MIPI Data 0 -
 +
|
 
|-
 
|-
 
| 3
 
| 3
| J1.187
+
|J15.77
| RS232_TX
+
|MIPI_CSI2_D0_P
| Transmit line
+
|MIPI Data 0 +
|  
+
|
 +
|-
 +
|5
 +
|J15.83
 +
|MIPI_CSI2_D1_N
 +
|MIPI Data 1 -
 +
|
 +
|-
 +
|6
 +
|J15.81
 +
|MIPI_CSI2_D1_P
 +
|MIPI Data 1 +
 +
|
 +
|-
 +
|8
 +
|J15.87
 +
|MIPI_CSI2_CLK_N
 +
|MIPI Clock -
 +
|
 +
|-
 +
|9
 +
|J15.85
 +
|MIPI_CSI2_CLK_P
 +
|MIPI Clock +
 +
|
 +
|-
 +
|11
 +
|J15.91
 +
|MIPI_CSI2_D2_N
 +
|MIPI Data 2 -
 +
|
 +
|-
 +
|12
 +
|J15.89
 +
|MIPI_CSI2_D2_P
 +
|MIPI Data 2 +
 +
|
 +
|-
 +
|14
 +
|J15.95
 +
|MIPI_CSI2_D3_N
 +
|MIPI Data 3 -
 +
|
 +
|-
 +
|15
 +
|J15.93
 +
|MIPI_CSI2_D3_P
 +
|MIPI Data 3 +
 +
|
 +
|-
 +
|16
 +
| -
 +
|CAM2_IO2/GND
 +
|CSI_nRST/Ground
 +
|Default connected to Ground
 +
Can be alternatively routed to J15.233 GPIO
 +
|-
 +
|17
 +
|J15.227
 +
|CAM2_IO0
 +
|CSI_MCLK
 +
|
 +
|-
 +
|18
 +
|J15.225
 +
|CAM2_IO1
 +
|CSI2_SYNC
 +
|
 +
|-
 +
|19
 +
| -
 +
|CAM2_IO3/GND
 +
|CSI_MCLK/Ground
 +
|Default connected to Ground
 +
Can be alternatively routed to J15.38 GPIO
 +
|-
 +
|20
 +
|J15.234
 +
|CAM2_SCL
 +
|I2C3_SCL
 +
|4K7 internal pull-up
 +
|-
 +
|21
 +
|J15.236
 +
|CAM2_SDA
 +
|I2C3_SDA
 +
|4K7 internal pull-up
 +
|-
 +
|22
 +
| -
 +
|MIPI_CSI1_PSU
 +
|Power supply
 +
|Default connected to 3V3_CB
 +
Can be alternatively routed to 5V_CB or VIN
 +
|}
 +
 
 +
=== J7 ===
 +
{| class="wikitable"
 +
! latexfontsize="scriptsize" | Pin#
 +
! latexfontsize="scriptsize" | SOM Pin#
 +
! latexfontsize="scriptsize" | Pin name
 +
! latexfontsize="scriptsize" | Pin function
 +
! latexfontsize="scriptsize" | Pin Notes
 +
|-
 +
|1, 4, 7, 10, 13, 20
 +
| -
 +
|DGND
 +
|Ground
 +
|
 +
|-
 +
|2
 +
|J15.135
 +
|MIPI_DSI1_D1_N
 +
|MIPI Data 1 -
 +
|
 
|-
 
|-
| 9
+
|3
 +
|J15.133
 +
|MIPI_DSI1_D1_P
 +
|MIPI Data 1 +
 +
|
 +
|-
 +
|5
 +
|J15.131
 +
|MIPI_DSI1_CLK_N
 +
|MIPI Clock -
 +
|
 +
|-
 +
|6
 +
|J15.129
 +
|MIPI_DSI1_CLK_P
 +
|MIPI Clock +
 +
|
 +
|-
 +
|8
 +
|J15.139
 +
|MIPI_DSI1_D0_N
 +
|MIPI Data 0 -
 +
|
 +
|-
 +
|9
 +
|J15.137
 +
|MIPI_DSI1_D0_P
 +
|MIPI Data 0 +
 +
|
 +
|-
 +
|11
 +
|J15.127
 +
|MIPI_DSI1_D2_N
 +
|MIPI Data 2 -
 +
|
 +
|-
 +
|12
 +
|J15.125
 +
|MIPI_DSI1_D2_P
 +
|MIPI Data 2 +
 +
|
 +
|-
 +
|14
 +
|J15.123
 +
|MIPI_DSI1_D3_N
 +
|MIPI Data 3 -
 +
|
 +
|-
 +
|15
 +
|J15.121
 +
|MIPI_DSI1_D3_P
 +
|MIPI Data 3 +
 +
|
 +
|-
 +
|16
 +
|J15.209
 +
|DSI_EN
 +
|GPIO
 +
|
 +
|-
 +
|17
 +
|J15.230
 +
|DISP1_SCL
 +
|I2C2_SCL
 +
|4K7 internal pull-up
 +
|-
 +
|18
 +
|J15.232
 +
|DISP1_SDA
 +
|I2C2_SDA
 +
|4K7 internal pull-up
 +
|-
 +
|19
 +
|J15.217
 +
|DSI_BL_PWM
 +
|PWM/GPIO
 +
|Can be alternatively routed to Ground
 +
|-
 +
|21, 22
 
| -
 
| -
| DGND
+
|MIPI_CSI1_PSU
| Ground
+
|Power supply
|  
+
|Default connected to 3V3_CB
 +
Can be alternatively routed to 5V_CB
 
|}
 
|}
  
 
=== 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 MIPI CSI peripherals are mapped to the corresponding <code>/dev/video<X></code> device in Linux.
 
 
=== Device usage ===
 
  
To connect to the debug serial port:
+
The MIPI DSI peripherals are mapped to the corresponding <code>/dev/fb<X></code> device in Linux.
  
# connect the DB9 adapter bracket to the J22 connector on the SBCX board
+
The devices mapping depends on the device tree configuration.
# 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
 
  
 +
=== Device usage ===
 +
The devices are accessed in Linux through the standard graphic stack.
 
----
 
----
  
 
[[Category:ORCA SOM]]
 
[[Category:ORCA SOM]]

Revision as of 15:20, 15 September 2021

History
Version Issue Date Notes
1.0.0 Sep 2021 First release


MIPI interface[edit | edit source]

There are two MIPI camera inputs and one MIPI display output available on the Evaluation Kit.

Description[edit | edit source]

The MIPI camera interfaces are available on the Evaluation Kit at the connectors J5 and J6.

The MIPI display interface is available on the Evaluation Kit at the connector J7.

J5, J6 and J7 are a 22x1x0.5mm horizontal ZIF connectors that deliver the MIPI signals, many control signals and power.


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

Signals[edit | edit source]

The following tables describe the interfaces signals:

J5[edit | edit source]

Pin# SOM Pin# Pin name Pin function Pin Notes
1, 4, 7, 10, 13 - DGND Ground
2 J15.117 MIPI_CSI1_D0_N MIPI Data 0 -
3 J15.115 MIPI_CSI1_D0_P MIPI Data 0 +
5 J15.113 MIPI_CSI1_D1_N MIPI Data 1 -
6 J15.111 MIPI_CSI1_D1_P MIPI Data 1 +
8 J15.109 MIPI_CSI1_CLK_N MIPI Clock -
9 J15.107 MIPI_CSI1_CLK_P MIPI Clock +
11 J15.105 MIPI_CSI1_D2_N MIPI Data 2 -
12 J15.103 MIPI_CSI1_D2_P MIPI Data 2 +
14 J15.101 MIPI_CSI1_D3_N MIPI Data 3 -
15 J15.99 MIPI_CSI1_D3_P MIPI Data 3 +
16 - CAM1_IO2/GND CSI_nRST/Ground Default connected to Ground

Can be alternatively routed to J15.233 GPIO

17 J15.227 CAM1_IO0 CSI_MCLK
18 J15.231 CAM1_IO1 CSI1_SYNC
19 - CAM1_IO3/GND CSI_MCLK/Ground Default connected to Ground

Can be alternatively routed to J15.38 GPIO

20 J15.230 CAM1_SCL I2C2_SCL 4K7 internal pull-up
21 J15.232 CAM1_SDA I2C2_SDA 4K7 internal pull-up
22 - MIPI_CSI1_PSU +3.3V Default connected to 3V3_CB

Can be alternatively routed to 5V_CB or VIN

J6[edit | edit source]

Pin# SOM Pin# Pin name Pin function Pin Notes
1, 4, 7, 10, 13 - DGND Ground
2 J15.79 MIPI_CSI2_D0_N MIPI Data 0 -
3 J15.77 MIPI_CSI2_D0_P MIPI Data 0 +
5 J15.83 MIPI_CSI2_D1_N MIPI Data 1 -
6 J15.81 MIPI_CSI2_D1_P MIPI Data 1 +
8 J15.87 MIPI_CSI2_CLK_N MIPI Clock -
9 J15.85 MIPI_CSI2_CLK_P MIPI Clock +
11 J15.91 MIPI_CSI2_D2_N MIPI Data 2 -
12 J15.89 MIPI_CSI2_D2_P MIPI Data 2 +
14 J15.95 MIPI_CSI2_D3_N MIPI Data 3 -
15 J15.93 MIPI_CSI2_D3_P MIPI Data 3 +
16 - CAM2_IO2/GND CSI_nRST/Ground Default connected to Ground

Can be alternatively routed to J15.233 GPIO

17 J15.227 CAM2_IO0 CSI_MCLK
18 J15.225 CAM2_IO1 CSI2_SYNC
19 - CAM2_IO3/GND CSI_MCLK/Ground Default connected to Ground

Can be alternatively routed to J15.38 GPIO

20 J15.234 CAM2_SCL I2C3_SCL 4K7 internal pull-up
21 J15.236 CAM2_SDA I2C3_SDA 4K7 internal pull-up
22 - MIPI_CSI1_PSU Power supply Default connected to 3V3_CB

Can be alternatively routed to 5V_CB or VIN

J7[edit | edit source]

Pin# SOM Pin# Pin name Pin function Pin Notes
1, 4, 7, 10, 13, 20 - DGND Ground
2 J15.135 MIPI_DSI1_D1_N MIPI Data 1 -
3 J15.133 MIPI_DSI1_D1_P MIPI Data 1 +
5 J15.131 MIPI_DSI1_CLK_N MIPI Clock -
6 J15.129 MIPI_DSI1_CLK_P MIPI Clock +
8 J15.139 MIPI_DSI1_D0_N MIPI Data 0 -
9 J15.137 MIPI_DSI1_D0_P MIPI Data 0 +
11 J15.127 MIPI_DSI1_D2_N MIPI Data 2 -
12 J15.125 MIPI_DSI1_D2_P MIPI Data 2 +
14 J15.123 MIPI_DSI1_D3_N MIPI Data 3 -
15 J15.121 MIPI_DSI1_D3_P MIPI Data 3 +
16 J15.209 DSI_EN GPIO
17 J15.230 DISP1_SCL I2C2_SCL 4K7 internal pull-up
18 J15.232 DISP1_SDA I2C2_SDA 4K7 internal pull-up
19 J15.217 DSI_BL_PWM PWM/GPIO Can be alternatively routed to Ground
21, 22 - MIPI_CSI1_PSU Power supply Default connected to 3V3_CB

Can be alternatively routed to 5V_CB

Device mapping[edit | edit source]

The MIPI CSI peripherals are mapped to the corresponding /dev/video<X> device in Linux.

The MIPI DSI peripherals are mapped to the corresponding /dev/fb<X> device in Linux.

The devices mapping depends on the device tree configuration.

Device usage[edit | edit source]

The devices are accessed in Linux through the standard graphic stack.