From patchwork Fri Feb 8 15:43:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruslan Bilovol X-Patchwork-Id: 2116811 Return-Path: X-Original-To: patchwork-linux-fbdev@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 757BB3FD56 for ; Fri, 8 Feb 2013 15:44:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946623Ab3BHPoB (ORCPT ); Fri, 8 Feb 2013 10:44:01 -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 Received: by mail-wg0-f54.google.com with SMTP id fm10so2999958wgb.21 for ; Fri, 08 Feb 2013 07:43:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:x-mailer :in-reply-to:references; bh=m+C+q0Uq67FbCAZjYIt/DWfVuKFVCfPtAPAmgg2zkL0=; b=XQ8rRDN7WmCPQ5DztINIHBZzEWhFjGVMBnjeQFTPswsg0GJHh2t5DPI4pK9zhFl4vJ jsfa6cWfCQp/30w+GSqvnuVcQxMJqX+dIM0M36dklcJ6sMlWs60KSlzc8V1jYWwXnm8U MlDQPtP36W380jPcPyT3YDmLZEUFOceuE8mORXSY1Uhgb37tm29N0dJd0v73xQ9s6F5K fatv/M+z+95KfClvqpuo0Df2OmfEKhQ9RzrJCBaDrWagr+D8+Gje1/ziyc8PCH4tKcV4 /SoQEaIi7NknawDXYZ5vRby9ZtKP5ybV7GAop19aNqWdzN1EqfNk5xFG1jWHgbxgPfCP HVIw== X-Received: by 10.194.119.5 with SMTP id kq5mr10592271wjb.48.1360338236191; Fri, 08 Feb 2013 07:43:56 -0800 (PST) Received: from localhost ([195.238.93.36]) by mx.google.com with ESMTPS id ge2sm14990689wib.4.2013.02.08.07.43.46 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 08 Feb 2013 07:43:55 -0800 (PST) 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-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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