Part Number: AM62A7-Q1
Hello,
The Linux system is already running on our custom board.
The following diagram shows our hardware connection.
Use CSI2 DPHY 1.5Gbps, 4 lane

I have a few questions I'd like to ask.
1.Is there a driver in the SDK that I can refer to?
2.How can I obtain the raw data from CSI?
I modified the driver based on the OV5640 driver for FPGA (removing IIC control,PM, Regulator,only reserve v4l2 subdev).
During the debugging phase, the FPGA continuously sends data and does not require control.
Our data format is custom-defined; I want to directly obtain the raw data.
The following links are already connected.
root@am62axx-evm:~# lsmod | grep "ov5640"
ov5640 12288 0
root@am62axx-evm:~# media-ctl -d /dev/media0 -p
Media controller API version 6.12.35
Media device information
------------------------
driver j721e-csi2rx
model TI-CSI2RX
serial
bus info platform:30102000.ticsi2rx
hw revision 0x1
driver version 6.12.35
Device topology
- entity 1: 30102000.ticsi2rx (7 pads, 7 links, 1 route)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
routes:
0/0 -> 1/0 [ACTIVE]
pad0: SINK
[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
<- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
pad1: SOURCE
[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
-> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
pad2: SOURCE
-> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
pad3: SOURCE
-> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
pad4: SOURCE
-> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
pad5: SOURCE
-> "30102000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE]
pad6: SOURCE
-> "30102000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE]
- entity 9: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 1 route)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
routes:
0/0 -> 1/0 [ACTIVE]
pad0: SINK
[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
<- "ov5640 2-003c":0 [ENABLED,IMMUTABLE]
pad1: SOURCE
[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
-> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
pad2: SOURCE
pad3: SOURCE
pad4: SOURCE
- entity 15: ov5640 2-003c (1 pad, 1 link, 0 routes)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2
pad0: SOURCE
[stream:0 fmt:UYVY8_1X16/640x480@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range
crop.bounds:(0,0)/0x0
crop:(0,0)/0x0
compose.bounds:(0,0)/0x0
compose:(0,0)/0x0]
-> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
- entity 21: 30102000.ticsi2rx context 0 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: SINK
<- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
- entity 27: 30102000.ticsi2rx context 1 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video2
pad0: SINK
<- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
- entity 33: 30102000.ticsi2rx context 2 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video3
pad0: SINK
<- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
- entity 39: 30102000.ticsi2rx context 3 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video4
pad0: SINK
<- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]
- entity 45: 30102000.ticsi2rx context 4 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video5
pad0: SINK
<- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE]
- entity 51: 30102000.ticsi2rx context 5 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video6
pad0: SINK
<- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]
root@am62axx-evm:~#
root@am62axx-evm:~# v4l2-ctl --device=/dev/video1 --info
Driver Info:
Driver name : j721e-csi2rx
Card type : j721e-csi2rx
Bus info : platform:30102000.ticsi2rx
Driver version : 6.12.35
Capabilities : 0xa4200001
Video Capture
I/O MC
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x24200001
Video Capture
I/O MC
Streaming
Extended Pix Format
Media Driver Info:
Driver name : j721e-csi2rx
Model : TI-CSI2RX
Serial :
Bus info : platform:30102000.ticsi2rx
Media version : 6.12.35
Hardware revision: 0x00000001 (1)
Driver version : 6.12.35
Interface Info:
ID : 0x03000017
Type : V4L Video
Entity Info:
ID : 0x00000015 (21)
Name : 30102000.ticsi2rx context 0
Function : V4L2 I/O
Pad 0x01000016 : 0: Sink
Link 0x02000019: from remote pad 0x1000003 of entity '30102000.ticsi2rx' (Video Interface Bridge): Data, Enabled, Immutable
root@am62axx-evm:~# v4l2-ctl --list-devices
j721e-csi2rx (platform:30102000.ticsi2rx):
/dev/video1
/dev/video2
/dev/video3
/dev/video4
/dev/video5
/dev/video6
/dev/media0
e5010 (platform:fd20000.jpeg-encoder):
/dev/video0
root@am62axx-evm:~# yavta -c -Fcapture -s 640x480 -f UYVY /dev/video1
Device /dev/video1 opened.
Device `j721e-csi2rx' on `platform:30102000.ticsi2rx' (driver 'j721e-csi2rx') supports video, capture, without mplanes.
Video format set: UYVY (59565955) 640x480 (stride 1280) field none buffer size 614400
Video format: UYVY (59565955) 640x480 (stride 1280) field none buffer size 614400
8 buffers requested.
length: 614400 offset: 0 timestamp type/source: mono/EoF
Buffer 0/0 mapped at address 0xffff99d3a000.
length: 614400 offset: 32768 timestamp type/source: mono/EoF
Buffer 1/0 mapped at address 0xffff99ca4000.
length: 614400 offset: 65536 timestamp type/source: mono/EoF
Buffer 2/0 mapped at address 0xffff99c0e000.
length: 614400 offset: 98304 timestamp type/source: mono/EoF
Buffer 3/0 mapped at address 0xffff99b78000.
length: 614400 offset: 131072 timestamp type/source: mono/EoF
Buffer 4/0 mapped at address 0xffff99ae2000.
length: 614400 offset: 163840 timestamp type/source: mono/EoF
Buffer 5/0 mapped at address 0xffff99a4c000.
length: 614400 offset: 196608 timestamp type/source: mono/EoF
Buffer 6/0 mapped at address 0xffff999b6000.
length: 614400 offset: 229376 timestamp type/source: mono/EoF
Buffer 7/0 mapped at address 0xffff99920000.




