Hi Niklas, On Wed, Apr 17, 2024 at 2:06 PM Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx> wrote: > Some R-Car SoCs are capable of capturing RAW10. Add support for it > using the V4L2_PIX_FMT_Y10 pixel format, which I think is the correct > format to express RAW10 unpacked to users. > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx> Thanks for your patch! I am no VIN or V4L2 expert, but the register bits LGTM, so Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> > --- a/drivers/media/platform/renesas/rcar-vin/rcar-dma.c > +++ b/drivers/media/platform/renesas/rcar-vin/rcar-dma.c > @@ -780,6 +782,9 @@ static int rvin_setup(struct rvin_dev *vin) > case MEDIA_BUS_FMT_Y8_1X8: > vnmc |= VNMC_INF_RAW8; > break; > + case MEDIA_BUS_FMT_Y10_1X10: > + vnmc |= VNMC_INF_RGB666; The actual meaning of this bit is not uniform across all SoCs. On R-Car V3U it means (partial) 16 bpp, on R-Car Gen3 it means 18 bpp. > + break; > default: > break; > } Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds