From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: Re: [PATCH v4 2/2] drm/panel: Add JDI LT070ME05000 WUXGA DSI Panel Date: Mon, 13 Jun 2016 14:35:14 +0200 Message-ID: <20160613123514.GF27930@ulmo.ba.sec> References: <1465813529-30621-1-git-send-email-simhavcs@gmail.com> <1465813529-30621-2-git-send-email-simhavcs@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1557078208==" Return-path: Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id C0E966E2E1 for ; Mon, 13 Jun 2016 12:35:18 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id r5so14555476wmr.0 for ; Mon, 13 Jun 2016 05:35:18 -0700 (PDT) In-Reply-To: <1465813529-30621-2-git-send-email-simhavcs@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Vinay Simha BN Cc: open list , "open list:DRM PANEL DRIVERS" , Archit Taneja List-Id: dri-devel@lists.freedesktop.org --===============1557078208== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ni93GHxFvA+th69W" Content-Disposition: inline --ni93GHxFvA+th69W Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 13, 2016 at 03:55:28PM +0530, Vinay Simha BN wrote: > Add support for the JDI lt070me05000 WUXGA DSI panel used in Can you please make the names consistent? Use the all-uppercase spelling for the panel model. > Nexus 7 2013 devices. >=20 > Programming sequence for the panel is was originally found in the > android-msm-flo-3.4-lollipop-release branch from: > https://android.googlesource.com/kernel/msm.git >=20 > And video mode setting is from dsi-panel-jdi-dualmipi1-video.dtsi > file in: > git://codeaurora.org/kernel/msm-3.10.git LNX.LA.3.6_rb1.27 >=20 > Cc: Archit Taneja > [sumit.semwal: Ported to the drm/panel framework] > Signed-off-by: Sumit Semwal > [jstultz: Cherry-picked to mainline, folded down other fixes > from Vinay and Archit] > Signed-off-by: John Stultz > [vinay simha bn: removed interface setting cmd mode, video > mode panel setting selection] > Cc: Rob Clark > Signed-off-by: Vinay Simha BN > -- > v2: > * incorporated code reviews from theiry, archit > code style, alphabetical soring in Makefile, Kconfig, regulator_bulk, > arrays of u8, generic helper function, documentation bindings, >=20 > v3: > * dcs backlight support added > * tested this panel driver in nexus7 2013 device >=20 > v4: > * backlight interface added in the panel driver > * incorporated width_mm and height_mm suggested by rob herring > --- > drivers/gpu/drm/panel/Kconfig | 11 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-jdi-lt070me05000.c | 539 +++++++++++++++++++= ++++++ > 3 files changed, 551 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c >=20 > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 1500ab9..83e89e7 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -7,6 +7,17 @@ config DRM_PANEL > menu "Display Panels" > depends on DRM && DRM_PANEL > =20 > +config DRM_PANEL_JDI_LT070ME05000 > + tristate "JDI LT070ME05000 WUXGA DSI panel" > + depends on OF > + depends on DRM_MIPI_DSI > + depends on BACKLIGHT_CLASS_DEVICE > + help Please use consistent indentation here. Also, this is badly sorted. The DRM_PANEL_SIMPLE is special in that it doesn't have a vendor prefix, all others should be sorted after panel-simple and in alphabetical order by vendor, then model. > + Say Y here if you want to enable support for JDI WUXGA DSI video > + mode panel as found in Google Nexus 7 (2013) devices. > + The panel has a 1200(RGB)=C3=971920 (WUXGA) resolution and uses > + 24 bit RGB per pixel. It's kind of redundant to say 1200(RGB) when you say that it's 24 bit RGB afterwards. You also repeat WUXGA twice, so you can drop either of the occurrences as well. > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makef= ile > index f277eed..5d74ac2 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -1,3 +1,4 @@ > +obj-$(CONFIG_DRM_PANEL_JDI_LT070ME05000) +=3D panel-jdi-lt070me05000.o Please sort this the same way as the Kconfig entries. > obj-$(CONFIG_DRM_PANEL_SIMPLE) +=3D panel-simple.o > obj-$(CONFIG_DRM_PANEL_LG_LG4573) +=3D panel-lg-lg4573.o > obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) +=3D panel-panasonic-vvx1= 0f034n00.o > diff --git a/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c b/drivers/gpu= /drm/panel/panel-jdi-lt070me05000.c > new file mode 100644 > index 0000000..8657e5f > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c > @@ -0,0 +1,539 @@ > +/* > + * Copyright (C) 2016 InforceComputing > + * Author: Vinay Simha BN > + * > + * Copyright (C) 2016 Linaro Ltd > + * Author: Sumit Semwal > + * > + * From internet archives, the panel for Nexus 7 2nd Gen, 2013 model is a > + * JDI model LT070ME05000, and its data sheet is at: > + * http://panelone.net/en/7-0-inch/JDI_LT070ME05000_7.0_inch-datasheet > + * > + * This program is free software; you can redistribute it and/or modify = it > + * under the terms of the GNU General Public License version 2 as publis= hed by > + * the Free Software Foundation. > + * > + * This program is distributed in the hope that it will be useful, but W= ITHOUT > + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or > + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License= for > + * more details. > + * > + * You should have received a copy of the GNU General Public License alo= ng with > + * this program. If not, see . > + */ > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > + > +#include