Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1185687ybi; Sat, 8 Jun 2019 04:27:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqKUGEL/Hej3x2zolSzufHWVmf7+yRCVzpXZIAcQgA27BGwo1iSP9yBPpi/bXmpYh7B4tD X-Received: by 2002:a62:3605:: with SMTP id d5mr64455748pfa.28.1559993225918; Sat, 08 Jun 2019 04:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559993225; cv=none; d=google.com; s=arc-20160816; b=ZuGNeOdTo7mVyNW7ukWUvpiN9LsSVG9eIOgqQbpG6TZhILLrZsfnibveqU9s0iCl2J msFvx/cmrEd+UuN4q2TOmO+57M5tZ2/RdkY0ExNloLp20gd22wb/9AJh2mik0TTbrgJ+ +/eQF6qB8RoWebYScMETCCTd6J7WMDles16O5jqVZyNmydp7kICNoCNgIjxXa2lB4xMz 3DsPNwIW6xeSZqIcXrE332eraAAej0jAsbzv2jvnAq3hM5onhvLImFryT9Rg7vYzPLs0 JKspEeMZbAcLeEN+0Fxn5ppsCvMp6/PsmqA0Yhw8Y4J2M9hNOF4qVWKGHszRaF31Dqhr VPrg== 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=sF5Qhp0PLdACn58zurZX9vgQudr4V9zuACbLH0gXcWw=; b=0YQiTEvVY/laXX37O1UzD37DjRF8TA5BJ+zCGbKLBZ+qa84ReTvyd5FY79qQ0aY/0A iPoZ1T5QktTt6/KfYqBOZ1x5lRAu4Di1JRwT4EBPh0lkrp6Ih6iEKKTu7V+qpvat11d1 0n+U5T6sRYI3oPLV6KA0XUBdzILxLJenxpkH2IyiHvrViUyJoSeVDjwYUx7CFKbcdrF/ 42+dJ6yTSgwBIevpjLX3SA6XKa0BJHYvnLnL2Tq8I1cqWDsX0qKYahPDo7+ATlDaZ0Iq 5K5coNDsnNYB/A9BdMpZNpST2m6xukN0ZEFbZxKlP7w31qi3VLZ7C1Vy99AIW/NqCfW0 T/HA== 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 g2si4592723plg.336.2019.06.08.04.26.49; Sat, 08 Jun 2019 04:27:05 -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 S1727177AbfFHLYE (ORCPT + 99 others); Sat, 8 Jun 2019 07:24:04 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:46625 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726945AbfFHLYC (ORCPT ); Sat, 8 Jun 2019 07:24:02 -0400 X-UUID: 38abf42867234b6693b131d4e19b29d4-20190608 X-UUID: 38abf42867234b6693b131d4e19b29d4-20190608 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 882599171; Sat, 08 Jun 2019 19:23:49 +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; Sat, 8 Jun 2019 19:23:48 +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, 8 Jun 2019 19:23:46 +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 AUO kd101n80-45na wuxga dsi video mode panel Date: Sat, 8 Jun 2019 19:23:42 +0800 Message-ID: <20190608112342.64416-2-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190608112342.64416-1-jitao.shi@mediatek.com> References: <20190608112342.64416-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 AUO kd101n80-45na panel. This panel supports the resolution 1200x1920, dsi video mode and 4 lanes. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-auo-kd101n80-45na.c | 352 ++++++++++++++++++ 3 files changed, 363 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-auo-kd101n80-45na.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index e36dbb4df867..f5cd5af9ce42 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_AUO_KD101N80_45NA + tristate "AUO KD101N80_45NA 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 AUO KD101N80_45NA WUXGA PANEL + DSI Video Mode panel + endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 78e3dc376bdd..1056933bdf2e 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_AUO_KD101N80_45NA) += panel-auo-kd101n80-45na.o diff --git a/drivers/gpu/drm/panel/panel-auo-kd101n80-45na.c b/drivers/gpu/drm/panel/panel-auo-kd101n80-45na.c new file mode 100644 index 000000000000..ab7bfc059e8a --- /dev/null +++ b/drivers/gpu/drm/panel/panel-auo-kd101n80-45na.c @@ -0,0 +1,352 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2018 MediaTek Inc. + * Author: Jitao Shi + */ + +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include