Received: by 10.223.185.116 with SMTP id b49csp8807332wrg; Fri, 2 Mar 2018 08:16:08 -0800 (PST) X-Google-Smtp-Source: AG47ELtHo5GdvPRYgjdXSyVPsOjao5oS9SFjnvd+gxpXSGM/D42CNjrE5N0sSitYCgxb6E/Pjwng X-Received: by 2002:a17:902:8d8b:: with SMTP id v11-v6mr785811plo.33.1520007367921; Fri, 02 Mar 2018 08:16:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520007367; cv=none; d=google.com; s=arc-20160816; b=NA8EFdnfaoDHXB0VuWM5Lk9wo6l2Fc1pIsVT7cwRikMDnrYqZFHmmFErWk/ZE4frfL etGsziPChFwrYAc8SYHl3pmKYMz192+3LPQ7CblUxETOLgw3ZrYtE6Yb/87D5evjZJqi /GOQq9iSNVZpJ3CpOmfbDt9stseNldvk75evZELouka5j4d2PSnRMgCa9F+TxkiZHiG9 bJ+eAHOg5B+Hxr5ekiTxkk9cS9ll86B95O7lynOGPsfddFd1ECsJn1jxpOBYo6qDXd1q C1YHnrQAAScpJrnZ5EGY/1lqvvlLu+hg0W5iVUEiYEx93rGh+9xsMVWi+rRwEyLREspv Iq0A== 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=91YiOG/lb0T+zr7tNliyQwsSHxHuzfca03pJtSMvS20=; b=uEgAHRyKSofUjv97eO15YyuzYt+rimsdM1htNnxkx7bqWBz4hkauzcjUEGNNq9kwD5 urj+C96ivvOwVcYMdFun5cmmApkgIDO2Ucxc+qlnAOGyOAEoufHikV1L6FB9wQFFyivM QA2M9jAzkNQasgZJypwzAeqKKpf3nqx+tWnBDuEvx7/FdziGqenOAyYFoUO3RDPcRbda 7ABKEEzJZ5SdKqaNfkgeAazM40z/EWnG5Yz+IkBO0JTkJKtGjSHG1QgVMaYiptEoyF6H FjGSf+leZhl62RZK4E9WLeZUZHl6K59ycrOF8YkiDTfb2apWOywY/VWVo0eabkDHNM1A FGQw== 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 g3-v6si4980318pld.366.2018.03.02.08.15.53; Fri, 02 Mar 2018 08:16:07 -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 S1423658AbeCBPdP (ORCPT + 99 others); Fri, 2 Mar 2018 10:33:15 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:32793 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1423375AbeCBPdD (ORCPT ); Fri, 2 Mar 2018 10:33:03 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w22FT5of012204; Fri, 2 Mar 2018 16:32:47 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2gaytjhs4n-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 02 Mar 2018 16:32:47 +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 E6AC134; Fri, 2 Mar 2018 15:32:46 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B1284F27; Fri, 2 Mar 2018 15:32:46 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 2 Mar 2018 16:32:46 +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.352.0; Fri, 2 Mar 2018 16:32: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 v2 2/2] drm/panel: Add support for Raydium RM68200 panel driver Date: Fri, 2 Mar 2018 16:32:22 +0100 Message-ID: <20180302153222.4377-3-philippe.cornu@st.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180302153222.4377-1-philippe.cornu@st.com> References: <20180302153222.4377-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-03-02_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 | 437 ++++++++++++++++++++++++++ 3 files changed, 446 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..a30eb7a2f8e2 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 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 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..35d75148ca08 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-raydium-rm68200.c @@ -0,0 +1,437 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) STMicroelectronics SA 2017 + * + * Authors: Philippe Cornu + * Yannick Fertre + */ + +#include +#include +#include +#include +#include +#include +#include