From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from perceval.ideasonboard.com ([95.142.166.194]:54863 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031460Ab3HIXC2 (ORCPT ); Fri, 9 Aug 2013 19:02:28 -0400 From: Laurent Pinchart To: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH/RFC v3 09/19] video: panel: Add DPI panel support Date: Sat, 10 Aug 2013 01:03:08 +0200 Message-Id: <1376089398-13322-10-git-send-email-laurent.pinchart+renesas@ideasonboard.com> In-Reply-To: <1376089398-13322-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> References: <1376089398-13322-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Sender: linux-media-owner@vger.kernel.org List-ID: The Display Pixel Interface is a configurable-width video-only unidirectional parallel bus standard that defines video formats and signaling for panel devices. This driver implements support for simple DPI panels with no runtime configuration capabilities (GPIOs- and/or regulators-based control can be implemented later when needed) and exposes it as a display entity. The panel native video mode is passed to the driver through platform data or device tree properties. Signed-off-by: Laurent Pinchart --- drivers/video/display/Kconfig | 10 ++ drivers/video/display/Makefile | 1 + drivers/video/display/panel-dpi.c | 207 ++++++++++++++++++++++++++++++++++++++ include/video/panel-dpi.h | 24 +++++ 4 files changed, 242 insertions(+) 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 f7532c1..bce09d6 100644 --- a/drivers/video/display/Kconfig +++ b/drivers/video/display/Kconfig @@ -9,4 +9,14 @@ config DISPLAY_MIPI_DBI tristate default n +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. + + If you are in doubt, say N. To compile this driver as a module, choose + M here; the module will be called panel-dpi. + endif # DISPLAY_CORE diff --git a/drivers/video/display/Makefile b/drivers/video/display/Makefile index 59022d2..31c017b 100644 --- a/drivers/video/display/Makefile +++ b/drivers/video/display/Makefile @@ -2,3 +2,4 @@ display-y := display-core.o \ display-notifier.o obj-$(CONFIG_DISPLAY_CORE) += display.o obj-$(CONFIG_DISPLAY_MIPI_DBI) += mipi-dbi-bus.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..b1ecf6d --- /dev/null +++ b/drivers/video/display/panel-dpi.c @@ -0,0 +1,207 @@ +/* + * 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 + +#include