From patchwork Wed Oct 9 21:08:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Belisko X-Patchwork-Id: 3011861 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 47B65BF924 for ; Wed, 9 Oct 2013 21:09:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 95C69202E6 for ; Wed, 9 Oct 2013 21:09:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ADADB2026F for ; Wed, 9 Oct 2013 21:09:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756095Ab3JIVIs (ORCPT ); Wed, 9 Oct 2013 17:08:48 -0400 Received: from mail-ee0-f42.google.com ([74.125.83.42]:48843 "EHLO mail-ee0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753980Ab3JIVIq (ORCPT ); Wed, 9 Oct 2013 17:08:46 -0400 Received: by mail-ee0-f42.google.com with SMTP id b45so703681eek.15 for ; Wed, 09 Oct 2013 14:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=3mVZy91PWpl6BOFXZzAmGlT9sSm29Jub/fc0VKwKp0I=; b=CSJHN84wm0v80qGrTbT6gKMDyG+dwJ0R5r5bLokgcWA3OH3SgZCCujQBnYtvYUWZk0 2FlHvD73cl5Y4MBgycZ1pQRn5Drq1NhlQsoXmNEOhoOasOGqe5H1I+ivkJ1Z6I0vqX9I 2QeJtOhlEkqPnUg4hr8LQLHzKOn5+w7YR0RzaugO/q1jRoLRpLWLmbhT6dunj4mNQdam swmQ8SeyW/LpDXyvwYS3gGwNMaORAlWVYY1CK/vAfQVSSmAB9Idv3OQkvMRk7QU/EUFZ 2mM2fuHlaWgs08NmuZJsc2S0VHo3ihHkQ5xUobBv7/7K1KIsJ+W8TKD6hwLel8mDQfkI usnw== X-Received: by 10.15.100.198 with SMTP id bn46mr14215959eeb.11.1381352924253; Wed, 09 Oct 2013 14:08:44 -0700 (PDT) Received: from nb.lan (ip-85.162.28.167.o2inet.sk. [85.162.28.167]) by mx.google.com with ESMTPSA id b45sm92952238eef.4.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 09 Oct 2013 14:08:43 -0700 (PDT) From: Marek Belisko To: tomi.valkeinen@ti.com, plagnioj@jcrosoft.com Cc: linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, Marek Belisko , "H. Nikolaus Schaller" Subject: [PATCH] omapdss: Add new panel driver for Topolly td028ttec1 LCD. Date: Wed, 9 Oct 2013 23:08:35 +0200 Message-Id: <1381352915-17219-1-git-send-email-marek@goldelico.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. 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. + 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