On 22-07-06 08:18:20, Alexander Stein wrote: > > Thanks! Indeed at a first glance it looks straight forward. I was trying to > get an imx327 running on a imx8mm, called TQMa8MxML. See [1] for some details. > The cover letter describes the config setup. The media-ctl commands might help > your setup. Note the settle times are an ugly bitch and are crucial to be set > on my board, but I'm not sure why they have to be that way. Patch 1-8 are > obsolete by now with the updates to drivers/media/platform/nxp/ > imx-mipi-csis.c. Patch 9 might help you configure the DT. Right, media-ctl is it. In fact the pipelines have been properly set up so i only had to change the format. The attached media graph is below Now, there are two problems i'm stumbling upon. One is related to the capture device not actually supporting imx492 format(s), which are: MEDIA_BUS_FMT_SGBRG10_1X10 MEDIA_BUS_FMT_SGBRG12_1X12 which i guess is why i am being greeted with (when using v4l2-ctl): imx7-csi 32e20000.csi: capture format not valid When i manually force it to something that is actually supported, MEDIA_BUS_FMT_SGBRG16_1X16, i get: imx7-csi 32e20000.csi: pipeline start failed with -67 Since this isn't one of the usual error numbers i guess it comes from within the driver code. I might be getting this error because the source is 12 bit while the sink is 16 and i am breaking something, dunno. Shall i go ahead and add MEDIA_BUS_FMT_SGBRG12_1X12 to the capture driver or i am missing something here? The other problem is when v4l2 tries to allocate buffer for even a single frame. This is 8192x5556 10/12bit bayer sensor and, maybe not surprisingly i get "buffer allocation failed". Is it possible that i'm the first to step on this issue on imx8m-mini or in general? thanks, Petko
Media controller API version 5.19.0 Media device information ------------------------ driver imx7-csi model imx-media serial bus info platform:32e20000.csi hw revision 0x0 driver version 5.19.0 Device topology - entity 1: csi (2 pads, 2 links) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev0 pad0: Sink [fmt:SGBRG12_1X12/4096x2048 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range] <- "csis-32e30000.mipi-csi":1 [ENABLED,IMMUTABLE] pad1: Source [fmt:SGBRG12_1X12/4096x2048 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range] -> "csi capture":0 [ENABLED,IMMUTABLE] - entity 4: csi capture (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video0 pad0: Sink <- "csi":1 [ENABLED,IMMUTABLE] - entity 10: csis-32e30000.mipi-csi (2 pads, 2 links) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 pad0: Sink [fmt:SGBRG12_1X12/4096x2048 field:none] <- "imx492 1-0010":0 [] pad1: Source [fmt:SGBRG12_1X12/4096x2048 field:none] -> "csi":0 [ENABLED,IMMUTABLE] - entity 15: imx492 1-0010 (1 pad, 1 link) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev2 pad0: Source [fmt:SGBRG12_1X12/4096x2048 field:none colorspace:raw xfer:none] -> "csis-32e30000.mipi-csi":0 []