Devicetree
 help / color / mirror / Atom feed
From: Mikko Perttunen <mperttunen@nvidia.com>
To: devicetree@vger.kernel.org
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Thierry Reding <thierry.reding@kernel.org>,
	Jonathan Hunter <jonathanh@nvidia.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Jessica Zhang <jesszhan0024@gmail.com>,
	devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org,
	Svyatoslav Ryhel <clamor95@gmail.com>
Subject: Re: [PATCH v8 01/12] drm: Add MIPI DBI bus support for MIPI DBI Type A and B
Date: Fri, 27 Nov 2026 21:14:55 +0900	[thread overview]
Message-ID: <H5TrL9ZbQaiciaNOSrG3BQ@nvidia.com> (raw)
In-Reply-To: <CAPVz0n2G2Bw6xyD4zYrEWNZj-SMGXLUeUFOHU6PBy_vketU_JQ@mail.gmail.com>

On Friday, November 27, 2026 6:06 PM Svyatoslav Ryhel wrote:
> пт, 27 лист. 2026 р. о 06:16 Mikko Perttunen <mperttunen@nvidia.com> пише:
> >
> > On Sunday, November 22, 2026 5:18 PM Svyatoslav Ryhel wrote:
> > > The MIPI DBI bus allows modeling DBI hosts and peripherals using the Linux
> > > driver model. DBI hosts are registered by their respective drivers. During
> > > registration, DBI peripherals are created from the device tree nodes
> > > provided by the host.
> > >
> > > DBI hosts expose operations that can be used by peripheral drivers to
> > > access associated devices.
> > >
> > > This implementation adds support for MIPI DBI Type A and Type B only.
> > > Type C support existing in drm_mipi_dbi.c was not altered. The framework
> > > is modeled to closely resemble the existing MIPI DSI setup for seamless
> > > integration.
> > >
> > > Suggested-by: Mikko Perttunen <mperttunen@nvidia.com> # preliminary sketch
> > > Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
> > > ---
> > >  drivers/gpu/drm/Makefile           |   2 +-
> > >  drivers/gpu/drm/drm_mipi_dbi_bus.c | 287 +++++++++++++++++++++++++++++
> > >  include/drm/drm_mipi_dbi_bus.h     | 148 +++++++++++++++
> > >  3 files changed, 436 insertions(+), 1 deletion(-)
> > >  create mode 100644 drivers/gpu/drm/drm_mipi_dbi_bus.c
> > >  create mode 100644 include/drm/drm_mipi_dbi_bus.h
> > >
> > > diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile
> > > index 2c6bc093a923a..880f0dc930b85 100644
> > > --- a/drivers/gpu/drm/Makefile
> > > +++ b/drivers/gpu/drm/Makefile
> > > @@ -166,7 +166,7 @@ obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o
> > >
> > >  obj-y                        += tests/
> > >
> > > -obj-$(CONFIG_DRM_MIPI_DBI) += drm_mipi_dbi.o
> > > +obj-$(CONFIG_DRM_MIPI_DBI) += drm_mipi_dbi.o drm_mipi_dbi_bus.o
> > >  obj-$(CONFIG_DRM_MIPI_DSI) += drm_mipi_dsi.o
> > >  obj-y                        += arm/
> > >  obj-y                        += clients/
> > > diff --git a/drivers/gpu/drm/drm_mipi_dbi_bus.c b/drivers/gpu/drm/drm_mipi_dbi_bus.c
> > > new file mode 100644
> > > index 0000000000000..4b51de5bdf0b5
> > > --- /dev/null
> > > +++ b/drivers/gpu/drm/drm_mipi_dbi_bus.c
> > > @@ -0,0 +1,287 @@
> > > +// SPDX-License-Identifier: GPL-2.0-or-later
> > > +/*
> > > + * MIPI DBI devices with command transport through parallel interface
> > > + *
> > > + * Copyright 2026 Mikko Perttunen <mperttunen@nvidia.com>
> > > + * Copyright 2026 Svyatoslav Ryhel <clamor95@gmail.com>
> > > + */
> > > +
> > > +#include <linux/err.h>
> > > +#include <linux/init.h>
> > > +#include <linux/of.h>
> > > +#include <linux/of_device.h>
> > > +#include <linux/pm_runtime.h>
> > > +#include <linux/slab.h>
> > > +
> > > +#include <drm/drm_mipi_dbi.h>
> > > +#include <drm/drm_mipi_dbi_bus.h>
> > > +
> > > +/**
> > > + * DOC: overview
> > > + *
> > > + * There are three MIPI DBI implementation types:
> > > + *
> > > + * A. Motorola 6800-type parallel bus
> > > + *
> > > + * B. Intel 8080-type parallel bus
> > > + *
> > > + * C. SPI-type with three options:
> > > + *
> > > + *    1. 9-bit with the Data/Command signal as the ninth bit
> > > + *    2. Same as above, except it is sent as 16 bits
> > > + *    3. 8-bit with the Data/Command signal as a separate D/CX pin
> > > + *
> > > + * This library provides a framework for MIPI Display Bus Interface (DBI)
> > > + * compatible display controllers using Type A and Type B. This
> > > + * implementation closely matches existing DSI framework behavior to
> > > + * allow seamless integration.
> > > + *
> > > + * Type C options 1 and 3 are covered by drm_mipi_dbi.c with
> > > + * mipi_dbi_spi_init().
> > > + */
> > > +
> > > +static int mipi_dbi_match(struct device *dev, const struct device_driver *driver)
> > > +{
> > > +     return of_driver_match_device(dev, driver);
> > > +}
> > > +
> > > +static int mipi_dbi_uevent(const struct device *dev, struct kobj_uevent_env *env)
> > > +{
> > > +     return of_device_uevent_modalias(dev, env);
> > > +}
> > > +
> > > +static const struct dev_pm_ops mipi_dbi_device_pm_ops = {
> > > +     .runtime_suspend = pm_generic_runtime_suspend,
> > > +     .runtime_resume = pm_generic_runtime_resume,
> > > +     .suspend = pm_generic_suspend,
> > > +     .resume = pm_generic_resume,
> > > +     .freeze = pm_generic_freeze,
> > > +     .thaw = pm_generic_thaw,
> > > +     .poweroff = pm_generic_poweroff,
> > > +     .restore = pm_generic_restore,
> > > +};
> > > +
> > > +static const struct bus_type mipi_dbi_bus_type = {
> > > +     .name = "mipi-dbi",
> > > +     .match = mipi_dbi_match,
> > > +     .uevent = mipi_dbi_uevent,
> >
> > These two callbacks are just direct wrappers so I believe we should be
> > able to set them to of_driver_match_device / of_device_uevent_modalias
> > directly.
> >
> 
> May you specify a bit more please?

mipi_dbi_match just calls of_driver_match_device and mipi_dbi_uevent 
just calls of_device_uevent_modalias. So rather than having the 
mipi_dbi_* functions, we should be able to assign the of_* functions 
here directly.

> 
> > > +     .pm = &mipi_dbi_device_pm_ops,
> >
> > I think we can drop setting .pm as well. These callbacks will fall back
> > to the same code (driver callbacks) if we don't set the bus PM ops.
> >
> 
> Noted.
> 
> > > +};
> > > +
> > > +static void mipi_dbi_device_release(struct device *dev)
> > > +{
> > > +     of_node_put(dev->of_node);
> > > +     kfree(to_mipi_dbi_device(dev));
> > > +}
> > > +
> > > +static void mipi_dbi_device_unregister(void *data)
> > > +{
> > > +     struct device *dev = data;
> > > +
> > > +     of_node_clear_flag(dev->of_node, OF_POPULATED);
> > > +     device_unregister(dev);
> > > +}
> > > +
> > > +/**
> > > + * devm_mipi_dbi_device_register() - create a managed peripheral MIPI DBI
> > > + *                                Type A or B device.
> > > + * @dev: device to tie the MIPI-DBI device lifetime to
> > > + * @host: DBI host to which this device is connected
> > > + * @np: device tree node associated with the panel MIPI DBI device
> > > + *
> > > + * This function is called by DBI host driver to create panel device.
> > > + * It automatically calls mipi_dbi_device_unregister() when @dev is
> > > + * unbound. It does not automatically free passed device node pointer,
> > > + * it must be put manually.
> > > + *
> > > + * Returns:
> > > + * A pointer to the newly created MIPI DBI device, or, a pointer encoded
> > > + * with an error.
> >
> > For brevity, I would just use 'an error pointer'.
> >
> 
> Noted
> 
> > > + */
> > > +struct mipi_dbi_device *
> > > +devm_mipi_dbi_device_register(struct device *dev, struct mipi_dbi_host *host,
> > > +                           struct device_node *np)
> > > +{
> > > +     struct mipi_dbi_device *dbidev;
> > > +     int ret;
> > > +
> > > +     if (!host || !host->dev || !host->dbi || !host->dbi->command ||
> > > +         !host->ops || !host->ops->attach || !host->ops->detach || !np)
> > > +             return ERR_PTR(-EINVAL);
> > > +
> > > +     if (!of_device_is_available(np))
> > > +             return ERR_PTR(-ENODEV);
> > > +
> > > +     dbidev = kzalloc_obj(*dbidev);
> > > +     if (!dbidev)
> > > +             return ERR_PTR(-ENOMEM);
> > > +
> > > +     if (of_node_test_and_set_flag(np, OF_POPULATED)) {
> > > +             kfree(dbidev);
> > > +             return ERR_PTR(-EBUSY);
> > > +     }
> > > +
> > > +     dbidev->host = host;
> > > +     dbidev->dbi = host->dbi;
> > > +     device_initialize(&dbidev->dev);
> > > +     dbidev->dev.parent = host->dev;
> > > +     dbidev->dev.bus = &mipi_dbi_bus_type;
> > > +     dbidev->dev.release = mipi_dbi_device_release;
> > > +     device_set_node(&dbidev->dev, of_fwnode_handle(of_node_get(np)));
> > > +
> > > +     ret = dev_set_name(&dbidev->dev, "%s:%s", dev_name(host->dev), np->full_name);
> > > +     if (ret)
> > > +             goto put_device;
> > > +
> > > +     ret = device_add(&dbidev->dev);
> > > +     if (ret)
> > > +             goto put_device;
> > > +
> > > +     ret = devm_add_action_or_reset(dev, mipi_dbi_device_unregister,
> > > +                                    &dbidev->dev);
> > > +     if (ret)
> > > +             return ERR_PTR(ret);
> > > +
> > > +     return dbidev;
> > > +
> > > +put_device:
> > > +     of_node_clear_flag(np, OF_POPULATED);
> > > +     put_device(&dbidev->dev);
> > > +     return ERR_PTR(ret);
> > > +}
> > > +EXPORT_SYMBOL_GPL(devm_mipi_dbi_device_register);
> > > +
> > > +static void mipi_dbi_detach(void *data)
> > > +{
> > > +     struct mipi_dbi_device *dbidev = data;
> > > +
> > > +     dbidev->host->ops->detach(dbidev->host, dbidev);
> > > +     dbidev->attached = false;
> > > +}
> > > +
> > > +/**
> > > + * devm_mipi_dbi_attach() - managed attach of peripheral DBI device to its MIPI
> > > + *                       DBI Type A or B devices.
> > > + * @dev: device to tie the MIPI-DBI device lifetime to
> > > + * @dbidev: DBI peripheral
> >
> > Add a return value description. Otherwise inevitably someone will send
> > an autogenerated oneline fix to add it.
> >
> 
> Noted
> 
> > > + */
> > > +int devm_mipi_dbi_attach(struct device *dev, struct mipi_dbi_device *dbidev)
> > > +{
> > > +     int ret;
> > > +
> > > +     if (dbidev->attached)
> > > +             return -EBUSY;
> > > +
> > > +     ret = dbidev->host->ops->attach(dbidev->host, dbidev);
> > > +     if (ret)
> > > +             return ret;
> > > +
> > > +     dbidev->attached = true;
> > > +     return devm_add_action_or_reset(dev, mipi_dbi_detach, dbidev);
> > > +}
> > > +EXPORT_SYMBOL_GPL(devm_mipi_dbi_attach);
> > > +
> > > +/**
> > > + * mipi_dbi_write_buffer_multi() - mipi_dbi_command() w/ accum_err but for
> > > + *                              MIPI DBI Type A and B
> > > + * @ctx: context for multiple DBI transactions
> > > + * @cmd: command to be sent
> > > + * @data: buffer containing data to be transmitted
> > > + * @len: size of transmission buffer
> > > + *
> > > + * Acts like mipi_dbi_command() for MIPI DBI Type C but for Types A and B
> > > + * and deals with errors in a way that makes it convenient to make several
> > > + * calls in a row.
> > > + */
> > > +void mipi_dbi_write_buffer_multi(struct mipi_dbi_multi_context *ctx,
> > > +                              u8 cmd, const u8 *data, size_t len)
> > > +{
> > > +     struct mipi_dbi_device *dbidev = ctx->dbidev;
> > > +     struct device *dev = &dbidev->dev;
> > > +     ssize_t ret;
> >
> > mipi_dbi_command_stackbuf returns an int, so this can be an int as well.
> >
> 
> This is deliberately void, errors are accumulated in context. This
> repeats DSI approach.

I mean the type of the 'ret' variable.

> 
> > > +
> > > +     if (ctx->accum_err)
> > > +             return;
> > > +
> > > +     ret = mipi_dbi_command_stackbuf(dbidev->dbi, cmd, data, len);
> > > +     if (ret < 0) {
> > > +             ctx->accum_err = ret;
> > > +             dev_err(dev, "sending dcs data %*ph failed: %d\n",
> > > +                     (int)len, data, ctx->accum_err);
> > > +     }
> > > +}
> > > +EXPORT_SYMBOL(mipi_dbi_write_buffer_multi);
> > > +
> > > +static int mipi_dbi_drv_probe(struct device *dev)
> > > +{
> > > +     struct mipi_dbi_driver *drv = to_mipi_dbi_driver(dev->driver);
> > > +     struct mipi_dbi_device *dbidev = to_mipi_dbi_device(dev);
> > > +
> > > +     return drv->probe(dbidev);
> > > +}
> > > +
> > > +static int mipi_dbi_drv_remove(struct device *dev)
> > > +{
> > > +     struct mipi_dbi_driver *drv = to_mipi_dbi_driver(dev->driver);
> > > +     struct mipi_dbi_device *dbidev = to_mipi_dbi_device(dev);
> > > +
> > > +     drv->remove(dbidev);
> > > +
> > > +     return 0;
> > > +}
> > > +
> > > +static void mipi_dbi_drv_shutdown(struct device *dev)
> > > +{
> > > +     struct mipi_dbi_driver *drv = to_mipi_dbi_driver(dev->driver);
> > > +     struct mipi_dbi_device *dbidev = to_mipi_dbi_device(dev);
> > > +
> > > +     drv->shutdown(dbidev);
> > > +}
> >
> > This could be simplified slightly by making these (probe, remove,
> > shutdown) bus-level callbacks (set on mipi_dbi_bus_type). Then the
> > callback assignments in __mipi_dbi_driver_register are not needed. The
> > 'if's do have to move into the bus-level callbacks. This also cleans up
> > the remove callback return type.
> >
> 
> I have added these to match DSI behavior as more established framework.

Well, there are other established frameworks that have the bus-level 
functions. But both approaches are pretty much equal in complexity so 
either one is fine.

> 
> > > +
> > > +/**
> > > + * __mipi_dbi_driver_register() - register a driver for MIPI DBI Type A or B devices.
> > > + * @drv: DBI driver structure
> > > + * @owner: owner module
> > > + *
> > > + * Return: 0 on success or a negative error code on failure.
> > > + */
> > > +int __mipi_dbi_driver_register(struct mipi_dbi_driver *drv, struct module *owner)
> > > +{
> > > +     drv->driver.bus = &mipi_dbi_bus_type;
> > > +     drv->driver.owner = owner;
> > > +
> > > +     if (drv->probe)
> > > +             drv->driver.probe = mipi_dbi_drv_probe;
> > > +     if (drv->remove)
> > > +             drv->driver.remove = mipi_dbi_drv_remove;
> > > +     if (drv->shutdown)
> > > +             drv->driver.shutdown = mipi_dbi_drv_shutdown;
> > > +
> > > +     return driver_register(&drv->driver);
> > > +}
> > > +EXPORT_SYMBOL_GPL(__mipi_dbi_driver_register);
> > > +
> > > +/**
> > > + * mipi_dbi_driver_unregister() - unregister a driver for MIPI DBI Type A or B devices.
> > > + * @drv: DBI driver structure
> > > + */
> > > +void mipi_dbi_driver_unregister(struct mipi_dbi_driver *drv)
> > > +{
> > > +     driver_unregister(&drv->driver);
> > > +}
> > > +EXPORT_SYMBOL_GPL(mipi_dbi_driver_unregister);
> > > +
> > > +static int __init mipi_dbi_bus_init(void)
> > > +{
> > > +     return bus_register(&mipi_dbi_bus_type);
> > > +}
> > > +subsys_initcall(mipi_dbi_bus_init);
> > > +
> > > +static void __exit mipi_dbi_bus_exit(void)
> > > +{
> > > +     bus_unregister(&mipi_dbi_bus_type);
> > > +}
> > > +module_exit(mipi_dbi_bus_exit);
> > > +
> > > +MODULE_DESCRIPTION("MIPI DBI devices with command transport through parallel interface");
> > > +MODULE_LICENSE("GPL");
> > > diff --git a/include/drm/drm_mipi_dbi_bus.h b/include/drm/drm_mipi_dbi_bus.h
> > > new file mode 100644
> > > index 0000000000000..6f00a8eef9c67
> > > --- /dev/null
> > > +++ b/include/drm/drm_mipi_dbi_bus.h
> > > @@ -0,0 +1,148 @@
> > > +/* SPDX-License-Identifier: GPL-2.0-or-later */
> > > +/*
> > > + * MIPI DBI devices with command transport through parallel interface
> > > + *
> > > + * Copyright 2026 Mikko Perttunen <mperttunen@nvidia.com>
> > > + * Copyright 2026 Svyatoslav Ryhel <clamor95@gmail.com>
> > > + */
> > > +
> > > +#ifndef __DRM_MIPI_DBI_BUS_H__
> > > +#define __DRM_MIPI_DBI_BUS_H__
> > > +
> > > +#include <linux/device.h>
> > > +#include <linux/module.h>
> > > +
> > > +struct device_node;
> > > +struct mipi_dbi;
> > > +struct mipi_dbi_device;
> > > +struct mipi_dbi_host;
> > > +
> > > +/**
> > > + * struct mipi_dbi_host_ops - DBI bus operations for MIPI DBI Type A and B.
> > > + * @attach: attach DBI device to DBI host
> > > + * @detach: detach DBI device from DBI host
> > > + */
> > > +struct mipi_dbi_host_ops {
> > > +     int (*attach)(struct mipi_dbi_host *host, struct mipi_dbi_device *dev);
> > > +     void (*detach)(struct mipi_dbi_host *host, struct mipi_dbi_device *dev);
> > > +};
> > > +
> > > +/**
> > > + * struct mipi_dbi_host - DBI host device for MIPI DBI Type A and B.
> > > + * @dev: driver model device node for this DBI host
> > > + * @dbi: MIPI DBI interface
> > > + * @ops: DBI host operations
> > > + */
> > > +struct mipi_dbi_host {
> > > +     struct device *dev;
> > > +     struct mipi_dbi *dbi;
> > > +     const struct mipi_dbi_host_ops *ops;
> > > +};
> > > +
> > > +/**
> > > + * struct mipi_dbi_device - DBI peripheral device for MIPI DBI Type A and B.
> > > + *                       This structure describes a peripheral DBI device,
> > > + *                       an endpoint for DSC commands and video data, and must
> >
> > DCS commands
> >
> 
> Nodes
> 
> > > + *                       be paired with a DBI host device for MIPI DBI Type A
> > > + *                       and B. This layout is built to closely resemble
> > > + *                       the DSI framework.
> > > + *
> > > + *                       If your device is MIPI DBI Type C (with an SPI
> > > + *                       control bus) and incorporates DBI within, you
> > > + *                       should use the mipi_dbi_dev structure and Type C
> > > + *                       framework from drm_mipi_dbi.c.
> >
> > I don't think we need to talk about the DSI or Type C frameworks here.
> > drm_mipi_dbi.c already mentions it's for Type C.
> >
> 
> I was explicit since Thierry and Maxime were very clear that
> differences are not described enough.
> 
> > > + * @dev: driver model device node for this peripheral
> > > + * @dbi: MIPI DBI interface
> > > + * @host: DBI host for this peripheral
> > > + * @attached: the DBI device has been successfully attached
> > > + */
> > > +struct mipi_dbi_device {
> > > +     struct device dev;
> > > +     struct mipi_dbi *dbi;
> > > +     struct mipi_dbi_host *host;
> > > +     bool attached;
> > > +};
> > > +
> > > +/**
> > > + * struct mipi_dbi_multi_context - Context to call multiple MIPI DBI funcs in a row
> > > + * @dbidev: Pointer to the peripheral MIPI DBI Type A and B device
> > > + * @accum_err: Storage for the accumulated error over the multiple calls
> > > + *          Init to 0. If a function encounters an error then the error code
> > > + *          will be stored here. If you call a function and this points to a
> > > + *          non-zero value then the function will be a noop. This allows calling
> > > + *          a function many times in a row and just checking the error at the
> > > + *          end to see if any of them failed.
> > > + */
> > > +
> > > +struct mipi_dbi_multi_context {
> > > +     struct mipi_dbi_device *dbidev;
> > > +     int accum_err;
> > > +};
> > > +
> > > +#define to_mipi_dbi_device(__dev)    container_of_const(__dev, struct mipi_dbi_device, dev)
> > > +
> > > +void mipi_dbi_write_buffer_multi(struct mipi_dbi_multi_context *ctx,
> > > +                              u8 cmd, const u8 *data, size_t len);
> > > +
> > > +/**
> > > + * mipi_dbi_write_seq_multi() - transmit a command with payload
> > > + *
> > > + * This macro will print errors for you and error handling is optimized for
> > > + * callers that call this multiple times in a row.
> > > + *
> > > + * @ctx: context for multiple DBI transactions
> > > + * @cmd: command to be sent
> > > + * @seq: buffer containing data to be transmitted
> > > + */
> > > +#define mipi_dbi_write_seq_multi(ctx, cmd, seq...)                           \
> > > +     do {                                                                    \
> > > +             static const u8 d[] = { seq };                                  \
> > > +             mipi_dbi_write_buffer_multi(ctx, cmd, d, ARRAY_SIZE(d));        \
> > > +     } while (0)
> > > +
> > > +struct mipi_dbi_device *
> > > +devm_mipi_dbi_device_register(struct device *dev, struct mipi_dbi_host *host,
> > > +                           struct device_node *np);
> > > +int devm_mipi_dbi_attach(struct device *dev, struct mipi_dbi_device *dbidev);
> > > +
> > > +/**
> > > + * struct mipi_dbi_driver - DBI driver for MIPI DBI Type A and B.
> > > + * @driver: device driver model driver
> > > + * @probe: callback for device binding
> > > + * @remove: callback for device unbinding
> > > + * @shutdown: called at shutdown time to quiesce the device
> > > + */
> > > +struct mipi_dbi_driver {
> > > +     struct device_driver driver;
> > > +     int (*probe)(struct mipi_dbi_device *dbi);
> > > +     void (*remove)(struct mipi_dbi_device *dbi);
> > > +     void (*shutdown)(struct mipi_dbi_device *dbi);
> > > +};
> > > +
> > > +static inline struct mipi_dbi_driver *
> > > +to_mipi_dbi_driver(struct device_driver *driver)
> > > +{
> > > +     return container_of(driver, struct mipi_dbi_driver, driver);
> > > +}
> > > +
> > > +static inline void *mipi_dbi_get_drvdata(const struct mipi_dbi_device *dbi)
> > > +{
> > > +     return dev_get_drvdata(&dbi->dev);
> > > +}
> > > +
> > > +static inline void mipi_dbi_set_drvdata(struct mipi_dbi_device *dbi, void *data)
> > > +{
> > > +     dev_set_drvdata(&dbi->dev, data);
> > > +}
> > > +
> > > +int __mipi_dbi_driver_register(struct mipi_dbi_driver *drv, struct module *owner);
> > > +void mipi_dbi_driver_unregister(struct mipi_dbi_driver *drv);
> > > +
> > > +#define mipi_dbi_driver_register(driver) \
> > > +     __mipi_dbi_driver_register(driver, THIS_MODULE)
> > > +
> > > +#define module_mipi_dbi_driver(__mipi_dbi_driver) \
> > > +     module_driver(__mipi_dbi_driver, mipi_dbi_driver_register, \
> > > +                     mipi_dbi_driver_unregister)
> > > +
> > > +#endif /* __DRM_MIPI_DBI_BUS__ */
> >
> > __DRM_MIPI_DBI_BUS_H__
> >
> 
> Noted
> 
> > > --
> > > 2.53.0
> > >
> > >
> >
> >
> >
> >





  reply	other threads:[~2026-11-27 12:20 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22  8:18 [PATCH v8 00/12] drm/tegra: Add support for Tegra20/Tegra30 8-bit CPU interface Svyatoslav Ryhel
2026-11-22  8:18 ` [PATCH v8 01/12] drm: Add MIPI DBI bus support for MIPI DBI Type A and B Svyatoslav Ryhel
2026-11-27  4:16   ` Mikko Perttunen
2026-11-27  9:06     ` Svyatoslav Ryhel
2026-11-27 12:14       ` Mikko Perttunen [this message]
2026-11-22  8:18 ` [PATCH v8 02/12] drm/panel: panel-hitachi-tx10d07vm0baa: Convert to use MIPI DBI bus Svyatoslav Ryhel
2026-11-27  4:23   ` Mikko Perttunen
2026-11-27  9:10     ` Svyatoslav Ryhel
2026-11-27 12:16       ` Mikko Perttunen
2026-11-22  8:18 ` [PATCH v8 03/12] drm/panel: panel-hitachi-tx10d07vm0baa: Convert to mipi_dbi_write_seq_multi() Svyatoslav Ryhel
2026-11-27  4:40   ` Mikko Perttunen
2026-11-22  8:18 ` [PATCH v8 04/12] drm/panel: panel-lg-lh400wv3: Convert to use MIPI DBI bus Svyatoslav Ryhel
2026-11-22  8:18 ` [PATCH v8 05/12] drm/panel: panel-lg-lh400wv3: Convert to mipi_dbi_write_seq_multi() Svyatoslav Ryhel
2026-11-27  4:40   ` Mikko Perttunen
2026-11-22  8:18 ` [PATCH v8 06/12] drm/tegra: dc: Add elements required by Tegra MIPI DBI Svyatoslav Ryhel
2026-11-27  4:56   ` Mikko Perttunen
2026-11-27  9:16     ` Svyatoslav Ryhel
2026-11-22  8:18 ` [PATCH v8 07/12] dt-bindings: display: tegra: Document Tegra20 DSI port Svyatoslav Ryhel
2026-11-22  8:18 ` [PATCH v8 08/12] drm/tegra: output: Make panel parsing configurable Svyatoslav Ryhel
2026-11-27  5:01   ` Mikko Perttunen
2026-11-22  8:18 ` [PATCH v8 09/12] drm/tegra: Convert to use atomic versions of drm_encoder_helper_funcs Svyatoslav Ryhel
2026-11-27  5:24   ` Mikko Perttunen
2026-11-27  9:17     ` Svyatoslav Ryhel
2026-11-22  8:18 ` [PATCH v8 10/12] drm/tegra: rgb: Parameterize configuration based on bus flags Svyatoslav Ryhel
2026-11-27  6:22   ` Mikko Perttunen
2026-11-27  9:21     ` Svyatoslav Ryhel
2026-11-27  9:41       ` Svyatoslav Ryhel
2026-11-27 12:26         ` Mikko Perttunen
2026-11-27 12:35       ` Mikko Perttunen
2026-11-22  8:18 ` [PATCH v8 11/12] dt-bindings: display: tegra: Document 8-bit CPU parallel interface Svyatoslav Ryhel
2026-11-22  8:18 ` [PATCH v8 12/12] drm/tegra: Add support for 8-bit CPU interface Svyatoslav Ryhel
2026-11-22  8:43   ` sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=H5TrL9ZbQaiciaNOSrG3BQ@nvidia.com \
    --to=mperttunen@nvidia.com \
    --cc=airlied@gmail.com \
    --cc=clamor95@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jesszhan0024@gmail.com \
    --cc=jonathanh@nvidia.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=robh@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=thierry.reding@kernel.org \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox