From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: Re: [PATCH v8 1/2] drm/panel: Add support for Truly NT35597 panel driver Date: Thu, 27 Sep 2018 14:20:06 +0200 Message-ID: <20180927122006.GG29102@ulmo> References: <1537483957-22710-1-git-send-email-abhinavk@codeaurora.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0209981672==" Return-path: Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 042AC6E0ED for ; Thu, 27 Sep 2018 12:20:10 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id j8-v6so2371234wrw.5 for ; Thu, 27 Sep 2018 05:20:09 -0700 (PDT) In-Reply-To: <1537483957-22710-1-git-send-email-abhinavk@codeaurora.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Abhinav Kumar Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, bjorn.andersson@linaro.org, seanpaul@chromium.org, hoegsberg@google.com, chandanu@codeaurora.org List-Id: dri-devel@lists.freedesktop.org --===============0209981672== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7lMq7vMTJT4tNk0a" Content-Disposition: inline --7lMq7vMTJT4tNk0a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 20, 2018 at 03:52:36PM -0700, Abhinav Kumar wrote: > From: "abhinavk@codeaurora.org" >=20 > Add support for Truly NT35597 panel driver used > in MSM reference platforms. >=20 > This panel driver supports both single DSI and dual DSI > modes. >=20 > However, this patch series adds support only for > dual DSI mode. Your lines are very short here. It's usually a good idea to keep the subject line short, but there's no need to wrap this early in the rest of the commit message. It's customary to use up to 72 characters. >=20 > Changes in v8: > - Remove video mode config and headers > - Remove unused macros > - Try to avoid multi-lines wherever possible > - Fix comments locations and make it concise > - Fix return points in probe function >=20 > Signed-off-by: Archit Taneja > Signed-off-by: Abhinav Kumar > --- > drivers/gpu/drm/panel/Kconfig | 7 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-truly-nt35597.c | 676 ++++++++++++++++++++++= ++++++ > 3 files changed, 684 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-truly-nt35597.c >=20 > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 6020c30..073ffa0 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -186,4 +186,11 @@ config DRM_PANEL_SITRONIX_ST7789V > Say Y here if you want to enable support for the Sitronix > ST7789V controller for 240x320 LCD panels > =20 > +config DRM_PANEL_TRULY_NT35597_WQXGA > + tristate "Truly WQXGA" > + depends on OF > + depends on DRM_MIPI_DSI > + help > + Say Y here if you want to enable support for Truly NT35597 WQXGA Dual= DSI > + Video Mode panel > endmenu > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makef= ile > index 5ccaaa9..80fd19f 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -19,3 +19,4 @@ obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) +=3D panel-seiko-= 43wvf1g.o > obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) +=3D panel-sharp-lq101r1sx01.o > obj-$(CONFIG_DRM_PANEL_SHARP_LS043T1LE01) +=3D panel-sharp-ls043t1le01.o > obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) +=3D panel-sitronix-st7789v.o > +obj-$(CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA) +=3D panel-truly-nt35597.o > diff --git a/drivers/gpu/drm/panel/panel-truly-nt35597.c b/drivers/gpu/dr= m/panel/panel-truly-nt35597.c > new file mode 100644 > index 0000000..c9e09e2 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-truly-nt35597.c > @@ -0,0 +1,676 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2018, The Linux Foundation. All rights reserved. > + */ > + > +#include > +#include > +#include > +#include > +#include > + > +#include