From 6f392f37165008cfb3f89d723aa019e372ee79b9 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 4 Jun 2025 10:53:06 -0400 Subject: [PATCH] drm: renesas: rz-du: Implement MIPI DSI host transfers Add support for sending MIPI DSI command packets from the host to a peripheral. This is required for panels that need configuration before they accept video data. Also for long reads to work properly, set DCS maximum return packet size to the value of the DMA buffer size. Based on Renesas Linux kernel v5.10 repos [1]. Link: https://github.com/renesas-rz/rz_linux-cip.git Signed-off-by: Hugo Villeneuve Tested-by: Chris Brandt Reviewed-by: Biju Das Signed-off-by: Biju Das Link: https://lore.kernel.org/r/20250604145306.1170676-2-hugo@hugovil.com --- .../gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c | 186 ++++++++++++++++++ .../drm/renesas/rz-du/rzg2l_mipi_dsi_regs.h | 54 +++++ 2 files changed, 240 insertions(+) diff --git a/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c b/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c index 91e1a9adad7d6..50ec109aa6ed3 100644 --- a/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c +++ b/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c @@ -4,8 +4,11 @@ * * Copyright (C) 2022 Renesas Electronics Corporation */ + +#include #include #include +#include #include #include #include @@ -23,9 +26,12 @@ #include #include #include +#include