From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753296AbdHKQkx (ORCPT ); Fri, 11 Aug 2017 12:40:53 -0400 Received: from smtp.domeneshop.no ([194.63.252.55]:42257 "EHLO smtp.domeneshop.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752723AbdHKQku (ORCPT ); Fri, 11 Aug 2017 12:40:50 -0400 Subject: Re: [PATCH v4 3/5] drm/tinydrm: add support for LEGO MINDSTORMS EV3 LCD From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= To: David Lechner , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Mark Rutland , Kevin Hilman , Sekhar Nori , linux-kernel@vger.kernel.org, Rob Herring , Laurent Pinchart , linux-arm-kernel@lists.infradead.org References: <1502127581-10517-1-git-send-email-david@lechnology.com> <1502127581-10517-4-git-send-email-david@lechnology.com> Message-ID: <819b0b8b-2a4e-7fa2-8315-935b311e82f4@tronnes.org> Date: Fri, 11 Aug 2017 18:40:41 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 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 09.08.2017 19.59, skrev Noralf Trønnes: > > Den 07.08.2017 19.39, skrev David Lechner: >> LEGO MINDSTORMS EV3 has an LCD with a ST7586 controller. This adds a new >> module for the ST7586 controller with parameters for the LEGO MINDSTORMS >> EV3 LCD display. >> >> Signed-off-by: David Lechner >> --- > > This looks good, even I understand the pixel packing now :-) > Now we wait for the DT maintainers to have their say. > > Reviewed-by: Noralf Trønnes > Thanks, applied to drm-misc together with dt binding. Noralf. >> v4 changes: >> * correct order for MAINTAINERS entry >> * Drop code not used by LEGO EV3 (regulator, backlight, suspend/resume) >> * Make gpios required >> * Use lookup table for pixel packing algorithm >> * Don't modify clip when used as function parameter >> * Use roundup/rounddown macros >> >> >> MAINTAINERS | 6 + >> drivers/gpu/drm/tinydrm/Kconfig | 10 + >> drivers/gpu/drm/tinydrm/Makefile | 1 + >> drivers/gpu/drm/tinydrm/st7586.c | 428 >> +++++++++++++++++++++++++++++++++++++++ >> 4 files changed, 445 insertions(+) >> create mode 100644 drivers/gpu/drm/tinydrm/st7586.c >> >> diff --git a/MAINTAINERS b/MAINTAINERS >> index a1e772e..19ca3e6 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -4380,6 +4380,12 @@ S: Orphan / Obsolete >> F: drivers/gpu/drm/sis/ >> F: include/uapi/drm/sis_drm.h >> +DRM DRIVER FOR SITRONIX ST7586 PANELS >> +M: David Lechner >> +S: Maintained >> +F: drivers/gpu/drm/tinydrm/st7586.c >> +F: Documentation/devicetree/bindings/display/st7586.txt >> + >> DRM DRIVER FOR TDFX VIDEO CARDS >> S: Orphan / Obsolete >> F: drivers/gpu/drm/tdfx/ >> diff --git a/drivers/gpu/drm/tinydrm/Kconfig >> b/drivers/gpu/drm/tinydrm/Kconfig >> index f17c3ca..2e790e7 100644 >> --- a/drivers/gpu/drm/tinydrm/Kconfig >> +++ b/drivers/gpu/drm/tinydrm/Kconfig >> @@ -32,3 +32,13 @@ config TINYDRM_REPAPER >> 2.71" TFT EPD Panel (E2271CS021) >> If M is selected the module will be called repaper. >> + >> +config TINYDRM_ST7586 >> + tristate "DRM support for Sitronix ST7586 display panels" >> + depends on DRM_TINYDRM && SPI >> + select TINYDRM_MIPI_DBI >> + help >> + DRM driver for the following Sitronix ST7586 panels: >> + * LEGO MINDSTORMS EV3 >> + >> + If M is selected the module will be called st7586. >> diff --git a/drivers/gpu/drm/tinydrm/Makefile >> b/drivers/gpu/drm/tinydrm/Makefile >> index 95bb4d4..0c184bd 100644 >> --- a/drivers/gpu/drm/tinydrm/Makefile >> +++ b/drivers/gpu/drm/tinydrm/Makefile >> @@ -6,3 +6,4 @@ obj-$(CONFIG_TINYDRM_MIPI_DBI) += mipi-dbi.o >> # Displays >> 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/st7586.c >> b/drivers/gpu/drm/tinydrm/st7586.c >> new file mode 100644 >> index 0000000..1b39d3f >> --- /dev/null >> +++ b/drivers/gpu/drm/tinydrm/st7586.c >> @@ -0,0 +1,428 @@ >> +/* >> + * DRM driver for Sitronix ST7586 panels >> + * >> + * Copyright 2017 David Lechner >> + * >> + * This program is free software; you can redistribute it and/or modify >> + * it under the terms of the GNU General Public License as published by >> + * the Free Software Foundation; either version 2 of the License, or >> + * (at your option) any later version. >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include