Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1733594ybp; Fri, 11 Oct 2019 20:08:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyp1fFFH4O3HEo97Qs066hRMlgjClSBRPaIOYyXOQHS/DK9T/8kSU0BmTfyvp+rx0PD8TN5 X-Received: by 2002:a17:906:c317:: with SMTP id s23mr17849039ejz.251.1570849720736; Fri, 11 Oct 2019 20:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570849720; cv=none; d=google.com; s=arc-20160816; b=KmGYE0rZEkKolRbzU8vKL+iQ5+uHkMrrSW0UvgC3nU76Fgaea/C9ioX4g0YTukJYBs G57rVWfv9TQSLJ7+Bn/zukDjCd43E9bs94D6VFPdEnfdBw/h8yz97od7hwAs4r8B1FUG DEzTfkPG7PLrJMN4YNnvVttHWsGn9HzjziOdSuX6s1vX0M11aeHT0Y/R2nfwLF22ZKqR kpE/rmqgShljvdcvvFX1VNX+ZNRbSz/7ZiHZ4lvAvhTeGwZG8pbqsMXWJTdKWzCG3llG MfBQSwAGswM0J7QDxTOhDGgXyCPzMVQxgziMQOdTH9M8lIHoDOHI86Ftf+QoRkaStL0n PbJw== 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=ufDVFx4RPpcx+asm8xiDDH0JIelAX024hoLN22K+3Do=; b=k9u/oJR/RUxznSBL0fKSJkeTMPOTyaQp03It3lPGi0JmskkKVZpbwx3fUcl8+1esdt sUQNVvxtRTqdT3QYqAGRD/pTiYc3r3qxmMhqk6yxgXHgszVivtzP6ZsWuFVFEvDwWhju ZnT9vAGRvz5UzsYxtDKrDRH7AKAULuxXyUt09WFVKgGgaPuFUWuDPgez4M2iELgMAbS8 UlSmiN6x+MPSve6aZI4QsD5zGh12WtQaDWDBgGyT9htR+kgnrEruyv6n7oZ3nhGwb69e il8DDHv/tMkFTfz2nbQ0n4iNfnNVFahmFXctE40UdoP/6pdwULCBwLbaoevAh+V3wSmS oAMg== 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 rh23si6637198ejb.75.2019.10.11.20.08.17; Fri, 11 Oct 2019 20:08:40 -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 S1727440AbfJLDHw (ORCPT + 99 others); Fri, 11 Oct 2019 23:07:52 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:28178 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726269AbfJLDHv (ORCPT ); Fri, 11 Oct 2019 23:07:51 -0400 X-UUID: 7eed179f9c174498955587f1a052cf5c-20191012 X-UUID: 7eed179f9c174498955587f1a052cf5c-20191012 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1843211601; Sat, 12 Oct 2019 11:07:43 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 12 Oct 2019 11:07:39 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (172.27.4.253) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sat, 12 Oct 2019 11:07:38 +0800 From: Jitao Shi To: Sam Ravnborg , David Airlie , "Daniel Vetter" , , CC: , , , , , , , , Jitao Shi Subject: [PATCH v7 2/8] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel Date: Sat, 12 Oct 2019 11:07:14 +0800 Message-ID: <20191012030720.27127-3-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191012030720.27127-1-jitao.shi@mediatek.com> References: <20191012030720.27127-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-24970.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/reSZlCNYMHxK8h4kh2jk+g72W9u7ODZ7XmauB/OBWacv+iVc05KBm2/UMh1JVSTP0E9d6Ji1d m/GWfHTjfkEbOpY1BzUq4XaLW7NEOvl7WFhImCwlpVkdtt3WuSiFtkzEVcTpUjspoiX02F7HLnh hMBcPp4vM1YF6AJbbCCfuIMF6xLSAHAopEd76vZC5Vgc/yCuzHYw52o5iQ148FM67qhLhe8IyAF zm9YXMcPFucRuZ+sg== 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-24970.000 X-TM-SNTS-SMTP: 9BD12C6244086386AC1A56398178CFAF4E615B910BEF3ECD55D104D657DA643E2000: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 | 713 ++++++++++++++++++ 3 files changed, 723 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..af68236ea0e8 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -0,0 +1,713 @@ +// 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