Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753672Ab3JJJev (ORCPT ); Thu, 10 Oct 2013 05:34:51 -0400 Received: from mo-p00-ob.rzone.de ([81.169.146.162]:37107 "EHLO mo-p00-ob.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752019Ab3JJJes convert rfc822-to-8bit (ORCPT ); Thu, 10 Oct 2013 05:34:48 -0400 X-RZG-AUTH: :JGIXVUS7cutRB/49FwqZ7WcKdUCnXG6JabOfSXKWrat+gNPrzo0= X-RZG-CLASS-ID: mo00 Subject: Re: [PATCH] omapdss: Add new panel driver for Topolly td028ttec1 LCD. Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: "Dr. H. Nikolaus Schaller" In-Reply-To: <525662F5.3090600@ti.com> Date: Thu, 10 Oct 2013 11:34:44 +0200 Cc: Marek Belisko , , , , Content-Transfer-Encoding: 8BIT Message-Id: <7FAC77D4-5E1E-4B11-B067-3A8233C69240@goldelico.com> References: <1381352915-17219-1-git-send-email-marek@goldelico.com> <525662F5.3090600@ti.com> To: Tomi Valkeinen X-Mailer: Apple Mail (2.1085) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 21123 Lines: 674 Hi Tomi, Am 10.10.2013 um 10:19 schrieb Tomi Valkeinen: > Hi, > > On 10/10/13 00:08, Marek Belisko wrote: >> For communicating with driver is used gpio bitbanging because TD028 does >> not have a standard compliant SPI interface. It is a 3-wire thing with >> direction reversal. > > Isn't that SPI_3WIRE? Maybe - but we have no complete datasheet and I don't know an official spec of a 3-wire SPI protocol to compare how 3-wire should work. And I think (but I may be wrong) that SPI_3WIRE is an optional feature of the SoC specific SPI drivers and in my understanding the OMAP has no such driver: http://lxr.free-electrons.com/source/drivers/spi/spi-omap2-mcspi.c#L874 And spi-bitbang.c hasn't either. So I would prefer to leave this as an area for optimizations for future work. Maybe we can add some more comments on this. > >> Communication with display is used only during panel enable/disable so it's >> not performance issue. >> >> Signed-off-by: Marek Belisko >> Signed-off-by: H. Nikolaus Schaller >> --- >> drivers/video/omap2/displays-new/Kconfig | 6 + >> drivers/video/omap2/displays-new/Makefile | 1 + >> .../omap2/displays-new/panel-tpo-td028ttec1.c | 537 +++++++++++++++++++++ >> include/video/omap-panel-data.h | 22 + >> 4 files changed, 566 insertions(+) >> create mode 100644 drivers/video/omap2/displays-new/panel-tpo-td028ttec1.c >> >> diff --git a/drivers/video/omap2/displays-new/Kconfig b/drivers/video/omap2/displays-new/Kconfig >> index 6c90885..3f86432 100644 >> --- a/drivers/video/omap2/displays-new/Kconfig >> +++ b/drivers/video/omap2/displays-new/Kconfig >> @@ -56,6 +56,11 @@ config DISPLAY_PANEL_SHARP_LS037V7DW01 >> help >> LCD Panel used in TI's SDP3430 and EVM boards >> >> +config DISPLAY_PANEL_TPO_TD028TTEC1 >> + tristate "TPO TD028TTEC1 LCD Panel" >> + help >> + LCD panel used by Openmoko. >> + >> config DISPLAY_PANEL_TPO_TD043MTEA1 >> tristate "TPO TD043MTEA1 LCD Panel" >> depends on SPI >> @@ -70,4 +75,5 @@ config DISPLAY_PANEL_NEC_NL8048HL11 >> This NEC NL8048HL11 panel is TFT LCD used in the >> Zoom2/3/3630 sdp boards. >> >> + > > Extra change. > >> endmenu >> diff --git a/drivers/video/omap2/displays-new/Makefile b/drivers/video/omap2/displays-new/Makefile >> index 5aeb11b..0323a8a 100644 >> --- a/drivers/video/omap2/displays-new/Makefile >> +++ b/drivers/video/omap2/displays-new/Makefile >> @@ -8,5 +8,6 @@ obj-$(CONFIG_DISPLAY_PANEL_DSI_CM) += panel-dsi-cm.o >> obj-$(CONFIG_DISPLAY_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.o >> obj-$(CONFIG_DISPLAY_PANEL_LGPHILIPS_LB035Q02) += panel-lgphilips-lb035q02.o >> obj-$(CONFIG_DISPLAY_PANEL_SHARP_LS037V7DW01) += panel-sharp-ls037v7dw01.o >> +obj-$(CONFIG_DISPLAY_PANEL_TPO_TD028TTEC1) += panel-tpo-td028ttec1.o >> obj-$(CONFIG_DISPLAY_PANEL_TPO_TD043MTEA1) += panel-tpo-td043mtea1.o >> obj-$(CONFIG_DISPLAY_PANEL_NEC_NL8048HL11) += panel-nec-nl8048hl11.o >> diff --git a/drivers/video/omap2/displays-new/panel-tpo-td028ttec1.c b/drivers/video/omap2/displays-new/panel-tpo-td028ttec1.c >> new file mode 100644 >> index 0000000..b63586e >> --- /dev/null >> +++ b/drivers/video/omap2/displays-new/panel-tpo-td028ttec1.c >> @@ -0,0 +1,537 @@ >> +/* >> + * Toppoly TD028TTEC1 panel support >> + * >> + * Copyright (C) 2008 Nokia Corporation >> + * Author: Tomi Valkeinen >> + * >> + * Neo 1973 code (jbt6k74.c): >> + * Copyright (C) 2006-2007 by OpenMoko, Inc. >> + * Author: Harald Welte >> + * >> + * Ported and adapted from Neo 1973 U-Boot by: >> + * H. Nikolaus Schaller >> + * >> + * 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