From b62aefa5c9f63dab110123067db1c9ca8ab713b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20D=C3=BCnner?= Date: Thu, 8 Aug 2019 11:59:41 +0200 Subject: [PATCH 01/12] drm: add youritech panel with ili9806e mipi controller --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-youritec-ili9806e.c | 470 ++++++++++++++++++ 3 files changed, 480 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-youritec-ili9806e.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index b9dbedf8f15e8a..96ca68ca06bafa 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -114,6 +114,15 @@ config DRM_PANEL_ILITEK_ILI9881C Say Y if you want to enable support for panels based on the Ilitek ILI9881c controller. +config DRM_PANEL_YOURITECH_ILI9806E + tristate "Youritech ILI9806E-based panels" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y if you want to enable support for panels based on the + Ilitek ILI9881c controller. + config DRM_PANEL_INNOLUX_P079ZCA tristate "Innolux P079ZCA panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 2ba560bca61d7e..89a9db5a2507fd 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -53,3 +53,4 @@ obj-$(CONFIG_DRM_PANEL_TPO_TPG110) += panel-tpo-tpg110.o obj-$(CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA) += panel-truly-nt35597.o obj-$(CONFIG_DRM_PANEL_VISIONOX_RM69299) += panel-visionox-rm69299.o obj-$(CONFIG_DRM_PANEL_XINPENG_XPP055C272) += panel-xinpeng-xpp055c272.o +obj-$(CONFIG_DRM_PANEL_YOURITECH_ILI9806E) += panel-youritec-ili9806e.o diff --git a/drivers/gpu/drm/panel/panel-youritec-ili9806e.c b/drivers/gpu/drm/panel/panel-youritec-ili9806e.c new file mode 100644 index 00000000000000..33b1b62e03fe45 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-youritec-ili9806e.c @@ -0,0 +1,470 @@ +// SPDX-License-Identifier: GPL-2.0 +/* copyright (C) 2019 Bytes at Work - http://www.bytesatwork.ch + * + * based on panel-raydium-rm68200.c + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include +#include +#include + +#include