Part Number: AM625
I'm trying to figure out how to use MIPI CSI Virtual Channels with Linux drivers available on AM625? The ticsi2rx driver has five media pads:
Device topology
- entity 1: 30102000.ticsi2rx (5 pads, 5 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
[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
[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]
The sink is linked with csi-bridge, that itself has five media pads as well:
- entity 7: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
[fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
<- "imx219 4-0010":0 [ENABLED,IMMUTABLE]
pad1: Source
[fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
-> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
pad2: Source
[fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
pad3: Source
[fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
pad4: Source
[fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
The sink of it is connected to imx219 I managed to configure via device tree overlay, but that's not my ultimate goal. I'm going to have combined multiple sensors each streaming on different virtual channel.
What I need to understand is either whether source pads of the csi-bridge are mapped to virtual channels of the CSI interface or if there's a way to tell drivers what camera streams on each virtual channel? Would I need to configure more instances of ticsi2rx subdevices to get separate streams? How to configure formats on them as at the moment sink of csi-bridge seem to be fixed to one format?
Any hints welcome.
Thank you.
