Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp208634ybd; Tue, 25 Jun 2019 19:56:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbuufPvzcIHuV+o0pRQkXEaWYYkdVf28H5nmG/MKjaG13uj6YVlR89/MPnueSWrB6nznRs X-Received: by 2002:a17:90a:c481:: with SMTP id j1mr1488904pjt.96.1561517784327; Tue, 25 Jun 2019 19:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561517784; cv=none; d=google.com; s=arc-20160816; b=zAUdr3JKLKIJUeRapoh0HdkCU5Yxqb/Bp8T20BPCEH8AmUDJwDck+grL6R4mLRwmsE m1bs5z5HkHBLAINMq8moaOZOrxWPlZ7+k0xYp5ASF9iOQKN71qusazW4397U0jiWHuqL stsOXYEuEUedBRdymx2Y3F3v4vwBYzLD6D5lL/xTt+M1SP3yuHCGMDJtRibFLItfcc/d EbcbCE6Ac45yltTFJ0Jt8MjRKfwDVIHYg93UwZbOLjbF5z62awr2z2/+FF/y46hl58VE ZGy528A1IpnoLph/tUMfmvP2pmjvCYQ4lRaWBSB32aeEfjmHb5a+xdjQutgC52ljmBRT h/kQ== 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=UD/a7mBSEmHiCXHSZnWwtVuFRChcO/iP6reZ8SRdzIU=; b=h6ubJzUP+FS4WUCVyN/cqyRtiIaUmIf6Tp04seUtMVeCkc687Zyqed/6Vhbs/Beoy8 ET7K1R1GdI9vOiPQkkTk/orUBw3vbNe7vMs0d6nf08JaY+Vm+zmV2oolqiTjZPhRXhNA 8f4/+Hf1R43GIeK+E91vvlmPpQy5CFQK/mxDYJflhe25ejMAmErUgmEDdwoICSK2Q+DS svo3s7Su4bADUoiJjpA0NpngoQFENzSYYTl6mNHEn5+uMJD08U9cEo5aavNEG/JWx7ym C1sNN3RA9hY1o62IXehLzsHx4Kp6CTs5I7viE9I/pFMGsPjWPAbgEIDXPTZ60vvjmE2x xExw== 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 a11si3117313pgl.436.2019.06.25.19.56.08; Tue, 25 Jun 2019 19:56:24 -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 S1726691AbfFZCy3 (ORCPT + 99 others); Tue, 25 Jun 2019 22:54:29 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:25225 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726369AbfFZCy2 (ORCPT ); Tue, 25 Jun 2019 22:54:28 -0400 X-UUID: 777cd76cef9d49b0ba857c9d51e3bca5-20190626 X-UUID: 777cd76cef9d49b0ba857c9d51e3bca5-20190626 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1492454854; Wed, 26 Jun 2019 10:54:13 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 26 Jun 2019 10:54:12 +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; Wed, 26 Jun 2019 10:54:09 +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: [v3 2/4] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel Date: Wed, 26 Jun 2019 10:53:58 +0800 Message-ID: <20190626025400.109567-3-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190626025400.109567-1-jitao.shi@mediatek.com> References: <20190626025400.109567-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-boe-tv101wum-nl6.c | 714 ++++++++++++++++++ 3 files changed, 724 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..706f6ff2b4fa 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 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..30d1f53dcbaf --- /dev/null +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -0,0 +1,714 @@ +// 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