Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6619250ybe; Wed, 18 Sep 2019 06:30:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4B5HB6KI8BY+IdqYCa3DoPOHdfmP3SMpIka9KkKSAvnXO4nDuvY8SJ2vuqgjqdaz6ChCy X-Received: by 2002:a50:dac2:: with SMTP id s2mr10338857edj.26.1568813423520; Wed, 18 Sep 2019 06:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568813423; cv=none; d=google.com; s=arc-20160816; b=Qg5CuAGibWfxbIGjgurKJkzPj+5R2bn+KkdUOqWAhmw32cSf9/o/3NqxMTrwp61UiS rygcs+00QHOnWChpz+6LkiVSC7zPONhRxg6Xg5VTCZ5XkXiXu8CY0985RSowIWczokZx kOsiqRMv50J4ecRxtHTWKx2rsWsGeuMcV8y5x1J2OckC0LMSGC/YKk26NI5Gikv9Mvsr anpEnOXI0Xm1tYqM7c793nOFCGT3SYsgF8CxRkXctrjJR4pLA+k55XLjFbgmyb4RwHbj 5f+3RWf73ea80bePmykLO7CRgfhK4q6NMhNSlM1Q64iW3UIG1fvhfdrd7gfIf9dFq9I4 04bQ== 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=BDfaVNyVbiZlCr0ERe6AaDiGjJW6CGibioozJMPgX6oliyiOjrzyCSmpH/XuFJrYAz +PlDD90xInTQIl+bC6+usWm9iEl84/7gs1eY7ppWePL5ITdTZ4iKoOgMEaAbYyD2fs64 RAHI8qegAPGCL25OjpwvH5wlSmMXDd8kEJAz59pcXSJ1JjG3AmnrMEGAajb8kN+EnF2Y p+o0nLXoCP+YQpStUrjBrSlbDfl7ArndYsBgtHDOBOJt2ILZbC3maCh2+G/AuxtUAHxq FNiglozMIjkIHKS8jgsAoFTDJG/gKRQ/YSIUwZwI0AJuA5jzs2i1LZhAZzz8rWX4m0ua UCaA== 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 rk6si2791060ejb.129.2019.09.18.06.29.58; Wed, 18 Sep 2019 06:30:23 -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 S1731019AbfIRMYz (ORCPT + 99 others); Wed, 18 Sep 2019 08:24:55 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:29729 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726941AbfIRMYx (ORCPT ); Wed, 18 Sep 2019 08:24:53 -0400 X-UUID: 87423b2e386249c78ac491222428838c-20190918 X-UUID: 87423b2e386249c78ac491222428838c-20190918 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 615032572; Wed, 18 Sep 2019 20:24:34 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 18 Sep 2019 20:24:32 +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; Wed, 18 Sep 2019 20:24:31 +0800 From: Jitao Shi To: Sam Ravnborg , David Airlie , Daniel Vetter , , CC: , , , , , , , , Jitao Shi Subject: [PATCH v6 2/8] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel Date: Wed, 18 Sep 2019 20:24:16 +0800 Message-ID: <20190918122422.17339-3-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190918122422.17339-1-jitao.shi@mediatek.com> References: <20190918122422.17339-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-TM-SNTS-SMTP: D82DCA4D88C44FCE32F997FD5C92ACF77051CD71BD0C9A4B41942B3B1F39485E2000: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