From patchwork Thu Nov 22 21:45:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1790161 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id B1E47DF24C for ; Thu, 22 Nov 2012 21:44:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932602Ab2KVVov (ORCPT ); Thu, 22 Nov 2012 16:44:51 -0500 Received: from perceval.ideasonboard.com ([95.142.166.194]:38073 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932604Ab2KVVos (ORCPT ); Thu, 22 Nov 2012 16:44:48 -0500 Received: from avalon.ideasonboard.com (unknown [91.178.153.41]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D3E7B35A8E; Thu, 22 Nov 2012 22:44:43 +0100 (CET) From: Laurent Pinchart To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org, Archit Taneja , Benjamin Gaignard , Bryan Wu , Inki Dae , Jesse Barker , Kyungmin Park , Marcus Lorentzon , Maxime Ripard , Philipp Zabel , Ragesh Radhakrishnan , Rob Clark , Sascha Hauer , Sebastien Guiriec , Sumit Semwal , Thomas Petazzoni , Tom Gall , Tomi Valkeinen , Vikas Sajjan Subject: [RFC v2 5/5] video: panel: Add R61517 panel support Date: Thu, 22 Nov 2012 22:45:36 +0100 Message-Id: <1353620736-6517-6-git-send-email-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1353620736-6517-1-git-send-email-laurent.pinchart@ideasonboard.com> References: <1353620736-6517-1-git-send-email-laurent.pinchart@ideasonboard.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org From: Laurent Pinchart The R61517 is a MIPI DBI panel controller from Renesas. Signed-off-by: Laurent Pinchart --- drivers/video/display/Kconfig | 9 + drivers/video/display/Makefile | 1 + drivers/video/display/panel-r61517.c | 447 ++++++++++++++++++++++++++++++++++ include/video/panel-r61517.h | 28 ++ 4 files changed, 485 insertions(+), 0 deletions(-) create mode 100644 drivers/video/display/panel-r61517.c create mode 100644 include/video/panel-r61517.h diff --git a/drivers/video/display/Kconfig b/drivers/video/display/Kconfig index c88999c..13b6aaf 100644 --- a/drivers/video/display/Kconfig +++ b/drivers/video/display/Kconfig @@ -27,4 +27,13 @@ config DISPLAY_PANEL_R61505 If you are in doubt, say N. +config DISPLAY_PANEL_R61517 + tristate "Renesas R61517-based Display Panel" + select DISPLAY_MIPI_DBI + ---help--- + Support panels based on the Renesas R61517 panel controller. + Those panels are controlled through a MIPI DBI interface. + + If you are in doubt, say N. + endif # DISPLAY_CORE diff --git a/drivers/video/display/Makefile b/drivers/video/display/Makefile index 4c68465..482bec7 100644 --- a/drivers/video/display/Makefile +++ b/drivers/video/display/Makefile @@ -2,3 +2,4 @@ obj-$(CONFIG_DISPLAY_CORE) += display-core.o obj-$(CONFIG_DISPLAY_MIPI_DBI) += mipi-dbi-bus.o obj-$(CONFIG_DISPLAY_PANEL_DPI) += panel-dpi.o obj-$(CONFIG_DISPLAY_PANEL_R61505) += panel-r61505.o +obj-$(CONFIG_DISPLAY_PANEL_R61517) += panel-r61517.o diff --git a/drivers/video/display/panel-r61517.c b/drivers/video/display/panel-r61517.c new file mode 100644 index 0000000..b4dced4 --- /dev/null +++ b/drivers/video/display/panel-r61517.c @@ -0,0 +1,447 @@ +/* + * Renesas R61517-based Display Panels + * + * Copyright (C) 2012 Renesas Solutions Corp. + * Based on KFR2R09 LCD panel support + * Copyright (C) 2009 Magnus Damm + * Register settings based on the out-of-tree t33fb.c driver + * Copyright (C) 2008 Lineo Solutions, Inc. + * + * 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 +#include + +#include