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. > > 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. > > Suggested-by: Mikko Perttunen # DC command transfer > 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 > > 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/Makefile > index e399b40d64a1d..ae7fccb3d6421 100644 > --- a/drivers/gpu/drm/tegra/Makefile > +++ b/drivers/gpu/drm/tegra/Makefile > @@ -18,6 +18,7 @@ tegra-drm-y := \ > 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