[v8 00/14] media: Add support for R-Car ISP using Dreamchip RPPX1 ISP

From: Niklas Söderlund

Date: Sun May 03 2026 - 21:09:00 EST


Hello,

This series adds support for two different devices that together enable
ISP support on Renesas R-Car Gen4 ISP processing. The first driver added
is for Dreamchip RPPX1 ISP, this device purely deals with image
processing algorithms, statistics and image conversion; but have no DMA
engines. The second driver is for the R-Car ISP CORE, this device
deals with DMA to/from the RPPX1 ISP and provides a V4L2 user-space
interface for the ISP.

The R-Car ISP driver uses the RPPX1 framework to drive the ISP and
together the two devices provide a functional ISP. For detailed
description of the RPPX1 see patch 2/14, and for details about the R-Car
ISP see commit message in patch 3/14.

All functional blocks present on the RPPX1 are not yet added to the
driver, but most are.

Patch 1/14 adds two new pixel formats, one for parameters and one for
statistics.

Patch 2/14 adds the foundation for the RPPX1 framework. It deals with
probing all function blocks making sure every blocks version register is
supported and setup a "passthru" pipeline that just debayer RAW images.

Patch 3/14 integrates the adds the R-Car ISP CORE DMA parts and
integrates with the RPPX1 framework added in patch 1/14.

Patches 4/14 to 14/14 extends the RPPX1 framework with the logic to drive
the different IPS modules.

The sum of the work pass v4l2-compliance. A test suite for the enabled
function blocks exists and pass.

This series depends on the ISP extensible statistics definitions
out-of-tree patches.

Biggest change since v7 is that a new pixel format dedicated for the
RPPX1 have been created by Jai Luthra and Jacopo Mondi have reworked the
statistics buffer for v4l2-isp extensible statistics blocks. Huge
thanks!

I have taken that work in, reviewed and reworked parts of it. The
biggest changes is a rework of naming of blocks and variables, as we are
now free from the RkISP1 format proper names can be used to make it
easier to map data structures to the datasheet. I also added a new BLS
statistics block as well as updated support for the BD and DB blocks,
which where incomplete.

Biggest change since v6 is that v4l2-isp framework is now used to verify
the formats. There are also various small fixes here and there, see
individual patches for detailed change log.

Jai Luthra (2):
media: Add RPP_X1_PARAMS and RPP_X1_STATS meta formats
media: rppx1: lin: Add support for gamma sensor linearization

Niklas Söderlund (12):
media: rppx1: Add framework to support Dreamchip RPPX1 ISP
media: rcar-isp: Add support for ISPCORE
media: rppx1: wbmeas: Add support for white balance measurement
media: rppx1: awbg: Add support for white balance gain settings
media: rppx1: exm: Add support for exposure measurement
media: rppx1: hist: Add support histogram measurement
media: rppx1: bls: Add support for black level compensation
media: rppx1: ccor: Add support for color correction matrix
media: rppx1: lsc: Add support for lens shade correction
media: rppx1: ga: Add support for gamma out correction
media: rppx1: db: Add support for debayering filters
media: rppx1: bd: Add support for bilateral denoising

MAINTAINERS | 7 +
drivers/media/platform/Kconfig | 1 +
drivers/media/platform/Makefile | 1 +
drivers/media/platform/dreamchip/Kconfig | 3 +
drivers/media/platform/dreamchip/Makefile | 6 +
.../media/platform/dreamchip/rppx1/Kconfig | 12 +
.../media/platform/dreamchip/rppx1/Makefile | 33 +
.../platform/dreamchip/rppx1/rpp_module.c | 40 +
.../platform/dreamchip/rppx1/rpp_module.h | 161 +++
.../platform/dreamchip/rppx1/rpp_params.c | 128 +++
.../platform/dreamchip/rppx1/rpp_stats.c | 73 ++
.../media/platform/dreamchip/rppx1/rppx1.c | 339 ++++++
.../media/platform/dreamchip/rppx1/rppx1.h | 99 ++
.../platform/dreamchip/rppx1/rppx1_acq.c | 147 +++
.../platform/dreamchip/rppx1/rppx1_awbg.c | 62 +
.../media/platform/dreamchip/rppx1/rppx1_bd.c | 171 +++
.../platform/dreamchip/rppx1/rppx1_bdrgb.c | 80 ++
.../platform/dreamchip/rppx1/rppx1_bls.c | 180 +++
.../platform/dreamchip/rppx1/rppx1_cac.c | 29 +
.../platform/dreamchip/rppx1/rppx1_ccor.c | 167 +++
.../media/platform/dreamchip/rppx1/rppx1_db.c | 126 ++
.../platform/dreamchip/rppx1/rppx1_dpcc.c | 76 ++
.../platform/dreamchip/rppx1/rppx1_exm.c | 127 ++
.../media/platform/dreamchip/rppx1/rppx1_ga.c | 90 ++
.../platform/dreamchip/rppx1/rppx1_hist.c | 189 +++
.../platform/dreamchip/rppx1/rppx1_hist256.c | 46 +
.../media/platform/dreamchip/rppx1/rppx1_is.c | 42 +
.../platform/dreamchip/rppx1/rppx1_lin.c | 113 ++
.../platform/dreamchip/rppx1/rppx1_lsc.c | 187 +++
.../platform/dreamchip/rppx1/rppx1_ltm.c | 48 +
.../platform/dreamchip/rppx1/rppx1_ltmmeas.c | 41 +
.../platform/dreamchip/rppx1/rppx1_outif.c | 45 +
.../platform/dreamchip/rppx1/rppx1_outregs.c | 75 ++
.../platform/dreamchip/rppx1/rppx1_rmap.c | 64 ++
.../platform/dreamchip/rppx1/rppx1_rmapmeas.c | 47 +
.../platform/dreamchip/rppx1/rppx1_shrp.c | 64 ++
.../platform/dreamchip/rppx1/rppx1_wbmeas.c | 164 +++
.../platform/dreamchip/rppx1/rppx1_xyz2luv.c | 26 +
.../media/platform/renesas/rcar-isp/Kconfig | 2 +
.../media/platform/renesas/rcar-isp/Makefile | 2 +-
.../media/platform/renesas/rcar-isp/core-io.c | 1017 +++++++++++++++++
.../media/platform/renesas/rcar-isp/core.c | 826 +++++++++++++
.../media/platform/renesas/rcar-isp/csisp.c | 48 +-
.../platform/renesas/rcar-isp/risp-core.h | 170 +++
drivers/media/v4l2-core/v4l2-ioctl.c | 2 +
include/media/rppx1.h | 34 +
.../uapi/linux/media/dreamchip/rppx1-config.h | 926 +++++++++++++++
include/uapi/linux/videodev2.h | 4 +
48 files changed, 6332 insertions(+), 8 deletions(-)
create mode 100644 drivers/media/platform/dreamchip/Kconfig
create mode 100644 drivers/media/platform/dreamchip/Makefile
create mode 100644 drivers/media/platform/dreamchip/rppx1/Kconfig
create mode 100644 drivers/media/platform/dreamchip/rppx1/Makefile
create mode 100644 drivers/media/platform/dreamchip/rppx1/rpp_module.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rpp_module.h
create mode 100644 drivers/media/platform/dreamchip/rppx1/rpp_params.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rpp_stats.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1.h
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_acq.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_awbg.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_bd.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_bdrgb.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_bls.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_cac.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_ccor.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_db.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_dpcc.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_exm.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_ga.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_hist.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_hist256.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_is.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_lin.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_lsc.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_ltm.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_ltmmeas.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_outif.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_outregs.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_rmap.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_rmapmeas.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_shrp.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_wbmeas.c
create mode 100644 drivers/media/platform/dreamchip/rppx1/rppx1_xyz2luv.c
create mode 100644 drivers/media/platform/renesas/rcar-isp/core-io.c
create mode 100644 drivers/media/platform/renesas/rcar-isp/core.c
create mode 100644 drivers/media/platform/renesas/rcar-isp/risp-core.h
create mode 100644 include/media/rppx1.h
create mode 100644 include/uapi/linux/media/dreamchip/rppx1-config.h

--
2.54.0