linux/drivers/gpu/drm/tiny/mi0283qt.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * DRM driver for Multi-Inno MI0283QT panels
 *
 * Copyright 2016 Noralf Trønnes
 */

#include <linux/backlight.h>
#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/property.h>
#include <linux/regulator/consumer.h>
#include <linux/spi/spi.h>

#include <drm/drm_atomic_helper.h>
#include <drm/drm_drv.h>
#include <drm/drm_fbdev_dma.h>
#include <drm/drm_gem_atomic_helper.h>
#include <drm/drm_gem_dma_helper.h>
#include <drm/drm_managed.h>
#include <drm/drm_mipi_dbi.h>
#include <drm/drm_modeset_helper.h>
#include <video/mipi_display.h>

#define ILI9341_FRMCTR1
#define ILI9341_DISCTRL
#define ILI9341_ETMOD

#define ILI9341_PWCTRL1
#define ILI9341_PWCTRL2
#define ILI9341_VMCTRL1
#define ILI9341_VMCTRL2
#define ILI9341_PWCTRLA
#define ILI9341_PWCTRLB

#define ILI9341_PGAMCTRL
#define ILI9341_NGAMCTRL
#define ILI9341_DTCTRLA
#define ILI9341_DTCTRLB
#define ILI9341_PWRSEQ

#define ILI9341_EN3GAM
#define ILI9341_PUMPCTRL

#define ILI9341_MADCTL_BGR
#define ILI9341_MADCTL_MV
#define ILI9341_MADCTL_MX
#define ILI9341_MADCTL_MY

static void mi0283qt_enable(struct drm_simple_display_pipe *pipe,
			    struct drm_crtc_state *crtc_state,
			    struct drm_plane_state *plane_state)
{}

static const struct drm_simple_display_pipe_funcs mi0283qt_pipe_funcs =;

static const struct drm_display_mode mi0283qt_mode =;

DEFINE_DRM_GEM_DMA_FOPS(mi0283qt_fops);

static const struct drm_driver mi0283qt_driver =;

static const struct of_device_id mi0283qt_of_match[] =;
MODULE_DEVICE_TABLE(of, mi0283qt_of_match);

static const struct spi_device_id mi0283qt_id[] =;
MODULE_DEVICE_TABLE(spi, mi0283qt_id);

static int mi0283qt_probe(struct spi_device *spi)
{}

static void mi0283qt_remove(struct spi_device *spi)
{}

static void mi0283qt_shutdown(struct spi_device *spi)
{}

static int __maybe_unused mi0283qt_pm_suspend(struct device *dev)
{}

static int __maybe_unused mi0283qt_pm_resume(struct device *dev)
{}

static const struct dev_pm_ops mi0283qt_pm_ops =;

static struct spi_driver mi0283qt_spi_driver =;
module_spi_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();