From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3692606A326 for ; Fri, 6 Nov 2026 14:38:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=TqzkEA0V Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 10D6610E409; Fri, 6 Nov 2026 14:38:48 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9A61110E409 for ; Fri, 6 Nov 2026 14:38:41 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 7B6BF602D4; Fri, 6 Nov 2026 14:38:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A40C71F0089F; Fri, 6 Nov 2026 14:38:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793975920; bh=nYqkxv6TcTaA/kjBkYOTDNrRK7O6kHO8JqG0CWPQfYc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=TqzkEA0Vv6FiA/EyNHSGPazSRIxmze7NsRy2HS9UFnZLYngP5FU/k984j22IxxLSt G1mXSy3pJUZtcOX0uuCh0BGPfEtKxeqPMH7iMDq1BsZtJcBmY1BE0UVjD6CfBra6HG Ag+Be9z8npxA1OZxTFuN75Ezvh/jqeYPCyuiSOmri16kQEwfLaLejNUSC+x6slW0KF d5QZgMnG4JaXAkKum09Kqzk3Tq66QmT3NfSoU+yNr6XdAc6ce+jld5vFKHTk6MlHvd wjTgR+FYIcW4Gqo/TsLmp3ku1M5OmutAW9+ET0CKcI3MjvK/5ieNg8L0Aw5+JWl32a tAC9Z8tsKdIng== Date: Fri, 6 Nov 2026 15:38:37 +0100 From: Thierry Reding To: Svyatoslav Ryhel Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Hunter , Neil Armstrong , Jessica Zhang , Mikko Perttunen , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 10/10] drm/tegra: Add support for 8-bit CPU interface Message-ID: References: <20261105140510.165165-1-clamor95@gmail.com> <20261105140510.165165-11-clamor95@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bfslmjupan46ngr7" Content-Disposition: inline In-Reply-To: <20261105140510.165165-11-clamor95@gmail.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 --bfslmjupan46ngr7 Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v6 10/10] drm/tegra: Add support for 8-bit CPU interface MIME-Version: 1.0 On Thu, Nov 05, 2026 at 04:05:10PM +0200, Svyatoslav Ryhel wrote: > The display controller in Tegra20/30 SoCs features an 8-bit SPI interface > that closely resembles the MIPI DBI Type B protocol and is referred to as > '8-bit CPU'. Each display controller provides two such interfaces, which > can be used to send MIPI DCS commands to initialize and control the panel > while image data is transmitted via 16/18/24-line RGB. >=20 > The '8-bit CPU', although being the DC interface, is modeled using a > bridge framework for flexibility and convenience. This implementation does > not change the existing codebase besides registering the bus. >=20 > Suggested-by: Mikko Perttunen # DC command transf= er > Signed-off-by: Svyatoslav Ryhel > --- > drivers/gpu/drm/tegra/Kconfig | 1 + > drivers/gpu/drm/tegra/Makefile | 1 + > drivers/gpu/drm/tegra/dbi.c | 576 +++++++++++++++++++++++++++++++++ > drivers/gpu/drm/tegra/dc.c | 4 + > drivers/gpu/drm/tegra/dc.h | 3 + > 5 files changed, 585 insertions(+) > create mode 100644 drivers/gpu/drm/tegra/dbi.c >=20 > diff --git a/drivers/gpu/drm/tegra/Kconfig b/drivers/gpu/drm/tegra/Kconfig > index 8a3b16aac5d68..6f57fd3985edc 100644 > --- a/drivers/gpu/drm/tegra/Kconfig > +++ b/drivers/gpu/drm/tegra/Kconfig > @@ -12,6 +12,7 @@ config DRM_TEGRA > select DRM_BRIDGE_CONNECTOR > select DRM_DISPLAY_DP_AUX_BUS > select DRM_KMS_HELPER > + select DRM_MIPI_DBI > select DRM_MIPI_DSI > select DRM_PANEL > select FB_DMAMEM_HELPERS if DRM_FBDEV_EMULATION > diff --git a/drivers/gpu/drm/tegra/Makefile b/drivers/gpu/drm/tegra/Makef= ile > index e399b40d64a1d..ae7fccb3d6421 100644 > --- a/drivers/gpu/drm/tegra/Makefile > +++ b/drivers/gpu/drm/tegra/Makefile > @@ -18,6 +18,7 @@ tegra-drm-y :=3D \ > hdmi.o \ > mipi-phy.o \ > dsi.o \ > + dbi.o \ > sor.o \ > dpaux.o \ > gr2d.o \ > diff --git a/drivers/gpu/drm/tegra/dbi.c b/drivers/gpu/drm/tegra/dbi.c > new file mode 100644 > index 0000000000000..32d390f64ddbd > --- /dev/null > +++ b/drivers/gpu/drm/tegra/dbi.c > @@ -0,0 +1,576 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Nvidia Tegra20/30 MIPI-DBI Type B host driver > + * > + * Copyright (C) 2026 Svyatoslav Ryhel > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include