Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1939017ybi; Thu, 20 Jun 2019 06:31:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVBUINO1X7Ge0zGhhaAJAQTQMc1DN5G5/oUOMPvakFnj88LPOIIO/MwiA1ZuL11H+4Jc9i X-Received: by 2002:a63:296:: with SMTP id 144mr13105549pgc.141.1561037462746; Thu, 20 Jun 2019 06:31:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561037462; cv=none; d=google.com; s=arc-20160816; b=I5ZjVicWwlbUsSCiBGEv9PFe4hbJ29wzqlTR9NHQGzTWQ59v3Y950lQ+8teQMGa6qi 2eJUn1EUhHXGKpatShsepRLUVsbL3FIXELiAFWSYkGiloUDTlnfeJq4tkGt0w8Dvv1mB k7tItWHrpsf5SHCVa3Jbz1bXJKKPGc6QqHIH9jaRTMQ30i4mEhRBgpCr4lh3epwDvyYa XjoXKAzJmgM3vhgJfrdpHX5YKOawmhrfIiocmw/FtsXqXcINQykju79PJHw/IX/FOW/U KyffKWpsGyyN/e6q9fLk+5lI1Av+KT52AS+XX23tJJOIOb6LL2uIQ9HLx7NoxnVHpdvS LoDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=cfvMU+X1xurjzr9vj281IXNNxzif5FUjP5MArP2xuiI=; b=poxgn64HHmDN3LNIRF++RlqE48wG9lCTvez5YjJJdMjrDmCEulseGkjHaSSzszQJLX /CMKS18JqD8TbWJ0DqtvbfdTo99BkBGEynwwHTsaLUl8DgRUt1eF/ThjFw6dUkNVB6jh D4sScPejJuViLPFh+8PEzbDV4UG+I3Ldmv0iAhj7SIcyRApoBsbeOKhvDawwD9XkiylP x92bE0Km4v5UBekMY6iabmzyZnqq2sKA6keQMvMLbjQVM0ngBKblGniOnW56FjnEK+zc khZJIBSobzfNtsYTzkD0ENDqRJC9J6SZISrOzX9N6LjcBoX11UVBo2Id1OspbpYj3sLZ B0qg== 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 e8si5640275pgs.308.2019.06.20.06.30.47; Thu, 20 Jun 2019 06:31:02 -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 S1731712AbfFTNak (ORCPT + 99 others); Thu, 20 Jun 2019 09:30:40 -0400 Received: from inva021.nxp.com ([92.121.34.21]:55236 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726686AbfFTNai (ORCPT ); Thu, 20 Jun 2019 09:30:38 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id F166C200F4A; Thu, 20 Jun 2019 15:30:33 +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 DFF60200791; Thu, 20 Jun 2019 15:30:33 +0200 (CEST) Received: from fsr-ub1664-120.ea.freescale.net (fsr-ub1664-120.ea.freescale.net [10.171.82.81]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 68A3720629; Thu, 20 Jun 2019 15:30:33 +0200 (CEST) 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 v3 2/2] drm/panel: Add support for Raydium RM67191 panel driver Date: Thu, 20 Jun 2019 16:30:28 +0300 Message-Id: <1561037428-13855-3-git-send-email-robert.chiras@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561037428-13855-1-git-send-email-robert.chiras@nxp.com> References: <1561037428-13855-1-git-send-email-robert.chiras@nxp.com> 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 Reviewed-by: Sam Ravnborg --- MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm67191.c | 690 ++++++++++++++++++++++++++ 4 files changed, 706 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-raydium-rm67191.c diff --git a/MAINTAINERS b/MAINTAINERS index 7a2f487..cd93030e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5089,6 +5089,12 @@ S: Maintained F: drivers/gpu/drm/qxl/ F: include/uapi/drm/qxl_drm.h +DRM DRIVER FOR RAYDIUM RM67191 PANELS +M: Robert Chiras +S: Maintained +F: drivers/gpu/drm/panel/panel-raydium-rm67191.c +F: Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt + DRM DRIVER FOR RAGE 128 VIDEO CARDS S: Orphan / Obsolete F: drivers/gpu/drm/r128/ 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..c4d7dfd --- /dev/null +++ b/drivers/gpu/drm/panel/panel-raydium-rm67191.c @@ -0,0 +1,690 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Raydium RM67191 MIPI-DSI panel driver + * + * Copyright 2019 NXP + */ + +#include +#include +#include +#include +#include +#include + +#include