From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751926AbdJ3UOQ (ORCPT ); Mon, 30 Oct 2017 16:14:16 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:56951 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378AbdJ3UOO (ORCPT ); Mon, 30 Oct 2017 16:14:14 -0400 X-Google-Smtp-Source: ABhQp+Q/VQAWS3C91nF26QCI/FqzMaV9YUCRJf/LzZFFdLNKTe7oERbZG0jN2+Hk9o2j3KhqjblCxQ== From: MoreRobustThanYou X-Google-Original-From: MoreRobustThanYou To: gameexpertnetwork@gmail.com Cc: Thierry Reding , David Airlie , linux-kernel@vger.kernel.org (open list), dri-devel@lists.freedesktop.org (open list:DRM PANEL DRIVERS) Subject: [PATCH] Novatek NT71392QG panel support Date: Mon, 30 Oct 2017 16:14:00 -0400 Message-Id: <1509394447-11200-1-git-send-email-MoreRobustThanYou@users.noreply.github.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-novatek-nt71392qg.c | 438 ++++++++++++++++++++++++ 3 files changed, 448 insertions(+) mode change 100644 => 100755 drivers/gpu/drm/panel/Kconfig mode change 100644 => 100755 drivers/gpu/drm/panel/Makefile create mode 100755 drivers/gpu/drm/panel/panel-novatek-nt71392qg.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig old mode 100644 new mode 100755 index 726f3fb..069373a --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -150,4 +150,13 @@ config DRM_PANEL_SITRONIX_ST7789V Say Y here if you want to enable support for the Sitronix ST7789V controller for 240x320 LCD panels +config DRM_PANEL_NOVATEK_NT71392QG + tristate "Novatek NT71392QG 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 the Novatek + NT71392QG controller for 1200x1920 LCD panel + endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile old mode 100644 new mode 100755 index 77ede34..4d0e84f --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -14,3 +14,4 @@ obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) += panel-seiko-43wvf1g.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) += panel-sharp-lq101r1sx01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS043T1LE01) += panel-sharp-ls043t1le01.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o +obj-$(CONFIG_DRM_PANEL_NOVATEK_NT71392QG) += panel-novatek-nt71392qg.o \ No newline at end of file diff --git a/drivers/gpu/drm/panel/panel-novatek-nt71392qg.c b/drivers/gpu/drm/panel/panel-novatek-nt71392qg.c new file mode 100755 index 0000000..4d540e8 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-novatek-nt71392qg.c @@ -0,0 +1,438 @@ +/* + * Copyright (C) 2015 Red Hat + * Author: steamport + * This is based off of Rob Clark's panel-lg-novatek-1080p-vid.c (thanks rob for your help!) + * + * 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. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include