From patchwork Wed Jan 22 14:35:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 3523631 Return-Path: X-Original-To: patchwork-dri-devel@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 9F9A5C02DD for ; Wed, 22 Jan 2014 14:37:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4B22F20117 for ; Wed, 22 Jan 2014 14:37:27 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id B4DDC20170 for ; Wed, 22 Jan 2014 14:37:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0214DFBA69 for ; Wed, 22 Jan 2014 06:37:21 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B785FBA61 for ; Wed, 22 Jan 2014 06:36:20 -0800 (PST) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZT004A04KJJT70@mailout1.w1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 22 Jan 2014 14:36:19 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-48-52dfd76399fa Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 93.E9.23059.367DFD25; Wed, 22 Jan 2014 14:36:19 +0000 (GMT) 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 <0MZT00JHK4K8L3B0@eusync2.samsung.com>; Wed, 22 Jan 2014 14:36:19 +0000 (GMT) From: Andrzej Hajda To: dri-devel@lists.freedesktop.org Subject: [RFC PATCH 6/9] drm/panel: add s6e8aa0 driver Date: Wed, 22 Jan 2014 15:35:32 +0100 Message-id: <1390401336-22915-7-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1390401336-22915-1-git-send-email-a.hajda@samsung.com> References: <1390401336-22915-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHLMWRmVeSWpSXmKPExsVy+t/xK7rJ1+8HGTS+ZbG4te4cq8X8I0Di ytf3bBb9bxayWhz4s4PR4tyrlYwWk+5PYLE42/SG3WLG+X1MFkuvX2SymDB9LYtF694j7Bbr Z7xmsfi5ax6LA5/HmnlrGD0u9/UyeeycdZfdY+XyL2wem1Z1snncubaHzeN+93Emj74tqxg9 Pm+SC+CM4rJJSc3JLEst0rdL4MrYMGE1U8G9BqaKs3OXszUw7j3L2MXIwSEhYCJx73dEFyMn kCkmceHeerYuRi4OIYGljBJfDnczQTh9TBJzr75nBKliE9CU+Lv5JhuILSKgLPF34ipGkCJm gXfMEltXnWUDmSosYCax+6gWSA2LgKrEjfXP2UFsXgFniQM/PzNCbFOQWPZlLTOIzSngItG2 fhdYXAioZvna5ewTGHkXMDKsYhRNLU0uKE5KzzXUK07MLS7NS9dLzs/dxAgJ4y87GBcfszrE KMDBqMTDG7jrXpAQa2JZcWXuIUYJDmYlEd7Uy/eDhHhTEiurUovy44tKc1KLDzEycXBKNTBG Wu048KTx2sTF5z8eCOd+ukzy4+oPW9pcTYzZv1+yXLb405e+rWxXXidLfTzfOSWzQPHrDFN1 udYtN2X3m3Hz6bnO/MvEw7H7tEV6sd3UyNMBKr85T028d6r/wMrzfbVOYfsvOl0Uu1Hz7YZj gcVWvn+2h08/f3thsznfzbdGLKL3eE7qmZ5/pcRSnJFoqMVcVJwIACh8Zj9BAgAA Cc: Mark Rutland , devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Pawel Moll , Ian Campbell , Andrzej Hajda , Kyungmin Park , Rob Herring , Kumar Gala , Grant Likely X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 based s6e8aa0 AMOLED LCD 5.3 inch panel driver. Driver uses mipi_dsi bus to communicate with panel and exposes drm_panel interface. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/panel/Kconfig | 7 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-s6e8aa0.c | 1046 +++++++++++++++++++++++++++++++++ 3 files changed, 1054 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-s6e8aa0.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 4f40d19..63b33ef 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -17,4 +17,11 @@ config DRM_PANEL_SIMPLE that it can be automatically turned off when the panel goes into a low power state. +config DRM_PANEL_S6E8AA0 + tristate "S6E8AA0 DSI video mode panel" + depends on DRM && DRM_PANEL + depends on OF + select DRM_MIPI_DSI + select VIDEOMODE_HELPERS + endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index af9dfa2..181265b 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -1 +1,2 @@ obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o +obj-$(CONFIG_DRM_PANEL_S6E8AA0) += panel-s6e8aa0.o diff --git a/drivers/gpu/drm/panel/panel-s6e8aa0.c b/drivers/gpu/drm/panel/panel-s6e8aa0.c new file mode 100644 index 0000000..e9b9ec1 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-s6e8aa0.c @@ -0,0 +1,1046 @@ +/* + * MIPI-DSI based s6e8aa0 AMOLED LCD 5.3 inch panel driver. + * + * Copyright (c) 2013 Samsung Electronics Co., Ltd + * + * 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