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: 3523581 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 64B2B9F2D6 for ; Wed, 22 Jan 2014 14:36:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D5C420173 for ; Wed, 22 Jan 2014 14:36:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7CFF8200D7 for ; Wed, 22 Jan 2014 14:36:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755856AbaAVOgg (ORCPT ); Wed, 22 Jan 2014 09:36:36 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:24503 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755898AbaAVOgW (ORCPT ); Wed, 22 Jan 2014 09:36:22 -0500 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>; Wed, 22 Jan 2014 14:36:20 +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 Cc: Andrzej Hajda , linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, Grant Likely , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Inki Dae , Kyungmin Park , Thierry Reding , Tomasz Figa 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, 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 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