Re: [PATCH 4/4] media: staging/ipu7: Add monochrome pixel formats
From: Sakari Ailus
Date: Fri Sep 25 2026 - 04:55:30 EST
Hi Ruslan,
On Thu, Sep 24, 2026 at 08:18:20PM +0300, Ruslan Koreev wrote:
> The CSI-2 receiver already accepts MEDIA_BUS_FMT_Y10_1X10 but the video
> nodes offer no pixel format for it, and MEDIA_BUS_FMT_Y8_1X8 is not
> accepted at all, so a monochrome sensor cannot stream through the IPU7:
> the ST VD55G1 IR camera of the Lenovo ThinkPad X1 Carbon Gen 14 only
> produces Y8 and Y10 and no configuration can be negotiated for it.
>
> Add the GREY, Y10 and Y10P pixel formats, mapped to the RAW8, RAW16
> and RAW10 frame formats like their Bayer counterparts, and accept
> MEDIA_BUS_FMT_Y8_1X8 on the CSI-2 receiver with the RAW8 data type.
> ipu7_isys_is_bayer_format() treats every raw code as Bayer, so the mono
> codes take the raw path in the CSI-2 cropping code; leave them alone in
> ipu7_isys_convert_bayer_order(), which otherwise warns about them. The
> two parts belong together: with the mono codes exposed but not excluded
> there, any crop offset on a mono stream triggers the warning.
>
> Tested with the VD55G1 on that laptop: libcamera negotiates Y8 and
> streams 804x704 at 58 fps, and Y10 and Y10P stream with plain V4L2.
Can you try doing this with the ipu6 driver instead? We're about to drop
the ipu7 staging driver after some smallish number of kernel releases.
--
Regards,
Sakari Ailus