Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.4 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3776BC433DB for ; Fri, 12 Feb 2021 07:13:57 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CD3E964DBA for ; Fri, 12 Feb 2021 07:13:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD3E964DBA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1FC236E524; Fri, 12 Feb 2021 07:13:56 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id B95B26E524 for ; Fri, 12 Feb 2021 07:13:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 0F508AE05; Fri, 12 Feb 2021 07:13:53 +0000 (UTC) To: Daniel Mack , airlied@linux.ie, daniel@ffwll.ch References: <20210211095058.473776-1-daniel@zonque.org> From: Thomas Zimmermann Subject: Re: [PATCH] drm/tiny: add driver for newhaven,1.8-128160EF Message-ID: <00f588fe-3820-7754-4e24-5789795e21e4@suse.de> Date: Fri, 12 Feb 2021 08:13:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210211095058.473776-1-daniel@zonque.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh+dt@kernel.org, dri-devel@lists.freedesktop.org Content-Type: multipart/mixed; boundary="===============1072564745==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============1072564745== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SJ2AYeW64y1qD572AZ2FfttAiNIdT8wGg" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --SJ2AYeW64y1qD572AZ2FfttAiNIdT8wGg Content-Type: multipart/mixed; boundary="exorrfJe5DfvtIMH1SXC9V738uA4S4cUj"; protected-headers="v1" From: Thomas Zimmermann To: Daniel Mack , airlied@linux.ie, daniel@ffwll.ch Cc: robh+dt@kernel.org, dri-devel@lists.freedesktop.org Message-ID: <00f588fe-3820-7754-4e24-5789795e21e4@suse.de> Subject: Re: [PATCH] drm/tiny: add driver for newhaven,1.8-128160EF References: <20210211095058.473776-1-daniel@zonque.org> In-Reply-To: <20210211095058.473776-1-daniel@zonque.org> --exorrfJe5DfvtIMH1SXC9V738uA4S4cUj Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi thanks for the driver. I only have some minor comments Am 11.02.21 um 10:50 schrieb Daniel Mack: > This patch adds support for Newhaven's NHD-1.8-128160EF display, featur= ing > an Ilitek ILI9163 controller. >=20 > Signed-off-by: Daniel Mack > --- > .../bindings/display/ilitek,ili9163.txt | 27 +++ > drivers/gpu/drm/tiny/Kconfig | 13 + > drivers/gpu/drm/tiny/Makefile | 1 + > drivers/gpu/drm/tiny/ili9163.c | 224 +++++++++++++++++= + > 4 files changed, 265 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/ilitek,i= li9163.txt > create mode 100644 drivers/gpu/drm/tiny/ili9163.c >=20 > diff --git a/Documentation/devicetree/bindings/display/ilitek,ili9163.t= xt b/Documentation/devicetree/bindings/display/ilitek,ili9163.txt > new file mode 100644 > index 0000000000000..fee119991c14e > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/ilitek,ili9163.txt > @@ -0,0 +1,27 @@ > +Ilitek ILI9163 display panels > + > +This binding is for display panels using an Ilitek ILI9163 controller = in SPI > +mode. > + > +Required properties: > +- compatible: "newhaven,1.8-128160EF", "ilitek,ili9163" > +- dc-gpios: D/C pin > +- reset-gpios: Reset pin > + > +The node for this driver must be a child node of a SPI controller, hen= ce > +all mandatory properties described in ../spi/spi-bus.txt must be speci= fied. > + > +Optional properties: > +- rotation: panel rotation in degrees counter clockwise (0,90,180,270)= > +- backlight: phandle of the backlight device attached to the panel > + > +Example: > + display@0{ > + compatible =3D "newhaven,1.8-128160EF", "ilitek,ili9163" > + reg =3D <0>; > + spi-max-frequency =3D <32000000>; > + dc-gpios =3D <&gpio0 9 GPIO_ACTIVE_HIGH>; > + reset-gpios =3D <&gpio0 8 GPIO_ACTIVE_HIGH>; > + rotation =3D <270>; > + backlight =3D <&backlight>; > + }; > diff --git a/drivers/gpu/drm/tiny/Kconfig b/drivers/gpu/drm/tiny/Kconfi= g > index 2b6414f0fa759..9de0c0eeea6f5 100644 > --- a/drivers/gpu/drm/tiny/Kconfig > +++ b/drivers/gpu/drm/tiny/Kconfig > @@ -41,6 +41,19 @@ config TINYDRM_HX8357D > =20 > If M is selected the module will be called hx8357d. > =20 > +config TINYDRM_ILI9163 > + tristate "DRM support for ILI9163 display panels" > + depends on DRM && SPI > + select DRM_KMS_HELPER > + select DRM_KMS_CMA_HELPER > + select DRM_MIPI_DBI > + select BACKLIGHT_CLASS_DEVICE > + help > + DRM driver for the following Ilitek ILI9163 panels: > + * NHD-1.8-128160EF 128x160 TFT > + > + If M is selected the module will be called ili9163. > + > config TINYDRM_ILI9225 > tristate "DRM support for ILI9225 display panels" > depends on DRM && SPI > diff --git a/drivers/gpu/drm/tiny/Makefile b/drivers/gpu/drm/tiny/Makef= ile > index 6ae4e9e5a35fb..78016b2ed11b5 100644 > --- a/drivers/gpu/drm/tiny/Makefile > +++ b/drivers/gpu/drm/tiny/Makefile > @@ -3,6 +3,7 @@ > obj-$(CONFIG_DRM_CIRRUS_QEMU) +=3D cirrus.o > obj-$(CONFIG_DRM_GM12U320) +=3D gm12u320.o > obj-$(CONFIG_TINYDRM_HX8357D) +=3D hx8357d.o > +obj-$(CONFIG_TINYDRM_ILI9163) +=3D ili9163.o > obj-$(CONFIG_TINYDRM_ILI9225) +=3D ili9225.o > obj-$(CONFIG_TINYDRM_ILI9341) +=3D ili9341.o > obj-$(CONFIG_TINYDRM_ILI9486) +=3D ili9486.o > diff --git a/drivers/gpu/drm/tiny/ili9163.c b/drivers/gpu/drm/tiny/ili9= 163.c > new file mode 100644 > index 0000000000000..9f90ea9556c4d > --- /dev/null > +++ b/drivers/gpu/drm/tiny/ili9163.c > @@ -0,0 +1,224 @@ > +// SPDX-License-Identifier: GPL-2.0+ > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include