linux/drivers/gpu/drm/panel/panel-auo-a030jtn01.c

// SPDX-License-Identifier: GPL-2.0
/*
 * AU Optronics A030JTN01.0 TFT LCD panel driver
 *
 * Copyright (C) 2023, Paul Cercueil <[email protected]>
 * Copyright (C) 2023, Christophe Branchereau <[email protected]>
 */

#include <linux/bitfield.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/gpio/consumer.h>
#include <linux/media-bus-format.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/spi/spi.h>

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

#define REG05
#define REG06
#define REG07

#define REG05_STDBY
#define REG06_VBLK
#define REG07_HBLK


struct a030jtn01_info {};

struct a030jtn01 {};

static inline struct a030jtn01 *to_a030jtn01(struct drm_panel *panel)
{}

static int a030jtn01_prepare(struct drm_panel *panel)
{}

static int a030jtn01_unprepare(struct drm_panel *panel)
{}

static int a030jtn01_enable(struct drm_panel *panel)
{}

static int a030jtn01_disable(struct drm_panel *panel)
{}

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

static const struct drm_panel_funcs a030jtn01_funcs =;

static bool a030jtn01_has_reg(struct device *dev, unsigned int reg)
{
	static const u32 a030jtn01_regs_mask = 0x001823f1fb;

	return a030jtn01_regs_mask & BIT(reg);
};

static const struct regmap_config a030jtn01_regmap_config =;

static int a030jtn01_probe(struct spi_device *spi)
{}

static void a030jtn01_remove(struct spi_device *spi)
{}

static const struct drm_display_mode a030jtn01_modes[] =;

static const struct a030jtn01_info a030jtn01_info =;

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

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

static struct spi_driver a030jtn01_driver =;
module_spi_driver();

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