[PATCH v3 0/4] media: mali-c55: Add support for CCM and Gamma

From: Jacopo Mondi

Date: Sat Jun 27 2026 - 10:29:51 EST


Add support for Ccm and Gamma to the Mali-C55 ISP by defining the
corresponding blocks in the uAPI and implementing their handling in
the driver.

v3 implements validation of CCM and Gamma parameters using the new
block_validate() callback from v4l2-isp.

I kept the two patches unsquashed, to discuss if it is worth validating
the fields or we should rely on masking before writing to registers.

Signed-off-by: Jacopo Mondi <jacopo.mondi+renesas@xxxxxxxxxxxxxxxx>
---
Changes in v3:
- Address review comments from Linus and Vincenzo (changelog per patch)
- Rebase on top of
"[PATCH v3 0/6] media: v4l2-isp: Add support for extensible statistics"
https://patchwork.linuxtv.org/project/linux-media/list/?series=26929
to perform per-block validation
- Add 2 patches for validating CCM and Gamma parameters
- Collect tags
- Link to v2: https://lore.kernel.org/r/20260616-mali-c55-ccm-gamma-v2-0-0f93e9a95d98@xxxxxxxxxxxxxxxx

Changes in v2:
- remove unused 'rgb_enable' in gamma uapi
- address checkpatch issues
- Link to v1: https://lore.kernel.org/r/20260616-mali-c55-ccm-gamma-v1-0-174fe4fedea3@xxxxxxxxxxxxxxxx

---
Jacopo Mondi (4):
media: mali-c55: Add support for CCM
media: mali-c55: Implement CCM block validation
media: mali-c55: Add support for RGB Gamma
media: mali-c55: Implement Gamma block validation

.../media/platform/arm/mali-c55/mali-c55-params.c | 197 +++++++++++++++++++++
.../platform/arm/mali-c55/mali-c55-registers.h | 13 +-
include/uapi/linux/media/arm/mali-c55-config.h | 84 ++++++++-
3 files changed, 289 insertions(+), 5 deletions(-)
---
base-commit: 06cb687a5132fcffe624c0070576ab852ac6b568
change-id: 20260616-mali-c55-ccm-gamma-c02a0df59f98
prerequisite-message-id: 20260627-extensible-stats-v3-0-3b600bb2db8b@xxxxxxxxxxxxxxxx
prerequisite-patch-id: 2939dff7f477209138725aa8d86318d6580f4ea3
prerequisite-patch-id: f77370d8fc480b2e972a773f7d56f33ff1995eef
prerequisite-patch-id: bd3b231bc86129d25fca4ae34408a61db43bf883
prerequisite-patch-id: e44f05055f4bc9dc93ae6bd25af80c64f5ce627a
prerequisite-patch-id: a5f27213eba078f7ed5420d90df3ecd45151219e
prerequisite-patch-id: 9b2fbe610fb17689030c6da6c529f7db91b86d9c

Best regards,
--
Jacopo Mondi <jacopo.mondi@xxxxxxxxxxxxxxxx>