Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2039601ybd; Sun, 23 Jun 2019 23:04:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9p6DfNvAr04DRj7+2p375/VZaUCtq64J6egRzXnMPQmEaEH3nkSF9t0sMURbT6uceoLGH X-Received: by 2002:a65:6403:: with SMTP id a3mr22363508pgv.7.1561356292704; Sun, 23 Jun 2019 23:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561356292; cv=none; d=google.com; s=arc-20160816; b=cqtNcFR0EurkoDTvqY/UEsvhb+k3+nkEJkBG/MGsq4cMyECqUoDwNLDq/v6zl7KvYi QHJpiTCvY/LhfuMg2Mj6PquxMgbmfQCsdq0DucjsoxYOkzDPgrBYFdzzLUFOBS8OYwCG LgnyVDWH5g82VTMBEq78BqifwLuFECekS8TgewZqeWQyil0NUE3tpJMkGBdXRk0r8bdD qK0c37O0jkOTdKLtjwz9To9bJgKqMzstAL9xxBhHtwd+o5u3hLXPGHafyLOI5UjtHt45 F5E1p0s73RjJbN6HtTmlMf86Nl8wK32J7AxNfpb38DUp+NHWO1RGVIEpv4OkMulyrAXr J02Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=zQoqehQ/do/86xxwmC3X/JIVep2CZMZEDabiLDixLJA=; b=aNijGebUBdqMGhNAABeh1iTb1rXSTzWNXKpbyYqZwVR82u13KULQhZ6j8tUDN/HC8M 09renBso3tNGIr/ycKnhrDQhqyxCauPmNIcamenPaB8uLGMH9kLIvDzx1y+Ms4Hv3vIy D9mGvzBFpefQdLMNZjLdXwFdmtC+6KcmLhGkg67WI1UNkstoafOS2kAuG2dZENwtZi5w m1VtEzXeMvCHkGDErMetvaDo7HDNhrsYXihWot+oAXGzy/OyjrpRPbiX9+c4oncyyeeR n66fsmm7O4HXrnIoXOJ7xkhvrxmpXi3QMLSsAf4lBGh5l5bi76B5Q4rPFL59PsijAF1i cEig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b21si10104647pjo.49.2019.06.23.23.04.36; Sun, 23 Jun 2019 23:04:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726920AbfFXGER (ORCPT + 99 others); Mon, 24 Jun 2019 02:04:17 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:40975 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725782AbfFXGEP (ORCPT ); Mon, 24 Jun 2019 02:04:15 -0400 X-UUID: 921cf5d2f1534504bf7169dcc7501d70-20190624 X-UUID: 921cf5d2f1534504bf7169dcc7501d70-20190624 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1937597868; Mon, 24 Jun 2019 14:04:00 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 24 Jun 2019 14:03:56 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (172.27.4.253) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 24 Jun 2019 14:03:53 +0800 From: Jitao Shi To: Rob Herring , Pawel Moll , "Mark Rutland" , Ian Campbell , , David Airlie , "Matthias Brugger" CC: Jitao Shi , Thierry Reding , Ajay Kumar , Inki Dae , "Rahul Sharma" , Sean Paul , "Vincent Palatin" , Andy Yan , "Philipp Zabel" , Russell King , , , , , , , "Sascha Hauer" , , , , , , Subject: [v2 2/2] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel Date: Mon, 24 Jun 2019 14:03:43 +0800 Message-ID: <20190624060343.62451-3-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190624060343.62451-1-jitao.shi@mediatek.com> References: <20190624060343.62451-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-TM-AS-Product-Ver: SMEX-12.5.0.1684-8.5.1010-24708.005 X-TM-AS-Result: No-7.970300-8.000000-10 X-TMASE-MatchedRID: vdBFVbH6wdi/kNGHVZrsluw8wbnnSw8bE1YUt4FjGjHYgrGDwuFJdoCu qghmtWfX5RngtX2fL537uuADRDIwrFmyoQnCHVcbc2lIN1d/aqKOz/LLJUcaHqzG9MIKeG/Glrz zm0tT2GPkn6SkMwS8XS3hzvwk6+T2j18LILQEPri3D7EeeyZCM1sP0tBwe3qDkY8eITaSJPhnml iDOiSLQ1nLAfRYp+ZdMd49TUxscFndGsCbhiuWoG0lh85vSrk7+eBf9ovw8I1P3Eb4+bLT+rKBp ljvKsfOH+aMVX1F9pR7oOXyKiDIt+2xjhw5qyIo/NOUkr6ADzd+tO36GYDlstuykrHhg4PdouaX E/reSZlB+KCiJTIohSEt7sMgnCwwxZYesGakkutlpwNsTvdlKeqhuTPUDQDt6W6bo0ouIXigrkH r6pdTsL2M7H5q8sUxzUq4XaLW7NEOvl7WFhImCwlpVkdtt3WuSiFtkzEVcTpUjspoiX02F7HLnh hMBcPp4vM1YF6AJbbCCfuIMF6xLSAHAopEd76vJXRHgCCb0t1AgixMmruhxVg0Q8Pdd/6ADrUvu udlH3UAsffldrfjqg== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--7.970300-8.000000 X-TMASE-Version: SMEX-12.5.0.1684-8.5.1010-24708.005 X-TM-SNTS-SMTP: 7477A4E36D5354AAE772F41582D8DDD3EF6F5B4164306C9EDA8FF3AC76369F7E2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add driver for BOE tv101wum-nl6 panel is a 10.1" 1200x1920 panel. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-boe-tv101wum-nl6.c | 715 ++++++++++++++++++ 3 files changed, 726 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index e36dbb4df867..2b055ce0700b 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -17,6 +17,15 @@ config DRM_PANEL_ARM_VERSATILE reference designs. The panel is detected using special registers in the Versatile family syscon registers. +config DRM_PANEL_BOE_TV101WUM_NL6 + tristate "BOE TV101WUM 1200x1920 panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to support for BOE TV101WUM WUXGA PANEL + DSI Video Mode panel + config DRM_PANEL_LVDS tristate "Generic LVDS panel driver" depends on OF @@ -272,4 +281,5 @@ config DRM_PANEL_TRULY_NT35597_WQXGA help Say Y here if you want to enable support for Truly NT35597 WQXGA Dual DSI Video Mode panel + endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 78e3dc376bdd..8d009223c44e 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_DRM_PANEL_ARM_VERSATILE) += panel-arm-versatile.o +obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_NL6) += panel-boe-tv101wum-nl6.o obj-$(CONFIG_DRM_PANEL_LVDS) += panel-lvds.o obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d.o diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c new file mode 100644 index 000000000000..6e06c8506623 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -0,0 +1,715 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2018 MediaTek Inc. + * Author: Jitao Shi + */ + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include