Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3353471ybd; Tue, 25 Jun 2019 00:50:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcBoT+I29ldtV58R/yC0rEZvZEY63QmEipu2S1MMv8d9EnOaSJJpeCKJo4PsuCvfbKgZJo X-Received: by 2002:a17:90a:a00d:: with SMTP id q13mr29865476pjp.80.1561449026044; Tue, 25 Jun 2019 00:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561449026; cv=none; d=google.com; s=arc-20160816; b=OxE1tTQM3SwljXBl08cYAmlyvSg3D2AYJbwsCO514C0MHJYFsYym04jugC5xqRMjIS NNPOamcWNs0RDWqenIeWTxcSwykXaTN9D8uMmBKLVO1E7Aw643EEu01Woy2AX9YZjsnx M443dF6ZpmlMX/rvLR9T/mAGriH8/tZkNGb3svDQBvqVS8AfZ7ScodVr7boP/AqhqYVE Kuz15qdd5S7BHKdEEq3wHRVzMTSl+ZsyvP9xuA4/XT06+o/HUeRS1l5vISDOthHn0Kfo 5exyyvBwbkRfje8MRpLHM6RPjVc82X8HSF26MEUbjIcACe5TqiRVMEzfsvmTPZWBRHrY CxVQ== 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=6WGNKORKdg+E+QTbR1inEjwcprahiTo+p1BrwnkfaLE=; b=M2xKIDRGsD5rRz9uBQ+a3jjEwutfJ1XjnNdMz/q4qHTtBRI/fmvq5sVwIvlAUa+oB0 Ltq5Vk2EmuVfoVZyrfQdBVP981Uz7wyJ72OPR7xrHY2rgaA+2vaLVEkwQMkqNiWiuPkI FW8+aoN6wYI1k4HCY+nEPK3l7NXwla07Fpg/YhSkzlIKo7rditptmAl61K9EKlHfMmFM dpjsZRPTB1EndvpVZP0SMdfTCBlN94wJvvPUO3QCoTYd6Z+aMkMSy3RNgFABanDtvt/d 0PEAflfHHfvwiG6GxjjW5DaX9vdI5RABeqGg5MxDWQ33G7chdawA+tijs5aB23p9ahfV 8Pdw== 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 15si12318088pgz.466.2019.06.25.00.50.10; Tue, 25 Jun 2019 00:50:26 -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 S1729927AbfFYHLv (ORCPT + 99 others); Tue, 25 Jun 2019 03:11:51 -0400 Received: from inva020.nxp.com ([92.121.34.13]:37532 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729777AbfFYHLq (ORCPT ); Tue, 25 Jun 2019 03:11:46 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 5DA751A0F5B; Tue, 25 Jun 2019 09:11:44 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 4EF4F1A0F4E; Tue, 25 Jun 2019 09:11:44 +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 CC28D205E5; Tue, 25 Jun 2019 09:11:43 +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 v4 2/2] drm/panel: Add support for Raydium RM67191 panel driver Date: Tue, 25 Jun 2019 10:11:14 +0300 Message-Id: <1561446674-25084-3-git-send-email-robert.chiras@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561446674-25084-1-git-send-email-robert.chiras@nxp.com> References: <1561446674-25084-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 | 673 ++++++++++++++++++++++++++ 4 files changed, 689 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..1735b0f --- /dev/null +++ b/drivers/gpu/drm/panel/panel-raydium-rm67191.c @@ -0,0 +1,673 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Raydium RM67191 MIPI-DSI panel driver + * + * Copyright 2019 NXP + */ + +#include +#include +#include +#include +#include +#include + +#include