From 9d9b8bd567c30a821c82c27035243536c5234542 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 29 Mar 2022 22:47:57 -0500 Subject: [PATCH 017/117] drm/panel: Add driver for ST7701s DPI LCD panel Signed-off-by: Samuel Holland --- drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-sitronix-st7701s.c | 444 ++++++++++++++++++ 3 files changed, 453 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-sitronix-st7701s.c --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -608,6 +608,14 @@ config DRM_PANEL_SITRONIX_ST7701 ST7701 controller for 480X864 LCD panels with MIPI/RGB/SPI system interfaces. +config DRM_PANEL_SITRONIX_ST7701S + tristate "Sitronix ST7701s panel driver" + depends on OF + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for the Sitronix + ST7701s controller with a SPI interface. + config DRM_PANEL_SITRONIX_ST7703 tristate "Sitronix ST7703 based MIPI touchscreen panels" depends on OF --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -61,6 +61,7 @@ obj-$(CONFIG_DRM_PANEL_SHARP_LS037V7DW01 obj-$(CONFIG_DRM_PANEL_SHARP_LS043T1LE01) += panel-sharp-ls043t1le01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS060T1SX01) += panel-sharp-ls060t1sx01.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701) += panel-sitronix-st7701.o +obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701S) += panel-sitronix-st7701s.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) += panel-sitronix-st7703.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.o --- /dev/null +++ b/drivers/gpu/drm/panel/panel-sitronix-st7701s.c @@ -0,0 +1,444 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2017 Free Electrons + */ + +#include +#include +#include +#include + +#include