From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A79D25C6E7; Tue, 20 May 2025 17:10:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.243.120.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747761054; cv=none; b=sIfxoQiD9ypctG/VpviId3khVEKgppe4K5qQGONZQVIS+NXF4+rQryTv/Bwm0fpLd086RDEw2qGb87mxFE8BWBR0hn50m/p0hTPS6BirfLzc9tdxviMSI3pUmrQsWA1rJwHMXMj/zaXiil+VGJtzCjV5f8QPi+dFhLMPKGM2s+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747761054; c=relaxed/simple; bh=8SvEsxjTm+ern1zc0cjL020WoHjL+897glMUo4U4jsk=; h=From:To:Cc:Date:Message-Id:MIME-Version:Subject; b=Nkm30t+rEgO4/sYHMcn912LEOuKPpsy27szMDJA3pOcj087mFkuoy/oYcC0NwSMqsiA3PVmJSUDthh7SKrlquzKmt4DIzxhoBks9PYvb2JXLbMUqaz2X1mxKEBesFnjUHS/YCDOlD1k4bio/ihZbN1DBJreyeKahGFIpraNWeLk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hugovil.com; spf=pass smtp.mailfrom=hugovil.com; dkim=pass (1024-bit key) header.d=hugovil.com header.i=@hugovil.com header.b=H8jWlfL2; arc=none smtp.client-ip=162.243.120.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hugovil.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hugovil.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hugovil.com header.i=@hugovil.com header.b="H8jWlfL2" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Cc:To :From:subject:date:message-id:reply-to; bh=9NTe1XyYPQ6tOb0ztFbQh3cmjAGbyUdzWNvkJ4TMkp4=; b=H8jWlfL2fk4L3RqozSbYwYTmlm gY72ri0NgE9ugBo2stfdyw8tO55TJQvdLKoR63Bw5oQovOaHfk27TRB+UXKU3Qfe0wm7/r3j/kvzG /ptF9kQ0d3jcnF4RvO4u3lO+Ax7RDgnLRQpG60u37BMDhs4JCkI0ATbG1CspMYOrxLJU=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:41224 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1uHQUG-0006XW-2Y; Tue, 20 May 2025 13:10:44 -0400 From: Hugo Villeneuve To: biju.das.jz@bp.renesas.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, hugo@hugovil.com, Hugo Villeneuve , Chris Brandt Date: Tue, 20 May 2025 13:10:33 -0400 Message-Id: <20250520171034.3488482-2-hugo@hugovil.com> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Level: X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Subject: [PATCH 1/2] drm: rcar-du: rzg2l_mipi_dsi: Implement host transfers X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) From: Hugo Villeneuve 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. Based on Renesas Linux kernel v5.10 repos [1]. Link: https://github.com/renesas-rz/rz_linux-cip.git Cc: Biju Das Cc: Chris Brandt Signed-off-by: Hugo Villeneuve --- .../gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c | 174 ++++++++++++++++++ .../drm/renesas/rz-du/rzg2l_mipi_dsi_regs.h | 56 ++++++ 2 files changed, 230 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 dc6ab012cdb69..77d3a31ff8e35 100644 --- a/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c +++ b/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c @@ -6,6 +6,7 @@ */ #include #include +#include #include #include #include @@ -23,9 +24,12 @@ #include #include #include +#include