linux/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Mantix MLAF057WE51 5.7" MIPI-DSI panel driver
 *
 * Copyright (C) Purism SPC 2020
 */

#include <linux/backlight.h>
#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/media-bus-format.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/regulator/consumer.h>

#include <video/mipi_display.h>

#include <drm/drm_mipi_dsi.h>
#include <drm/drm_modes.h>
#include <drm/drm_panel.h>

#define DRV_NAME

/* Manufacturer specific Commands send via DSI */
#define MANTIX_CMD_OTP_STOP_RELOAD_MIPI
#define MANTIX_CMD_INT_CANCEL
#define MANTIX_CMD_SPI_FINISH

struct mantix {};

static inline struct mantix *panel_to_mantix(struct drm_panel *panel)
{}

static int mantix_init_sequence(struct mantix *ctx)
{}

static int mantix_enable(struct drm_panel *panel)
{}

static int mantix_disable(struct drm_panel *panel)
{}

static int mantix_unprepare(struct drm_panel *panel)
{}

static int mantix_prepare(struct drm_panel *panel)
{}

static const struct drm_display_mode default_mode_mantix =;

static const struct drm_display_mode default_mode_ys =;

static const u32 mantix_bus_formats[] =;

static int mantix_get_modes(struct drm_panel *panel,
			    struct drm_connector *connector)
{}

static const struct drm_panel_funcs mantix_drm_funcs =;

static int mantix_probe(struct mipi_dsi_device *dsi)
{}

static void mantix_shutdown(struct mipi_dsi_device *dsi)
{}

static void mantix_remove(struct mipi_dsi_device *dsi)
{}

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

static struct mipi_dsi_driver mantix_driver =;
module_mipi_dsi_driver();

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