From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946652Ab3BHPoD (ORCPT ); Fri, 8 Feb 2013 10:44:03 -0500 Received: from mail-wg0-f54.google.com ([74.125.82.54]:42071 "EHLO mail-wg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760159Ab3BHPn6 (ORCPT ); Fri, 8 Feb 2013 10:43:58 -0500 From: Ruslan Bilovol To: andi@etezian.org, tomi.valkeinen@ti.com, FlorianSchandinat@gmx.de, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v2 1/1] OMAP4: DSS: Add panel for Blaze Tablet boards Date: Fri, 8 Feb 2013 17:43:40 +0200 Message-Id: <1360338220-12753-2-git-send-email-ruslan.bilovol@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1360338220-12753-1-git-send-email-ruslan.bilovol@ti.com> References: <1360338220-12753-1-git-send-email-ruslan.bilovol@ti.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tomi Valkeinen TC358765 is DSI-to-LVDS transmitter from Toshiba, used in OMAP44XX Blaze Tablet and Blaze Tablet2 boards. Signed-off-by: Dan Murphy Signed-off-by: Sergiy Kibrik Signed-off-by: Volodymyr Riazantsev Signed-off-by: Ruslan Bilovol --- drivers/video/omap2/displays/Kconfig | 15 + drivers/video/omap2/displays/Makefile | 1 + drivers/video/omap2/displays/panel-tc358765.c | 1000 +++++++++++++++++++++++++ drivers/video/omap2/displays/panel-tc358765.h | 170 +++++ include/video/omap-panel-tc358765.h | 53 ++ 5 files changed, 1239 insertions(+) create mode 100644 drivers/video/omap2/displays/panel-tc358765.c create mode 100644 drivers/video/omap2/displays/panel-tc358765.h create mode 100644 include/video/omap-panel-tc358765.h diff --git a/drivers/video/omap2/displays/Kconfig b/drivers/video/omap2/displays/Kconfig index c3853c9..c6ab261 100644 --- a/drivers/video/omap2/displays/Kconfig +++ b/drivers/video/omap2/displays/Kconfig @@ -72,4 +72,19 @@ config PANEL_N8X0 depends on BACKLIGHT_CLASS_DEVICE help This is the LCD panel used on Nokia N8x0 + +config PANEL_TC358765 + tristate "Toshiba TC358765 DSI-2-LVDS bridge" + depends on OMAP2_DSS_DSI && I2C + select BACKLIGHT_CLASS_DEVICE + help + Toshiba TC358765 DSI-2-LVDS chip with 1024x768 panel, + which can be found in OMAP4-based Blaze Tablet boards + and some other boards. + +config TC358765_DEBUG + bool "Toshiba TC358765 DSI-2-LVDS chip debug" + depends on PANEL_TC358765 && DEBUG_FS + help + Support of TC358765 DSI-2-LVDS chip register access via debugfs endmenu diff --git a/drivers/video/omap2/displays/Makefile b/drivers/video/omap2/displays/Makefile index 58a5176..b9f2ab6 100644 --- a/drivers/video/omap2/displays/Makefile +++ b/drivers/video/omap2/displays/Makefile @@ -9,3 +9,4 @@ obj-$(CONFIG_PANEL_PICODLP) += panel-picodlp.o obj-$(CONFIG_PANEL_TPO_TD043MTEA1) += panel-tpo-td043mtea1.o obj-$(CONFIG_PANEL_ACX565AKM) += panel-acx565akm.o obj-$(CONFIG_PANEL_N8X0) += panel-n8x0.o +obj-$(CONFIG_PANEL_TC358765) += panel-tc358765.o diff --git a/drivers/video/omap2/displays/panel-tc358765.c b/drivers/video/omap2/displays/panel-tc358765.c new file mode 100644 index 0000000..7e4f9f4 --- /dev/null +++ b/drivers/video/omap2/displays/panel-tc358765.c @@ -0,0 +1,1000 @@ +/* + * Toshiba TC358765 DSI-to-LVDS chip driver + * + * Copyright (C) Texas Instruments + * Author: Tomi Valkeinen (3.0) + * Author: Sergii Kibrik (3.4) + * Author: Ruslan Bilovol (3.8+) + * + * Based on original version from Jerry Alexander + * + * 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. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include