Received: by 10.223.185.116 with SMTP id b49csp153404wrg; Fri, 2 Mar 2018 15:43:24 -0800 (PST) X-Google-Smtp-Source: AG47ELux+P+iw5zEuz+jYdKNmwku6GA4N3nfHDkatBEGkRatmzm17W4aFon6H2SZC5GtiVkD0pVk X-Received: by 2002:a17:902:26:: with SMTP id 35-v6mr6761822pla.42.1520034203875; Fri, 02 Mar 2018 15:43:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520034203; cv=none; d=google.com; s=arc-20160816; b=Ri7VZdNXy1ZThrZKyNAX/0nTtKJkTSitLzOakv+xVJRT6QCXWfkPxpkEj/CUkYxbPl zWng/7Iqx8r5n+U2e7pY6RiJfVBNjOc5VG/l8PrDmOAAsZDwOfWMPaqNycVnChbiMRtY ZpAYumrKpFHq0QQV76mIWZUks6aglMaSn75w+DrIFAkPhcsLfT4qEcRU5cGR5kDB74mg xw+xaNCMnrRU3uSC99Vjvl96RI8vUTJXhFtyMOB7V/DJ3HciIk0WCsrKzQfZGAB2eaui l1iJ6MISul9CL7cIKyCbMBOgjEyYvOMDA4FIbdBsrpUqx5Zn40KRqkEIOOot4IGaEM/l Ye8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:arc-authentication-results; bh=MUbz2YZtEmyZVMSK2QeSj/lS0IG/9pd5lz/Y2xi82w4=; b=m7p26jQS9N+j28cMx8m1ywYhTBvo4KShq18Fewor36HDThHITGRGde/k6JRDOtwa8B /I6qwtNvu3jfebIWwpUnOAWYjq6W5dYdthvsCr8Y5FH0YmYSuqEaQGJPmlzbAlXV07Ln GPu5lb9vtdMushrnAFzhyo3h2/c7NYfdHQYg9QJfihjJkxWGwo5vd7XCiy/Xqg0FVCoT 6zzoqeQcHRHbNUH9CF1aPMMEW0w1ULssCLetEFouoO+msaHz/7PI9xQOiJWRml5dnrkp oyL1iuvCShP9B97O1XOlC8FCMlBaByAsZN5VGqCXg0eUFM9SGJo1c5aFFZ0fR96qpduj aHWQ== 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 t15si4684766pgu.62.2018.03.02.15.42.46; Fri, 02 Mar 2018 15:43:23 -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 S933934AbeCBPhv convert rfc822-to-8bit (ORCPT + 99 others); Fri, 2 Mar 2018 10:37:51 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:55441 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932648AbeCBPhs (ORCPT ); Fri, 2 Mar 2018 10:37:48 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w22FYG9h003158; Fri, 2 Mar 2018 16:37:32 +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 2gf30stsfc-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 02 Mar 2018 16:37:32 +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 85BB63A; Fri, 2 Mar 2018 15:37:31 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node3.st.com [10.75.127.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E74B2F6F; Fri, 2 Mar 2018 15:37:30 +0000 (GMT) Received: from SFHDAG6NODE3.st.com (10.75.127.18) by SFHDAG6NODE3.st.com (10.75.127.18) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 2 Mar 2018 16:37:30 +0100 Received: from SFHDAG6NODE3.st.com ([fe80::d04:5337:ab17:b6f6]) by SFHDAG6NODE3.st.com ([fe80::d04:5337:ab17:b6f6%20]) with mapi id 15.00.1347.000; Fri, 2 Mar 2018 16:37:30 +0100 From: Philippe CORNU To: Thierry Reding CC: David Airlie , Rob Herring , "Mark Rutland" , "dri-devel@lists.freedesktop.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Andrzej Hajda , "Yannick FERTRE" , Benjamin Gaignard , Vincent ABRIOU , Alexandre TORGUE Subject: Re: [PATCH v1 2/2] drm/panel: Add support for Raydium rm68200 panel driver Thread-Topic: [PATCH v1 2/2] drm/panel: Add support for Raydium rm68200 panel driver Thread-Index: AQHTsMicmNabhZCoukS++MT3ceNttaO9BmmA Date: Fri, 2 Mar 2018 15:37:30 +0000 Message-ID: References: <20180208143026.23009-1-philippe.cornu@st.com> <20180208143026.23009-3-philippe.cornu@st.com> <20180228191611.GC22932@mithrandir> In-Reply-To: <20180228191611.GC22932@mithrandir> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.46] Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 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 Hi Thierry, A big thank you for your code review and comments. It helped me to improve the driver and to send a v2. Philippe :-) On 02/28/2018 08:16 PM, Thierry Reding wrote: > On Thu, Feb 08, 2018 at 03:30:26PM +0100, Philippe Cornu wrote: >> 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" > > What's 2dl? Either this is something already implied by the RM68200 > model or if there are multiple variants of the RM68200 you'll probably > want to ensure that's reflected in the compatible string. > >> + 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