Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1009024ybi; Sat, 8 Jun 2019 00:06:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKtN/g0HjzXUcyP+/3uw7jzokSECwJtKEqRbj8JDs3vIRWrQqtJlJvplZ/uNP+Zx1p5rG2 X-Received: by 2002:a17:902:fa2:: with SMTP id 31mr35075439plz.38.1559977567021; Sat, 08 Jun 2019 00:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559977567; cv=none; d=google.com; s=arc-20160816; b=JxSP6RjBe4Zwni82w9d4Qce5QlKuRaAL1cljWj3/mweNfG5YUoSff4RWCILhpez8ZB XA13xlj9AGXgFs8nD6mGtyC/mqOClYWZnHiV/ktQ8esFP+ZQOXvZuH9rdLwLrKVPkeRT DwxpIM0TER2li/oieLnSUYybYzeWolpLg9YsNu2ULnthqb/aKtEBsrfrJJfM4/hcOXNS XugxjbZa+9sANILypoDJz+xDOfgWt1RoLyQNuGJgL3KXMasx9HlpExs+vsPRa4Xkz1YB t0uFy1IOpvvcAkcJvEfcR9gyMp0qkuzSD6MRA2YXZxob3/2ke9Z7vxih1e+2+QluY82K Q5ig== 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=5Bt7Mn5GbyArYiJ8zJ8KKKqy/jY5MfPUmCm4hG+I2nM=; b=la++B7PMqrNJopQzr8anMkfJxY1jVoc8wouH6EhQ+/LE/UexwyPOvlN61uuxug73sd g7J50JDkKE4y0nl78g1PICNbOhXEq+U8bWWgK6ujJ2ItaaadXJ1YgqmezyAEyL962QcT 9f1QRM2pGsWelBaZxz5l3aDgc0QK5Fr34iXYNpzfUuUAawdFjUWj5JxAVJ3Ig6JViWuc UKy7htjnVYosHLHomTikuTCuYhRvFiuixqwrjxmYYYrKYZiYRwpxMYwm76GN1rZ10q3U xTW7DNopDMT6UOKIaPWJ2yUwBDuwVYcdVvRKW6TpWLAiRPArPoKusRJx24muIYb3HwxQ dPxw== 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 11si4190033pgn.297.2019.06.08.00.05.50; Sat, 08 Jun 2019 00:06:07 -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 S1727001AbfFHHDj (ORCPT + 99 others); Sat, 8 Jun 2019 03:03:39 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:50195 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726204AbfFHHDj (ORCPT ); Sat, 8 Jun 2019 03:03:39 -0400 X-UUID: 2ab2dcf25ddf4dfb841d97bbb7a3bbc9-20190608 X-UUID: 2ab2dcf25ddf4dfb841d97bbb7a3bbc9-20190608 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 247646571; Sat, 08 Jun 2019 15:02:38 +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; Sat, 8 Jun 2019 15:02:36 +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; Sat, 8 Jun 2019 15:02:35 +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: [2/2] drm/panel: support for BOE tv101wum-n16 wuxga dsi video mode panel Date: Sat, 8 Jun 2019 15:02:30 +0800 Message-ID: <20190608070230.55381-2-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190608070230.55381-1-jitao.shi@mediatek.com> References: <20190608070230.55381-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 | 10 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-boe-tv101wum-nl6.c | 700 ++++++++++++++++++ 3 files changed, 711 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..5dad028e35f0 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -272,4 +272,14 @@ 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 + +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 + endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 78e3dc376bdd..fc5944231aa8 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -28,3 +28,4 @@ obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701) += panel-sitronix-st7701.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o obj-$(CONFIG_DRM_PANEL_TPO_TPG110) += panel-tpo-tpg110.o obj-$(CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA) += panel-truly-nt35597.o +obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_NL6) += panel-boe-tv101wum-nl6.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..19590664c337 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -0,0 +1,700 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2018 MediaTek Inc. + * Author: Jitao Shi + */ + +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include