From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752485AbeESOAf (ORCPT ); Sat, 19 May 2018 10:00:35 -0400 Received: from smtp.domeneshop.no ([194.63.252.55]:48121 "EHLO smtp.domeneshop.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752285AbeESOAd (ORCPT ); Sat, 19 May 2018 10:00:33 -0400 Subject: Re: [PATCH 3/3] drm/tinydrm: new driver for ILI9341 display panels To: Andy Shevchenko , David Lechner Cc: dri-devel@lists.freedesktop.org, devicetree , Rob Herring , Mark Rutland , limor@ladyada.net, Nitin Patil , Linux Kernel Mailing List References: <20180515014349.26226-1-david@lechnology.com> <20180515014349.26226-4-david@lechnology.com> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= Message-ID: Date: Sat, 19 May 2018 16:00:06 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 15.05.2018 23.43, skrev Andy Shevchenko: > On Tue, May 15, 2018 at 4:43 AM, David Lechner wrote: >> This adds a new driver for display panels that use the Ilitek ILI9341 >> controller. It currently supports a single display panel, namely >> the YX240QV29-T (e.g. Adafruit 2.4" TFT). >> >> The init sequence is from the Adafruit Python library for the ILI9341 >> controller. https://github.com/adafruit/Adafruit_Python_ILI9341 > Some minor style nitpicks, otherwise LGTM > > Reviewed-by: Andy Shevchenko > >> Signed-off-by: David Lechner >> --- >> MAINTAINERS | 6 + >> drivers/gpu/drm/tinydrm/Kconfig | 10 ++ >> drivers/gpu/drm/tinydrm/Makefile | 1 + >> drivers/gpu/drm/tinydrm/ili9341.c | 239 ++++++++++++++++++++++++++++++ >> 4 files changed, 256 insertions(+) >> create mode 100644 drivers/gpu/drm/tinydrm/ili9341.c >> >> diff --git a/MAINTAINERS b/MAINTAINERS >> index bc219de9cbee..ffa099abbd79 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -4480,6 +4480,12 @@ S: Maintained >> F: drivers/gpu/drm/tinydrm/ili9225.c >> F: Documentation/devicetree/bindings/display/ilitek,ili9225.txt >> >> +DRM DRIVER FOR ILITEK ILI9341 PANELS >> +M: David Lechner >> +S: Maintained >> +F: drivers/gpu/drm/tinydrm/ili9341.c >> +F: Documentation/devicetree/bindings/display/ilitek,ili9341.txt >> + >> DRM DRIVER FOR INTEL I810 VIDEO CARDS >> S: Orphan / Obsolete >> F: drivers/gpu/drm/i810/ >> diff --git a/drivers/gpu/drm/tinydrm/Kconfig b/drivers/gpu/drm/tinydrm/Kconfig >> index 4592a5e3f20b..7a8008b0783f 100644 >> --- a/drivers/gpu/drm/tinydrm/Kconfig >> +++ b/drivers/gpu/drm/tinydrm/Kconfig >> @@ -20,6 +20,16 @@ config TINYDRM_ILI9225 >> >> If M is selected the module will be called ili9225. >> >> +config TINYDRM_ILI9341 >> + tristate "DRM support for ILI9341 display panels" >> + depends on DRM_TINYDRM && SPI > Can't we do something like > > if SPI > > ... > > endif > > ? > >> + select TINYDRM_MIPI_DBI >> + help >> + DRM driver for the following Ilitek ILI9341 panels: >> + * YX240QV29-T 2.4" 240x320 TFT (Adafruit 2.4") >> + >> + If M is selected the module will be called ili9341. >> + >> config TINYDRM_MI0283QT >> tristate "DRM support for MI0283QT" >> depends on DRM_TINYDRM && SPI >> diff --git a/drivers/gpu/drm/tinydrm/Makefile b/drivers/gpu/drm/tinydrm/Makefile >> index 49a111929724..14d99080665a 100644 >> --- a/drivers/gpu/drm/tinydrm/Makefile >> +++ b/drivers/gpu/drm/tinydrm/Makefile >> @@ -5,6 +5,7 @@ obj-$(CONFIG_TINYDRM_MIPI_DBI) += mipi-dbi.o >> >> # Displays >> obj-$(CONFIG_TINYDRM_ILI9225) += ili9225.o >> +obj-$(CONFIG_TINYDRM_ILI9341) += ili9341.o >> obj-$(CONFIG_TINYDRM_MI0283QT) += mi0283qt.o >> obj-$(CONFIG_TINYDRM_REPAPER) += repaper.o >> obj-$(CONFIG_TINYDRM_ST7586) += st7586.o >> diff --git a/drivers/gpu/drm/tinydrm/ili9341.c b/drivers/gpu/drm/tinydrm/ili9341.c >> new file mode 100644 >> index 000000000000..2ce4244a68c3 >> --- /dev/null >> +++ b/drivers/gpu/drm/tinydrm/ili9341.c >> @@ -0,0 +1,239 @@ >> +// SPDX-License-Identifier: GPL-2.0+ >> +/* >> + * DRM driver for Ilitek ILI9341 panels >> + * >> + * Copyright 2018 David Lechner >> + * >> + * Based on mi0283qt.c: >> + * Copyright 2016 Noralf Trønnes >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include >> +#include >> +#include > Can it be in order? > >> +#include >> +#include >> +#include