From patchwork Thu Feb 7 14:40:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruslan Bilovol X-Patchwork-Id: 2111261 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 B5BF4E00DA for ; Thu, 7 Feb 2013 14:41:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932093Ab3BGOlO (ORCPT ); Thu, 7 Feb 2013 09:41:14 -0500 Received: from mail-we0-f174.google.com ([74.125.82.174]:38524 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758208Ab3BGOlL (ORCPT ); Thu, 7 Feb 2013 09:41:11 -0500 Received: by mail-we0-f174.google.com with SMTP id r6so2172311wey.19 for ; Thu, 07 Feb 2013 06:41:08 -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=mRin2iRZNUntdN3tRx2KWXS96S6XsXZ+giz8hSsuUDE=; b=yyg1oQe4K32Cf14E8urHw8OPFGspLTEc71ztkqRePzeawYQWM4KdskZwCMR/g/KrO6 LE8bJhn//YEtdSHq6JE4jqQX4SGn12Gke271zagcDe5ZfKzkOpxhGCV7s49pQdMhEpto DFv8zwBZmoXJxwByhyrYJZelRp/530/ussblAiBbC8/DVnKNnrdQekAwiNLvTzPPdPqj 5CYeIhj3uxgDqeZA5hxsfXgomQl7q5DGUiVeiLCUtdFbCnw6qdLX3XmMulMDAxcJWItB AidVsM2bOXkSM+o+92V2SrB+y5X1JKTZxooXSPKKZBlO7laxkAeSN9nIbmydwRqBlE8v 4BWw== X-Received: by 10.180.84.162 with SMTP id a2mr3270745wiz.14.1360248058972; Thu, 07 Feb 2013 06:40:58 -0800 (PST) Received: from localhost ([195.238.93.36]) by mx.google.com with ESMTPS id t7sm2289931wiy.2.2013.02.07.06.40.56 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 07 Feb 2013 06:40:57 -0800 (PST) From: Ruslan Bilovol To: tomi.valkeinen@ti.com, FlorianSchandinat@gmx.de, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH 1/1] OMAP4: DSS: Add panel for Blaze Tablet boards Date: Thu, 7 Feb 2013 16:40:50 +0200 Message-Id: <1360248051-16541-2-git-send-email-ruslan.bilovol@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1360248051-16541-1-git-send-email-ruslan.bilovol@ti.com> References: <1360248051-16541-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 | 1001 +++++++++++++++++++++++++ drivers/video/omap2/displays/panel-tc358765.h | 170 +++++ include/video/omap-panel-tc358765.h | 53 ++ 5 files changed, 1240 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..e9d7e96 --- /dev/null +++ b/drivers/video/omap2/displays/panel-tc358765.c @@ -0,0 +1,1001 @@ +/* + * 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