From a18bb7bf2948afbc8673720577e095760fbc942c Mon Sep 17 00:00:00 2001 From: Lu Hui Date: Mon, 25 Dec 2023 13:45:27 +0800 Subject: [PATCH] drivers: panel: add mingjun-070bi30ia2 (cherry picked from commit f32b30324f27c4ca7978ac6e7711e8d1e2fef6ed) Signed-off-by: Jaehoon Chung --- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-mingjun-070bi30ia2.c | 612 ++++++++++++++++++ 3 files changed, 623 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-mingjun-070bi30ia2.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 81eff64bf596..d131b7e7ec25 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -528,4 +528,14 @@ config DRM_PANEL_JADARD_JD9365DA_H3 Say Y here if you want to enable support for Jadard JD9365DA-H3 WXGA MIPI DSI panel. The panel support TFT dot matrix LCD with 800RGBx1280 dots at maximum. + +config DRM_PANEL_MINGJUN_070BI30IA2 + tristate "MingJun 070BI30IA2 DSI panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for MingJun 070BI30IA2 + MIPI DSI panel. The panel support TFT dot matrix LCD with + 800RGBx1280 dots at maximum. endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 2adef3068d8a..fabee1b790ab 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -56,3 +56,4 @@ obj-$(CONFIG_DRM_PANEL_XINPENG_XPP055C272) += panel-xinpeng-xpp055c272.o obj-$(CONFIG_DRM_PANEL_ILI9881D) += panel-ili9881d.o obj-$(CONFIG_DRM_PANEL_HX8394) += panel-himax8394.o obj-$(CONFIG_DRM_PANEL_JADARD_JD9365DA_H3) += panel-jadard-jd9365da-h3.o +obj-$(CONFIG_DRM_PANEL_MINGJUN_070BI30IA2) += panel-mingjun-070bi30ia2.o diff --git a/drivers/gpu/drm/panel/panel-mingjun-070bi30ia2.c b/drivers/gpu/drm/panel/panel-mingjun-070bi30ia2.c new file mode 100644 index 000000000000..3ee4742cfe31 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-mingjun-070bi30ia2.c @@ -0,0 +1,612 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2019 Radxa Limited + * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. + * Copyright (c) 2023 Sipeed + * + * Author: + * - Jagan Teki + * - Stephen Chen + */ + +#include +#include +#include +#include +#include + +#include +#include + +#include +#include +#include +#include + +#include