From patchwork Fri Nov 30 09:26:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Zabel X-Patchwork-Id: 1824201 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3612C3FE80 for ; Fri, 30 Nov 2012 09:27:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756340Ab2K3J07 (ORCPT ); Fri, 30 Nov 2012 04:26:59 -0500 Received: from metis.ext.pengutronix.de ([92.198.50.35]:41703 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756615Ab2K3J06 (ORCPT ); Fri, 30 Nov 2012 04:26:58 -0500 Received: from pizza.hi.pengutronix.de ([2001:6f8:1178:2:ca9c:dcff:febd:f1b5]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TeMs2-0008Qr-UM; Fri, 30 Nov 2012 10:26:54 +0100 Subject: Re: [RFC v2 2/5] video: panel: Add DPI panel support From: Philipp Zabel To: Laurent Pinchart Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, Archit Taneja , Benjamin Gaignard , Bryan Wu , Inki Dae , Jesse Barker , Kyungmin Park , Marcus Lorentzon , Maxime Ripard , Ragesh Radhakrishnan , Rob Clark , Sascha Hauer , Sebastien Guiriec , Sumit Semwal , Thomas Petazzoni , Tom Gall , Tomi Valkeinen , Vikas Sajjan In-Reply-To: <1353620736-6517-3-git-send-email-laurent.pinchart@ideasonboard.com> References: <1353620736-6517-1-git-send-email-laurent.pinchart@ideasonboard.com> <1353620736-6517-3-git-send-email-laurent.pinchart@ideasonboard.com> Date: Fri, 30 Nov 2012 10:26:51 +0100 Message-ID: <1354267611.2568.83.camel@pizza.hi.pengutronix.de> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 X-SA-Exim-Connect-IP: 2001:6f8:1178:2:ca9c:dcff:febd:f1b5 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-media@vger.kernel.org Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi Laurent, Am Donnerstag, den 22.11.2012, 22:45 +0100 schrieb Laurent Pinchart: > From: Laurent Pinchart > > Signed-off-by: Laurent Pinchart > --- > drivers/video/display/Kconfig | 13 +++ > drivers/video/display/Makefile | 1 + > drivers/video/display/panel-dpi.c | 147 +++++++++++++++++++++++++++++++++++++ > include/video/panel-dpi.h | 24 ++++++ > 4 files changed, 185 insertions(+), 0 deletions(-) > create mode 100644 drivers/video/display/panel-dpi.c > create mode 100644 include/video/panel-dpi.h > > diff --git a/drivers/video/display/Kconfig b/drivers/video/display/Kconfig > index 1d533e7..0f9b990 100644 > --- a/drivers/video/display/Kconfig > +++ b/drivers/video/display/Kconfig > @@ -2,3 +2,16 @@ menuconfig DISPLAY_CORE > tristate "Display Core" > ---help--- > Support common display framework for graphics devices. > + > +if DISPLAY_CORE > + > +config DISPLAY_PANEL_DPI > + tristate "DPI (Parallel) Display Panels" > + ---help--- > + Support for simple digital (parallel) pixel interface panels. Those > + panels receive pixel data through a parallel bus and have no control > + bus. I have tried this driver together with the imx parallel-display with the added patch below for device tree support. > + If you are in doubt, say N. > + > +endif # DISPLAY_CORE > diff --git a/drivers/video/display/Makefile b/drivers/video/display/Makefile > index bd93496..47978d4 100644 > --- a/drivers/video/display/Makefile > +++ b/drivers/video/display/Makefile > @@ -1 +1,2 @@ > obj-$(CONFIG_DISPLAY_CORE) += display-core.o > +obj-$(CONFIG_DISPLAY_PANEL_DPI) += panel-dpi.o > diff --git a/drivers/video/display/panel-dpi.c b/drivers/video/display/panel-dpi.c > new file mode 100644 > index 0000000..c56197a > --- /dev/null > +++ b/drivers/video/display/panel-dpi.c > @@ -0,0 +1,147 @@ > +/* > + * DPI Display Panel > + * > + * Copyright (C) 2012 Renesas Solutions Corp. > + * > + * Contacts: Laurent Pinchart > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + */ > + > +#include > +#include > +#include > +#include > + > +#include