linux/drivers/gpu/drm/panel/panel-arm-versatile.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Panel driver for the ARM Versatile family reference designs from
 * ARM Limited.
 *
 * Author:
 * Linus Walleij <[email protected]>
 *
 * On the Versatile AB, these panels come mounted on daughterboards
 * named "IB1" or "IB2" (Interface Board 1 & 2 respectively.) They
 * are documented in ARM DUI 0225D Appendix C and D. These daughter
 * boards support TFT display panels.
 *
 * - The IB1 is a passive board where the display connector defines a
 *   few wires for encoding the display type for autodetection,
 *   suitable display settings can then be looked up from this setting.
 *   The magic bits can be read out from the system controller.
 *
 * - The IB2 is a more complex board intended for GSM phone development
 *   with some logic and a control register, which needs to be accessed
 *   and the board display needs to be turned on explicitly.
 *
 * On the Versatile PB, a special CLCD adaptor board is available
 * supporting the same displays as the Versatile AB, plus one more
 * Epson QCIF display.
 *
 */

#include <linux/bitops.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/mfd/syscon.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

#include <video/of_videomode.h>
#include <video/videomode.h>

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

/*
 * This configuration register in the Versatile and RealView
 * family is uniformly present but appears more and more
 * unutilized starting with the RealView series.
 */
#define SYS_CLCD

/* The Versatile can detect the connected panel type */
#define SYS_CLCD_CLCDID_MASK
#define SYS_CLCD_ID_SANYO_3_8
#define SYS_CLCD_ID_SHARP_8_4
#define SYS_CLCD_ID_EPSON_2_2
#define SYS_CLCD_ID_SANYO_2_5
#define SYS_CLCD_ID_VGA

/* IB2 control register for the Versatile daughterboard */
#define IB2_CTRL
#define IB2_CTRL_LCD_SD
#define IB2_CTRL_LCD_BL_ON
#define IB2_CTRL_LCD_MASK

/**
 * struct versatile_panel_type - lookup struct for the supported panels
 */
struct versatile_panel_type {};

/**
 * struct versatile_panel - state container for the Versatile panels
 */
struct versatile_panel {};

static const struct versatile_panel_type versatile_panels[] =;

static inline struct versatile_panel *
to_versatile_panel(struct drm_panel *panel)
{}

static int versatile_panel_disable(struct drm_panel *panel)
{}

static int versatile_panel_enable(struct drm_panel *panel)
{}

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

static const struct drm_panel_funcs versatile_panel_drm_funcs =;

static int versatile_panel_probe(struct platform_device *pdev)
{}

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

static struct platform_driver versatile_panel_driver =;
module_platform_driver();

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