From 520c4709aa45bed6ce4c97d0ee1fac4728c84efc Mon Sep 17 00:00:00 2001 From: Dongjin Kim Date: Tue, 9 Feb 2021 13:27:41 +0900 Subject: [PATCH 02/16] ODROID-COMMON: gpu/drm: Add new Tiny DRM driver with Ili9488 Signed-off-by: Dongjin Kim Change-Id: I6e4f783ab642cc735ef445d010afb1cd930757c6 --- drivers/gpu/drm/tiny/Kconfig | 13 + drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/ili9488_pio.c | 366 +++++++++++++++++++++++++++++ 3 files changed, 380 insertions(+) create mode 100644 drivers/gpu/drm/tiny/ili9488_pio.c diff --git a/drivers/gpu/drm/tiny/Kconfig b/drivers/gpu/drm/tiny/Kconfig index 1ceb93fbdc50..11607c76ba26 100644 --- a/drivers/gpu/drm/tiny/Kconfig +++ b/drivers/gpu/drm/tiny/Kconfig @@ -119,6 +119,19 @@ config TINYDRM_ILI9486 If M is selected the module will be called ili9486. +config TINYDRM_ILI9488_PIO + tristate "DRM support for ILI9488 display panels (8bit PIO)" + depends on DRM + select DRM_KMS_HELPER + select DRM_KMS_CMA_HELPER + select DRM_MIPI_DBI + select BACKLIGHT_CLASS_DEVICE + help + DRM driver for th following Ilitek ILI9488 panels: + * Hardkernel 3.5" 480x320 TFT (HKTFT 3.5") + + If M is selected the module will be called hktft35. + config TINYDRM_MI0283QT tristate "DRM support for MI0283QT" depends on DRM && SPI diff --git a/drivers/gpu/drm/tiny/Makefile b/drivers/gpu/drm/tiny/Makefile index e09942895c77..bc1512bd0eb5 100644 --- a/drivers/gpu/drm/tiny/Makefile +++ b/drivers/gpu/drm/tiny/Makefile @@ -9,6 +9,7 @@ obj-$(CONFIG_TINYDRM_HX8357D) += hx8357d.o obj-$(CONFIG_TINYDRM_ILI9225) += ili9225.o obj-$(CONFIG_TINYDRM_ILI9341) += ili9341.o obj-$(CONFIG_TINYDRM_ILI9486) += ili9486.o +obj-$(CONFIG_TINYDRM_ILI9488_PIO) += ili9488_pio.o obj-$(CONFIG_TINYDRM_MI0283QT) += mi0283qt.o obj-$(CONFIG_TINYDRM_REPAPER) += repaper.o obj-$(CONFIG_TINYDRM_ST7586) += st7586.o diff --git a/drivers/gpu/drm/tiny/ili9488_pio.c b/drivers/gpu/drm/tiny/ili9488_pio.c new file mode 100644 index 000000000000..f3a0b1fb885a --- /dev/null +++ b/drivers/gpu/drm/tiny/ili9488_pio.c @@ -0,0 +1,366 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * DRM driver for Hardkernel 3.5 ISP TFT display + * + * Copyright 2021 Dongjin Kim + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include