Received: by 10.223.185.116 with SMTP id b49csp6547334wrg; Wed, 28 Feb 2018 11:17:54 -0800 (PST) X-Google-Smtp-Source: AH8x226dW56cxDCnga0rEjIKqBODSG4ZCTrIJspHyEH8VposE2gHgrxljMcxiqlJeLpKPq5435uA X-Received: by 10.98.17.147 with SMTP id 19mr18582683pfr.160.1519845473867; Wed, 28 Feb 2018 11:17:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519845473; cv=none; d=google.com; s=arc-20160816; b=f077NNbA1PufYQ/V3xSIm33tO1f/lysnPz3yb95XXX+UAneMIlIS4FZylNS0UUjDs8 CwI+thfo1DoIc3FHKb/BCX+tsWdviPjQFpWDqZf2KABwvmHJVCj4tUy8JZQfiEwyWq8f tBxA3Y5FCSzgu1CegiPS0R9RY4rcrGuyqdiC/oRLlnHgK1V9WWGFPA0cJVTkR84l5dnO 2v5/x0U05BPBLM8pvfjak5E335PUfkeC3ZPtb+E737Br8Hu6RkkNwaRmvwsbKqkm5mR2 reJA+YZa/ZJic5M+8RGk4PunZaqwfs4iQ82vVRfJFlWEqAAF/ab/bi/O71ciwaQje0Ub DR1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=AqEiVA8kFm5ONRg2z9OtKJ08Usn0u2wmydMSVxgzmQc=; b=t2unqzr43W9LbVp4NUYhcxJKVqNQ9V6FP9WnTzzcivuCTbcYu6EVybHbf5VQl6Dy6F 0t4Ixz/TstScEzduVj9P0wINqe60N2Rfc2fmvAzFfx1I7zhmn93wNu+kBsTRLFSFD2t5 Eo1o7BrmVyUpYs7MyBPK2MaszRhoEhIXS0ACCisrl2g3rB0cYFrEO/pONYYj+0hiPNp1 hXB5JmoYhKlmNMGlHccceESbuW6C9tqWLSY5lKtm8ONGsXiijOgoqc/tARJtvciFYIzD lzaXQWw/GdwqaDJDZrQLxi3X2Mgi3nrPlMfPfrvu5qlBXHdRuThM1JNx2YS4GvQxgOna SKZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Lz71mWcQ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5-v6si1660660ple.360.2018.02.28.11.17.38; Wed, 28 Feb 2018 11:17:53 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Lz71mWcQ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933275AbeB1TQU (ORCPT + 99 others); Wed, 28 Feb 2018 14:16:20 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:50205 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932367AbeB1TQR (ORCPT ); Wed, 28 Feb 2018 14:16:17 -0500 Received: by mail-wm0-f68.google.com with SMTP id w128so7196298wmw.0; Wed, 28 Feb 2018 11:16:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=AqEiVA8kFm5ONRg2z9OtKJ08Usn0u2wmydMSVxgzmQc=; b=Lz71mWcQPFDWrU/grwDuMG2smAAlv8mBdvtmiWLajNY93AP45erwrI3ihnSG+0fq+V 7g1U/5twkNk1Ycpz1UbnCCfnmGCYWGTqVInX20uMKJCfWK+z5Qch90Bm/e0jKp38quLF 4ZlGrZrtf7aWyf1EASaN5gzisp5AU3f+TvMKiAkvbVf/msxh2PUNbJqJ94+CEOk8U1L9 kIVXfgmmOfYH0QwInFRGb50M0EPRoLaqWfRwAOBEBa5/UrP0fIckRI+x4fU5p/H1vF+F IHknpuL56byQHur4jRog1UkDCNgM7PkeTyJYByOXN6Gf6ZLBqcUSHtvnH69Fdm0xmdzT BTbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=AqEiVA8kFm5ONRg2z9OtKJ08Usn0u2wmydMSVxgzmQc=; b=X/V7Jc2N4ngJ1lA2YpvzF5PwVZfsiyfaAOB36Z1sfthlJpSpL0KEjZu8HbwQL8WCZ2 dNmCllJ9F2BbeYJS+BTt1GUHoQ2Fcp0LwQPaY1GcbWVrkPrvozTvN2z0zpGAiS0JE6Ps ufTL5bod5kYmeLpJNtllfLOUyyg+QT9+j6xQ07Ir5O6vO4XuTX///5y+df5T2yKr3fyh 6uifvZwHoBjaHeGgEd6VtEjpYloXrwSW8HIh5QxPB1NNCtuZYBVsXXU5aTv496tjEHyU lQjG3nACdbox0nQqsGXdMF651HQW5dFdP6SLd++1fx/RKdTFIwGQMI0WNEzml+DS8wKf RJUA== X-Gm-Message-State: APf1xPBEKmGutLx3Rsygpp7x5uln1Cuu9sj1lOaagZE/ltL27BWwLvPv zKvKArxsIs7pW2F7TvT4v9M= X-Received: by 10.28.6.205 with SMTP id 196mr10927586wmg.136.1519845375340; Wed, 28 Feb 2018 11:16:15 -0800 (PST) Received: from localhost (p200300E41F1A6C00021F3CFFFE37B91B.dip0.t-ipconnect.de. [2003:e4:1f1a:6c00:21f:3cff:fe37:b91b]) by smtp.gmail.com with ESMTPSA id m129sm2872024wma.44.2018.02.28.11.16.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Feb 2018 11:16:14 -0800 (PST) Date: Wed, 28 Feb 2018 20:16:13 +0100 From: Thierry Reding To: Philippe Cornu 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 Message-ID: <20180228191611.GC22932@mithrandir> References: <20180208143026.23009-1-philippe.cornu@st.com> <20180208143026.23009-3-philippe.cornu@st.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZwgA9U+XZDXt4+m+" Content-Disposition: inline In-Reply-To: <20180208143026.23009-3-philippe.cornu@st.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ZwgA9U+XZDXt4+m+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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). >=20 > 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 >=20 > 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. > =20 > +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/Makef= ile > 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) +=3D panel-lg-lg4573.o > obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) +=3D panel-orisetech-otm8009a= =2Eo > obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) +=3D panel-panasonic-vvx1= 0f034n00.o > obj-$(CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN) +=3D panel-raspberrypi-t= ouchscreen.o > +obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) +=3D panel-raydium-rm68200.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) +=3D panel-samsung-ld9040.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2) +=3D panel-samsung-s6e3ha2.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03) +=3D panel-samsung-s6e63j0x03= =2Eo > 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