From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756679AbeDZPHS (ORCPT ); Thu, 26 Apr 2018 11:07:18 -0400 Received: from mail-wr0-f170.google.com ([209.85.128.170]:44173 "EHLO mail-wr0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755871AbeDZPHQ (ORCPT ); Thu, 26 Apr 2018 11:07:16 -0400 X-Google-Smtp-Source: AB8JxZqfk4ptSmAFr7MIK33uqavP9VF+psN+f7BtUirwKpQksA9LDJreSmT9v7ofTYBcLJKbeWuwsA== Date: Thu, 26 Apr 2018 17:07:12 +0200 From: Thierry Reding To: Maxime Ripard Cc: Chen-Yu Tsai , Mark Rutland , Rob Herring , Frank Rowand , dri-devel@lists.freedesktop.org, Gustavo Padovan , Daniel Vetter , Maarten Lankhorst , Sean Paul , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Petazzoni Subject: Re: [PATCH v4 6/8] drm/panel: Add Ilitek ILI9881c panel driver Message-ID: <20180426150712.GF31888@ulmo> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CXFpZVxO6m2Ol4tQ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --CXFpZVxO6m2Ol4tQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 04, 2018 at 11:57:14AM +0200, Maxime Ripard wrote: > The LHR050H41 panel is the panel shipped with the BananaPi M2-Magic, and = is > based on the Ilitek ILI9881c Controller. Add a driver for it, modelled > after the other Ilitek controller drivers. >=20 > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/panel/Kconfig | 9 +- > drivers/gpu/drm/panel/Makefile | 1 +- > drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 489 +++++++++++++++++++- > 3 files changed, 499 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c >=20 > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 25682ff3449a..6020c30a33b3 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -46,6 +46,15 @@ config DRM_PANEL_ILITEK_IL9322 > Say Y here if you want to enable support for Ilitek IL9322 > QVGA (320x240) RGB, YUV and ITU-T BT.656 panels. > =20 > +config DRM_PANEL_ILITEK_ILI9881C > + tristate "Ilitek ILI9881C-based panels" > + depends on OF > + depends on DRM_MIPI_DSI > + depends on BACKLIGHT_CLASS_DEVICE > + help > + Say Y if you want to enable support for panels based on the > + Ilitek ILI9881c controller. > + > config DRM_PANEL_INNOLUX_P079ZCA > tristate "Innolux P079ZCA panel" > depends on OF > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makef= ile > index f26efc11d746..5ccaaa9d13af 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -3,6 +3,7 @@ obj-$(CONFIG_DRM_PANEL_ARM_VERSATILE) +=3D panel-arm-vers= atile.o > obj-$(CONFIG_DRM_PANEL_LVDS) +=3D panel-lvds.o > obj-$(CONFIG_DRM_PANEL_SIMPLE) +=3D panel-simple.o > obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) +=3D panel-ilitek-ili9322.o > +obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) +=3D panel-ilitek-ili9881c.o > obj-$(CONFIG_DRM_PANEL_INNOLUX_P079ZCA) +=3D panel-innolux-p079zca.o > obj-$(CONFIG_DRM_PANEL_JDI_LT070ME05000) +=3D panel-jdi-lt070me05000.o > obj-$(CONFIG_DRM_PANEL_LG_LG4573) +=3D panel-lg-lg4573.o > diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/= drm/panel/panel-ilitek-ili9881c.c > new file mode 100644 > index 000000000000..8992a6431c30 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c > @@ -0,0 +1,489 @@ > +// SPDX-License-Identifier: GPL-2.0+ This isn't a valid SPDX license specifier. The module license is GPL v2, so the corresponding specifier would be: GPL-2.0-only. > +/* > + * Copyright (C) 2017, Free Electrons -2018? > + * Author: Maxime Ripard No need for this, it's already in MODULE_AUTHOR. > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > + > +#include > +#include > +#include > + > +#include