Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp871217ybi; Fri, 14 Jun 2019 04:53:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyq+Qo18xT7tT3trQY1LjJIPJ7x/LH5RkHlI8127Zt++QITMdzXFLbPgf5j/aZh14Uip/Xv X-Received: by 2002:a62:1456:: with SMTP id 83mr47042669pfu.228.1560513207052; Fri, 14 Jun 2019 04:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560513207; cv=none; d=google.com; s=arc-20160816; b=XdKQ78nVuHkq0joMe8DTO0+yyIcIbPeHuHSBMyfUl68O+42T7Uig/PKXLD0AGzf6Tr StWkUb8yWvQ0ynzpRsp5pgOfYMwR0sskP/UtQt4yNg+hfB40CO3+aiOxAOMlhnP8gGcH RarySyvKGjOzxxZBpbFROxY2VyjoOlQ4UTGiVUlRKfnC61pqxWUOg0cZVH/cyCkE+pf/ 8lRpfWnj/aRjPgpjO22dZvguosWcWj6Dly5ovTEnmyixWtnj/b9OSqF3yJC4xDdZOgjf gzKfJjpJMkVd+SnsU5E9ONXw11e+0T2YfwpeuQu8wpfGeBqTV3BrOpNjM5If7KSjfkzd x1vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=8aHL/mBFdhqD63ieKocwNkHboajxSH4EiOhlce1J/sQ=; b=o/OBbqlZWXe/YT9U3x+f+dab7S/oSfOn342N4DSxh/7dm3OhUgCrz+Y4YiZaR5Wn65 s+m1t3j9iLkUAoc2dFfJL/T8K4mp9pvEnTK7FEnS8LyLrzUvJONkNU4v6JixGC9E94i1 Cfcf8SgbAz0FL948psCgGBZVb5eg+RHvTGioCguJKzXcNMihO9RxktCEXAR6BXrq0NhE XMFku3OgeLOeT8Y/98UYgel3E4OSilqZS3Q+re/rVAe52RweQeBwrHzdJQXDgQIGZBQk 95J1BeGCN0uqPcNTGXdysdnW0rzoVdjzrKhXS/+0tlvq4ZAiOhF4L5cNlKMgI7Xb/Q5+ JFMA== 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g15si1948334pgl.566.2019.06.14.04.53.11; Fri, 14 Jun 2019 04:53:27 -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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727737AbfFNLvL (ORCPT + 99 others); Fri, 14 Jun 2019 07:51:11 -0400 Received: from inva021.nxp.com ([92.121.34.21]:49744 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727629AbfFNLvI (ORCPT ); Fri, 14 Jun 2019 07:51:08 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C84C3200EA8; Fri, 14 Jun 2019 13:51:05 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id B85F3200E99; Fri, 14 Jun 2019 13:51:05 +0200 (CEST) Received: from fsr-ub1664-046.ea.freescale.net (fsr-ub1664-046.ea.freescale.net [10.171.96.34]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 9AEB72061D; Fri, 14 Jun 2019 13:51:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by fsr-ub1664-046.ea.freescale.net (Postfix) with ESMTP id 7042455AD; Fri, 14 Jun 2019 14:51:05 +0300 (EEST) Received: from fsr-ub1664-046.ea.freescale.net ([127.0.0.1]) by localhost (fsr-ub1664-046.ea.freescale.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 6j9DZ9qOwVzP; Fri, 14 Jun 2019 14:51:04 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by fsr-ub1664-046.ea.freescale.net (Postfix) with ESMTP id 280BE4D1D; Fri, 14 Jun 2019 14:51:04 +0300 (EEST) X-Virus-Scanned: amavisd-new at ea.freescale.net Received: from fsr-ub1664-046.ea.freescale.net ([127.0.0.1]) by localhost (fsr-ub1664-046.ea.freescale.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id RQQ4fzmO4fqf; Fri, 14 Jun 2019 14:51:04 +0300 (EEST) Received: from fsr-ub1664-120.ea.freescale.net (fsr-ub1664-120.ea.freescale.net [10.171.82.81]) by fsr-ub1664-046.ea.freescale.net (Postfix) with ESMTP id F14A655AE; Fri, 14 Jun 2019 14:51:03 +0300 (EEST) From: Robert Chiras To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, Robert Chiras Subject: [PATCH 2/2] drm/panel: Add support for Raydium RM67191 panel driver Date: Fri, 14 Jun 2019 14:51:03 +0300 Message-Id: <1560513063-24995-3-git-send-email-robert.chiras@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1560513063-24995-1-git-send-email-robert.chiras@nxp.com> References: <1560513063-24995-1-git-send-email-robert.chiras@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds Raydium RM67191 TFT LCD panel driver (MIPI-DSI protocol). Signed-off-by: Robert Chiras --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm67191.c | 730 ++++++++++++++++++++++++++ 3 files changed, 740 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-raydium-rm67191.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index d9d931a..8be1ac1 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -159,6 +159,15 @@ config DRM_PANEL_RASPBERRYPI_TOUCHSCREEN Pi 7" Touchscreen. To compile this driver as a module, choose M here. +config DRM_PANEL_RAYDIUM_RM67191 + tristate "Raydium RM67191 FHD 1080x1920 DSI video mode panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for Raydium RM67191 FHD + (1080x1920) DSI panel. + config DRM_PANEL_RAYDIUM_RM68200 tristate "Raydium RM68200 720x1280 DSI video mode panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index fb0cb3a..1fc0f68 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -14,6 +14,7 @@ obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) += panel-orisetech-otm8009a.o obj-$(CONFIG_DRM_PANEL_OSD_OSD101T2587_53TS) += panel-osd-osd101t2587-53ts.o obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) += panel-panasonic-vvx10f034n00.o obj-$(CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN) += panel-raspberrypi-touchscreen.o +obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67191) += panel-raydium-rm67191.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o obj-$(CONFIG_DRM_PANEL_ROCKTECH_JH057N00900) += panel-rocktech-jh057n00900.o obj-$(CONFIG_DRM_PANEL_RONBO_RB070D30) += panel-ronbo-rb070d30.o diff --git a/drivers/gpu/drm/panel/panel-raydium-rm67191.c b/drivers/gpu/drm/panel/panel-raydium-rm67191.c new file mode 100644 index 0000000..75bfb03 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-raydium-rm67191.c @@ -0,0 +1,730 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * i.MX drm driver - Raydium MIPI-DSI panel driver + * + * Copyright (C) 2017 NXP + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include