Received: by 10.223.176.5 with SMTP id f5csp1972954wra; Thu, 8 Feb 2018 06:33:14 -0800 (PST) X-Google-Smtp-Source: AH8x226KJLRxLAu1ORgCqW2OAcHm0P//ypO3RX7tdTz29RkPS0ziRk8G3cf9qx9ESq+As+D5QGcp X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr847502plu.40.1518100394274; Thu, 08 Feb 2018 06:33:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518100394; cv=none; d=google.com; s=arc-20160816; b=c3KfvwzdExAFk68feXZvARDVpY0/PP87x3LdIYrHQVLOCp2s1mU0WijECHgfjI3qg/ g6mVko0FttsAcsGGi00k2Oo5iHmggamZVdy8A+VlAe5P24L0mtIlJiQ6pjOHa32cFyxK U0uWbGc2M+Eqwvn+i94q7M/gjtGcI0kW+LOHVYszHasxuc+gzGWYe1+5ymkbXLFHa9HZ yKAOPftAtzx2M7TbrSzhudwFZHwBlN+oSxqLaW9hj310ILpH5CKooilclbv2/a3V42b6 B1c8ZuVvMxt4h5cac5JEAjHATmRybAQUt/boCk1kNr82phZyOfp5HrBJetr8k3Nbt1b0 5kDw== 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:arc-authentication-results; bh=1wC/E2wopwr2Hio6l/+xTwXPJXdfj1nvmg++DBIFuhU=; b=b9bbXTSt/HmveAruVk40YiQWkG6TjbdlixNZDwDpjes41DBH4/SZC3oXykekfpIwRt KWun0ALTZdULTwVPcK2eDCI2sDI+Io9LPC3HpR4cZGRi5MBMyFYaO7jsamA6Lt53MLbv C02LJZrvETxhMHuXYEyR38X0D2rQEaetx93kFuMPog3o9aHVBtjovxX4bNIO1yzUwp4m OJtK3thOBGgIIIPeAoXudaclwiBZe1B71mkq0DplYCUF60qYhvmiKp2KjkdlPgVlFSJl uqH79HvSF+/sQkwqtKvu2uEHffm9W8EqG4X51nj74GkeoXcIofPmCKrmt6p1IxJrhhkd qWaw== 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 a7-v6si36417plz.249.2018.02.08.06.33.00; Thu, 08 Feb 2018 06:33:14 -0800 (PST) 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 S1752229AbeBHObF (ORCPT + 99 others); Thu, 8 Feb 2018 09:31:05 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:13030 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751153AbeBHObC (ORCPT ); Thu, 8 Feb 2018 09:31:02 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w18ETAWv029268; Thu, 8 Feb 2018 15:30:46 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2fw3qx2s5e-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 08 Feb 2018 15:30:46 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2B45438; Thu, 8 Feb 2018 14:30:46 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id EB964A4CC; Thu, 8 Feb 2018 14:30:45 +0000 (GMT) Received: from SAFEX1HUBCAS24.st.com (10.75.90.94) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.352.0; Thu, 8 Feb 2018 15:30:45 +0100 Received: from localhost (10.201.23.32) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 8 Feb 2018 15:30:45 +0100 From: Philippe Cornu To: Thierry Reding , David Airlie , Rob Herring , Mark Rutland , , , CC: Andrzej Hajda , Yannick Fertre , Philippe Cornu , "Benjamin Gaignard" , Vincent Abriou , Alexandre Torgue Subject: [PATCH v1 2/2] drm/panel: Add support for Raydium rm68200 panel driver Date: Thu, 8 Feb 2018 15:30:26 +0100 Message-ID: <20180208143026.23009-3-philippe.cornu@st.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180208143026.23009-1-philippe.cornu@st.com> References: <20180208143026.23009-1-philippe.cornu@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.32] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-08_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds Raydium Semiconductor Corporation rm68200 5.5" 720x1280 TFT LCD panel driver (MIPI-DSI video mode). Signed-off-by: Philippe Cornu --- drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm68200.c | 464 ++++++++++++++++++++++++++ 3 files changed, 473 insertions(+) create mode 100755 drivers/gpu/drm/panel/panel-raydium-rm68200.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 988048ebcc22..08d99dd46765 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -108,6 +108,14 @@ config DRM_PANEL_RASPBERRYPI_TOUCHSCREEN Pi 7" Touchscreen. To compile this driver as a module, choose M here. +config DRM_PANEL_RAYDIUM_RM68200 + tristate "Raydium rm68200 720x1280 dsi 2dl video mode panel" + depends on OF + depends on DRM_MIPI_DSI + help + Say Y here if you want to enable support for Raydium rm68200 + 720x1280 dsi 2dl video mode panel + config DRM_PANEL_SAMSUNG_S6E3HA2 tristate "Samsung S6E3HA2 DSI video mode panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 3d2a88d0e965..f26efc11d746 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -9,6 +9,7 @@ obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) += panel-orisetech-otm8009a.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_RM68200) += panel-raydium-rm68200.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) += panel-samsung-ld9040.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2) += panel-samsung-s6e3ha2.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03) += panel-samsung-s6e63j0x03.o diff --git a/drivers/gpu/drm/panel/panel-raydium-rm68200.c b/drivers/gpu/drm/panel/panel-raydium-rm68200.c new file mode 100755 index 000000000000..f3e15873d05a --- /dev/null +++ b/drivers/gpu/drm/panel/panel-raydium-rm68200.c @@ -0,0 +1,464 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) STMicroelectronics SA 2017 + * + * Authors: Philippe Cornu + * Yannick Fertre + */ + +#include +#include +#include +#include +#include +#include +#include