Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp586948ybd; Wed, 26 Jun 2019 03:21:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLP31r+gxXhvCEqe793f0ygvcSPA1xX5pDAadl0aYK7N8GUsZjNowqjp2/rUHr41VxNBcM X-Received: by 2002:a17:90a:32c7:: with SMTP id l65mr3819746pjb.1.1561544498243; Wed, 26 Jun 2019 03:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561544498; cv=none; d=google.com; s=arc-20160816; b=rCjnSSD2VNQw0XCNU/av5SWtcAfh3uU7xUdRqJ4q8H0vy1jhaIVGpMx/8zrVQ+3ysa cuWcv6PnNOutHVUHvrTZxlDvtO2cqFKZpZHrxdLZey4jr0nbM1FTbeMT6ttEzM8Vy1ZB o6jR3r432XYt6LM8Ig9iaHVdVqERsX9w8OJdvZ9/IHTdK5ctYdXk0hqH5set8+yRkSoF HETv+s3saRa1MYFR0bj9sLQ/4XFk9LCRr3bpUT6xQ4ljM625dqJ1apsRtk6JcNH83LtQ frZWCtB9onfyf6d0ekBv1VYTx22FwHjyULnFddMp3Bvsti6roDdYqXzX6BHaR4qvhV7N gh4A== 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=1JhQaoHL2yGkO5urBfGzooDoLEBhcQ3Zh7LVk57tYEk=; b=vdoSz+xsL11N4FQS4sLWRzru25bYF+AOoW9ERhnAVTEvfJVQVcsnrDV1rgAf98St9T G1f6fAUiYCiPVdCQGXvTL/1LeZ08B+/pDGjNJu2IIELeDYHgVCxbR9pTIjof9vVYKHMd P5FCUr90W4bTUQHR1CyLIGK5bC7yKEnlLsz0OE0H/rXIg8F7K5D0VBqpC4tHtRpGgzk+ mvB+HgkHwemm8x3iDKEzm7/rs+FH5/gX3zx9i4fWb6QzV5WvEXqb8tzQmB7m0ukkhUBe 6sxYapYVpKD341Vzr98lW6W8WwzvCca+pSmjmDHSaO89pLqa7kFW+qZ0uNtghEF+sGvH s0Jg== 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 70si3066196pla.2.2019.06.26.03.21.21; Wed, 26 Jun 2019 03:21:38 -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 S1727126AbfFZKUz (ORCPT + 99 others); Wed, 26 Jun 2019 06:20:55 -0400 Received: from inva021.nxp.com ([92.121.34.21]:34398 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726599AbfFZKUx (ORCPT ); Wed, 26 Jun 2019 06:20:53 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D184B200F4E; Wed, 26 Jun 2019 12:20:48 +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 C22B520094D; Wed, 26 Jun 2019 12:20:48 +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 4B86D205DB; Wed, 26 Jun 2019 12:20:48 +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 v5 2/2] drm/panel: Add support for Raydium RM67191 panel driver Date: Wed, 26 Jun 2019 13:20:20 +0300 Message-Id: <1561544420-15572-3-git-send-email-robert.chiras@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561544420-15572-1-git-send-email-robert.chiras@nxp.com> References: <1561544420-15572-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 | 670 ++++++++++++++++++++++++++ 4 files changed, 686 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..0773002 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-raydium-rm67191.c @@ -0,0 +1,670 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Raydium RM67191 MIPI-DSI panel driver + * + * Copyright 2019 NXP + */ + +#include +#include +#include +#include +#include +#include + +#include