Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3813728ybe; Mon, 16 Sep 2019 01:33:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBLCGjU6a2B0FiQVl4tre4fQRYe6TuJg05rUU0Z+cdANOIKo5qzA1+j+svplWB8WBKDunv X-Received: by 2002:a50:ac0d:: with SMTP id v13mr16510392edc.189.1568622801886; Mon, 16 Sep 2019 01:33:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568622801; cv=none; d=google.com; s=arc-20160816; b=rg7TBDqmtPLvDY7lhpISfQrQgmy8Jf67yX3gEDpKiNIUssC1uf15m+1rmiTsryQjCN IdbotK4Zgeu4KGHzvuS5NGgWXSJnkCPM1t++/f+reAEvlRT4uVTjQjHtK4pCT7gCyeXR 1IB12HgxEvIRtXZZGxVOWMnDUWiTKO3Qr0+7FhcaWgAqJEcZvUxt4uSNv+Lb7A464lI/ VzWktOcqn/Xcy1k8gO6h6U28nwdl0Dok7WX/6peT2lzQKU0KE+5Yl57vzUqZtx15LF8W s9ZLMhPKpxUjvmDeaN/k7YEJ4KOdkwxjd6d5K76gRaLtPZ7zKgvsnlM0g0LaiQEMGB1y HMdw== 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=yPQHkDyzihOr3WKeVrN/ySyLDqOAIlKhABTX6S4KTB4=; b=BZ7r0Vu7cQUUX5eStEx5ZsNu/cL/jrpzcxbM2oOnFWk0QySMPIXnMxF4HzWmJuJi3m LElL+Dd2peUyt1QHY1jSwysNm5G+f+IM7qsPM/jkefxsacrF+xW01aZMbDM0VmPlnSR5 d5IENp8UG3kWbcWFz6Cem4BrmzEa54cYYJE2Ik5Q4GxsWO1duBMrX/t5tCM5hBDdvDUW apSAbdPsjW4XmU3D2ChA6pV/Tegva+jgkN5oJCYPV4AQZ78fyrSFyj/Pn4UW9i2gV3T2 cjd5KzW6DeOHvxWV2naK9JuDueIZxMbaSkdUcfgxrAQamHYxedVelqqW4enZVdQ0nQ2n cpiA== 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 fk4si19160440ejb.161.2019.09.16.01.32.44; Mon, 16 Sep 2019 01:33:21 -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 S1729770AbfIPCai (ORCPT + 99 others); Sun, 15 Sep 2019 22:30:38 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:62292 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728521AbfIPCah (ORCPT ); Sun, 15 Sep 2019 22:30:37 -0400 X-UUID: 4db4ce98e293406487393391eb94d4bb-20190916 X-UUID: 4db4ce98e293406487393391eb94d4bb-20190916 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1520966293; Mon, 16 Sep 2019 10:29:59 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 16 Sep 2019 10:29:58 +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, 16 Sep 2019 10:29:57 +0800 From: Jitao Shi To: Sam Ravnborg , David Airlie , Daniel Vetter , , CC: , , , , , , , Jitao Shi Subject: [PATCH v5 2/8] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel Date: Mon, 16 Sep 2019 10:29:35 +0800 Message-ID: <20190916022941.15404-3-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190916022941.15404-1-jitao.shi@mediatek.com> References: <20190916022941.15404-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-TM-SNTS-SMTP: 53653145F8BD84F635CCA4A127D180A548D890103D2ACA4AD286BFF9E5321B462000: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..e27529b80d78 --- /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