From patchwork Tue Sep 24 14:23:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 2934041 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A5E0F9F6D3 for ; Tue, 24 Sep 2013 14:24:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EECC020379 for ; Tue, 24 Sep 2013 14:24:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DBE2A20374 for ; Tue, 24 Sep 2013 14:23:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754040Ab3IXOXv (ORCPT ); Tue, 24 Sep 2013 10:23:51 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:11579 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754022Ab3IXOXt (ORCPT ); Tue, 24 Sep 2013 10:23:49 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MTM00C15VZJYC40@mailout2.w1.samsung.com>; Tue, 24 Sep 2013 15:23:47 +0100 (BST) X-AuditID: cbfec7f4-b7f0a6d000007b1b-f7-5241a073f2e2 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id D9.7B.31515.370A1425; Tue, 24 Sep 2013 15:23:47 +0100 (BST) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MTM005Q2VYZIY30@eusync2.samsung.com>; Tue, 24 Sep 2013 15:23:47 +0100 (BST) From: Andrzej Hajda To: Laurent Pinchart Cc: Andrzej Hajda , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, Kyungmin Park , Donghwa Lee , Inki Dae , Joongmock Shin , Eunchul Kim , Tomasz Figa Subject: [RFC PATCH 3/4] panel-s6e8aa0: add driver Date: Tue, 24 Sep 2013 16:23:15 +0200 Message-id: <1380032596-18612-4-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.1.2 In-reply-to: <1380032596-18612-1-git-send-email-a.hajda@samsung.com> References: <1380032596-18612-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplluLIzCtJLcpLzFFi42I5/e/4Fd3iBY5BBk2tmha31p1jtXh5cDa7 xfXzdhZXvr5ns5h0fwKLxe4tc5ktzja9YbeY2HSHxeJE3wdWi54NW1kt1s94zeLA7TG7Yyar x/3u40wefVtWMXp83iQXwBLFZZOSmpNZllqkb5fAlTG9ZzNrwYbDTBXvTqxib2C828TUxcjJ ISFgIvFjXzcbhC0mceHeeiCbi0NIYCmjxOyDf5hBEkICfUwSv49wgdhsApoSfzffBCri4BAR cJB4t9YBpJ5Z4C2TxPrbR8CGCgsYSey4OJURxGYRUJVo+3EYbA6vgLNE94UpLBDLFCR+Xj4B tphTwEVi8tUfTBC7nCUOrN3AOIGRdwEjwypG0dTS5ILipPRcQ73ixNzi0rx0veT83E2MkKD7 soNx8TGrQ4wCHIxKPLwXExyChFgTy4orcw8xSnAwK4nwatY6BgnxpiRWVqUW5ccXleakFh9i ZOLglGpgNHk8nelsuLyoqmZbN9PuVwaPfxYt22pxfK28ytpzC+5l7GbIzrl+OOnIld2fC0q4 nQ4nOm6q/3Xivx7PWZZzq5P2zn1twLCZOTl076LDs+cnOzpJXuUuf7FY6fJkl5SbZy85HTb4 cWfPPw+zoKeLTcXDtCrMnrWmXyno6YsOXP5D0pBnnv9SVSWW4oxEQy3mouJEABehj6sYAgAA Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 The patch adds mipi-dsi-bus slave driver for s6e8aa0 familiy panels. Signed-off-by: Donghwa Lee Signed-off-by: Inki Dae Signed-off-by: Joongmock Shin Signed-off-by: Eunchul Kim Signed-off-by: Tomasz Figa Signed-off-by: Andrzej Hajda Signed-off-by: Kyungmin Park --- drivers/video/display/Kconfig | 6 + drivers/video/display/Makefile | 1 + drivers/video/display/panel-s6e8aa0.c | 1286 +++++++++++++++++++++++++++++++++ include/video/panel-s6e8aa0.h | 42 ++ 4 files changed, 1335 insertions(+) create mode 100644 drivers/video/display/panel-s6e8aa0.c create mode 100644 include/video/panel-s6e8aa0.h diff --git a/drivers/video/display/Kconfig b/drivers/video/display/Kconfig index 0a1e90b..9a9b7e9 100644 --- a/drivers/video/display/Kconfig +++ b/drivers/video/display/Kconfig @@ -67,4 +67,10 @@ config DISPLAY_VGA_DAC If you are in doubt, say N. To compile this driver as a module, choose M here: the module will be called vga-dac. +config DISPLAY_PANEL_S6E8AA0 + tristate "S6E8AA0 DSI video mode panel" + select BACKLIGHT_CLASS_DEVICE + select DISPLAY_MIPI_DSI + select VIDEOMODE_HELPERS + endif # DISPLAY_CORE diff --git a/drivers/video/display/Makefile b/drivers/video/display/Makefile index 2fd84f5..45225e1 100644 --- a/drivers/video/display/Makefile +++ b/drivers/video/display/Makefile @@ -9,3 +9,4 @@ obj-$(CONFIG_DISPLAY_PANEL_DPI) += panel-dpi.o obj-$(CONFIG_DISPLAY_PANEL_R61505) += panel-r61505.o obj-$(CONFIG_DISPLAY_PANEL_R61517) += panel-r61517.o obj-$(CONFIG_DISPLAY_VGA_DAC) += vga-dac.o +obj-$(CONFIG_DISPLAY_PANEL_S6E8AA0) += panel-s6e8aa0.o diff --git a/drivers/video/display/panel-s6e8aa0.c b/drivers/video/display/panel-s6e8aa0.c new file mode 100644 index 0000000..99246da --- /dev/null +++ b/drivers/video/display/panel-s6e8aa0.c @@ -0,0 +1,1286 @@ +/* linux/drivers/video/s6e8aa0.c + * + * MIPI-DSI based s6e8aa0 AMOLED lcd 5.3 inch panel driver. + * + * Inki Dae, + * Donghwa Lee, + * Joongmock Shin + * Eunchul Kim + * Tomasz Figa + * + * 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. +*/ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include