Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2465568ybl; Sun, 11 Aug 2019 02:12:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBmSh90NRsPtv1RK9tzBcID7P5bH0xZuKQZySzUOr9DFVIiWwpIscIzA1kCgbNHRZukBl3 X-Received: by 2002:a17:90a:db06:: with SMTP id g6mr11772750pjv.60.1565514778803; Sun, 11 Aug 2019 02:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565514778; cv=none; d=google.com; s=arc-20160816; b=OfCoUUONEukPZM6WE5iybTv35wo3ppU8Pj2Kedxw+/ymwTud5Cw5hQUOc5+fy9QiEL qCo6/DoGPquD6wlPojVw0TMP5OLPw6facIWyU2+5MrQ5chj6RNSRWKIYeKKW0JorvEdb KR/LBGH/oycyCJYWc+doH9SK96JrltdYwAXkiznVUMHJcOB8AgXDRyoeY+ZioFfxaUUa BlnpmVJgXiSdeQKI6CX36cwIc5cC5H590mBfMFxVDMKzTIaTw/1ID+GBygakJdLwgzma rS2y/F16L0JFpn+3Oh3vLH6Eg7JG7Ez3rQ9eMRqDU9vJ2/PpadEdubwxA6b2anHvTcQT imaQ== 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=yJb1x2ZK314Iyova0/1iLQu6GZQwE+IkAPQ/14a+Mfs=; b=kLFAS2wbIZ/58/C+Ve9MAt15Q0cMcwN5xji3kSWeLNvan/fd4AgRb065JPl4hGnFrQ BbH4JHn6g92yfSQSMpZqo4vcOBEfwafJKWH3XxrjEyUSCRGx6lm2epr7u6HHYquL/+qN TQDNVd8BY4Gj4CUOllbjKA3847gMe4XBTMXdzxHyMSIyNphiWzca72GoBL2nqtBAVb79 1scofS64iUryD1ben/Ws8hc5aD3MDajtqipTSYNen+Vt8geyJp1AhQ3UusVdCsbVItr3 9JmGSPT8gfXxcxmZ6GAump/o5UbJUSdZYNiz5l4NA597fqrBxhZLzp8V/tJYdOXbkZWu AuKA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z189si57706632pgb.491.2019.08.11.02.12.43; Sun, 11 Aug 2019 02:12:58 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726581AbfHKJKj (ORCPT + 99 others); Sun, 11 Aug 2019 05:10:39 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:54808 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725883AbfHKJKa (ORCPT ); Sun, 11 Aug 2019 05:10:30 -0400 X-UUID: f92517ee179a4677826ad93a35390b05-20190811 X-UUID: f92517ee179a4677826ad93a35390b05-20190811 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1037721103; Sun, 11 Aug 2019 17:10:13 +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; Sun, 11 Aug 2019 17:10:09 +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; Sun, 11 Aug 2019 17:10:08 +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" , , , , , , , "Sam Ravnborg" Subject: [PATCH wn 2/4] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel Date: Sun, 11 Aug 2019 17:09:59 +0800 Message-ID: <20190811091001.49555-3-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190811091001.49555-1-jitao.shi@mediatek.com> References: <20190811091001.49555-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-24840.000 X-TM-AS-Result: No-6.952100-8.000000-10 X-TMASE-MatchedRID: vdBFVbH6wdi/kNGHVZrsluw8wbnnSw8baeMaKzvXUplquuOqohJ0c/KC 81FnsF5IGWtzbrhLRgjTUJMI/BDGSVIFgun+1oxxgPz3Ly30LzMVNZVAPiy7WUp12IXZajx5ZDK 4bzNNBeUyPUKH+39d7z/U4p7KPAQXMzwe5s18okOcxB01DrjF96LwP+jjbL9K7649n0TgA4lYeD KWgiccsqwMUvjfcK1bpSrKfOPzWcCZ2BL7NXCWIcnUT+eskUQPF2jIWUnlRQyOSVCvVHWJJ9Shv IchwjOuH+aMVX1F9pR7oOXyKiDIt+2xjhw5qyIo/NOUkr6ADzd+tO36GYDlstuykrHhg4PdouaX E/reSZlB+KCiJTIohSEt7sMgnCwwxZYesGakkutlpwNsTvdlKSg7JAmHu44o1JVSTP0E9d6Ji1d m/GWfHTjfkEbOpY1BzUq4XaLW7NEOvl7WFhImCwlpVkdtt3WuSiFtkzEVcTpUjspoiX02F7HLnh hMBcPp4vM1YF6AJbbCCfuIMF6xLSAHAopEd76vJGxevd72XgvW67pYlE0LaAvv44JBTYE1t+r5e WrZncq8Ca5+pxIiXg== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--6.952100-8.000000 X-TMASE-Version: SMEX-12.5.0.1684-8.5.1010-24840.000 X-TM-SNTS-SMTP: 82A3E22124E7E387FCC6DF739A42D53D3BB5EE1FFE34758BD58CBA02C2282F792000: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 Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-boe-tv101wum-nl6.c | 709 ++++++++++++++++++ 3 files changed, 719 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 d9d931aa6e26..afcadb3585fb 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -18,6 +18,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 diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index fb0cb3aaa9e6..bd26b6ac039e 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..c0e27f0b2713 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -0,0 +1,709 @@ +// 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