Capture image from imx219 sensor on i.MX8MM

Frieder Schrempf frieder.schrempf at kontron.de
Mon Feb 6 06:24:41 PST 2023


Hi,

I'm trying to get a camera stream on our i.MX8MM board up and running
with Linux 6.1. I'm using the RPi v2.1 camera module (imx219) as sensor.

I basically copied the devicetree setup from Tim's overlay at
arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx-0x-imx219.dts.

With all the drivers enabled the devices (imx219, imx7-media-csi,
imx-mipi-csis) seem to probe just fine and I see /dev/video0 and
/dev/media0.

For the v4l subdevices I would expect to see one for the sensor and one
for the CSI bridge. But only the latter is there (see below).

Is this correct? Am I missing something? How can I setup/enable the
pipeline/stream?

Thanks for any help!
Frieder


~# media-ctl -d /dev/media0 -p
Media controller API version 6.1.8

Media device information
------------------------
driver          imx7-csi
model           imx-media
serial
bus info        platform:32e20000.csi
hw revision     0x0
driver version  6.1.8

Device topology
- entity 1: csi (2 pads, 1 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
        pad0: Sink
                [fmt:UYVY8_2X8/640x480 field:none colorspace:srgb
xfer:srgb ycbcr:601 quantization:lim-range]
        pad1: Source
                [fmt:UYVY8_2X8/640x480 field:none colorspace:srgb
xfer:srgb ycbcr:601 quantization:lim-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]



More information about the linux-arm-kernel mailing list