From patchwork Mon Jan 5 15:28:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 5568641 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 29F129F2ED for ; Mon, 5 Jan 2015 15:28:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 854B120121 for ; Mon, 5 Jan 2015 15:28:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 04FD320148 for ; Mon, 5 Jan 2015 15:28:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753148AbbAEP23 (ORCPT ); Mon, 5 Jan 2015 10:28:29 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:56770 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754156AbbAEP2Y convert rfc822-to-8bit (ORCPT ); Mon, 5 Jan 2015 10:28:24 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NHP00E37MZA49D0@mailout2.samsung.com>; Tue, 06 Jan 2015 00:28:22 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.115]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 4D.F1.11124.69DAAA45; Tue, 06 Jan 2015 00:28:22 +0900 (KST) X-AuditID: cbfee68e-f79b46d000002b74-64-54aaad96aa2d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id ED.9C.20081.69DAAA45; Tue, 06 Jan 2015 00:28:22 +0900 (KST) MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8BIT Received: from [10.252.83.67] by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NHP006AGMZA32C0@mmp1.samsung.com>; Tue, 06 Jan 2015 00:28:22 +0900 (KST) Message-id: <54AAAD96.2050004@samsung.com> Date: Tue, 06 Jan 2015 00:28:22 +0900 From: Inki Dae User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 To: Thierry Reding , DRI mailing list Cc: David Airlie , "devicetree@vger.kernel.org" , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , "linux-samsung-soc@vger.kernel.org" , Kyungmin Park , Andrzej Hajda , Kukjin Kim Subject: [Resend][PATCH v2 2/3] drm/panel: add s6e63j0x03 LCD panel driver References: <1418117346-9078-3-git-send-email-human.hwang@samsung.com> In-reply-to: <1418117346-9078-3-git-send-email-human.hwang@samsung.com> X-Forwarded-Message-Id: <1418117346-9078-3-git-send-email-human.hwang@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDIsWRmVeSWpSXmKPExsWyRsSkWHfa2lUhBvtXaVrcWneO1aL33Ekm i/lHgKwrX9+zWfS/Wchqce7VSkaL3gVX2SzONr1ht5hxfh+TxdLrF5ksJkxfy2LRuvcIu8XP XfNYHHg91sxbw+hxua+XyWPnrLvsHiuXf2Hz2LSqk81j+7cHrB73u48zefRtWcXo8XmTXABn FJdNSmpOZllqkb5dAlfG/6VdbAU7exkr1r/byNzAOLWki5GTQ0LARGL18o9MELaYxIV769m6 GLk4hASWMkpcWXqIDaboyzGYxCJGiTWnX4F18AoISvyYfI8FxGYWUJeYNG8RM4QtKrH/xEJW CFtbYtnC18wQza8YJdrOz2WDaNaSOHDwCjuIzSKgKvG57ysjiM0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EkiV+7tnBCDKIWeAJs8Sa/xfBGoQFvCR2TfgBdoSQgJvE5oPXweKcAu4S869/ZIa4 OkTi3JcjbBMYBWchuXUWwq2zkNy6gJF5FaNoakFyQXFSeq6hXnFibnFpXrpecn7uJkZwSnkm tYNxZYPFIUYBDkYlHl6PEytDhFgTy4orcw8xSnAwK4nwvkpfFSLEm5JYWZValB9fVJqTWnyI 0RTo04nMUqLJ+cB0l1cSb2hsYmZkaWRuaGFkbK4kzqtk3xYiJJCeWJKanZpakFoE08fEwSnV wDirNTxYTWI7X0JZ/eLQeVtSIy7b/mTIrvvRwLuQXZxn6bJkT6bZ/Idqz547Kqy806bRlfPX odiL7+/kfE6X5G7j2/JYssjkW5NPzjU79v+ODbfeJTP+MS56llO1efmFOO4vLVr8WxLqm/ti FPa9+JVRe5DLYqO464XHnzJ3X+F98/JB5TsbPiWW4oxEQy3mouJEAGCbgfI/AwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected 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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Just resend it with Thierry's request. Thanks, Inki Dae -------- Original Message -------- Subject: [PATCH v2 2/3] drm/panel: add s6e63j0x03 LCD panel driver Date: Tue, 09 Dec 2014 18:29:05 +0900 From: Hyungwon Hwang To: dri-devel@lists.freedesktop.org CC: airlied@linux.ie, devicetree@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux-samsung-soc@vger.kernel.org, kyungmin.park@samsung.com, inki.dae@samsung.com, a.hajda@samsung.com, kgene.kim@samsung.com, thierry.reding@gmail.com, Hyungwon Hwang From: Inki Dae This patch adds MIPI-DSI based S6E63J0X03 AMOLED LCD panel driver which uses mipi_dsi bus to communicate with panel. The panel has 320×320 resolution in 1.63-inch physical panel. This panel is used in Samsung Galaxy Gear 2. Signed-off-by: Inki Dae Signed-off-by: Hyungwon Hwang Acked-by: Kyungmin Park --- Changes for v2: - Change the gamma table to 2-dimensional array - Change the way to make index for brightness - Make command functions to an array so that it can be called simply - Change command id for reading device ID - Change the way to handle the error condition - Remove power variable, and use the same name variable in bl_dev - Add the state FB_BLANK_NORMAL to represent the state which the panel is working but blanked - Miscellaneous changes to increase the readability and follow the coding-style standard drivers/gpu/drm/panel/Kconfig | 6 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-s6e63j0x03.c | 549 +++++++++++++++++++++++++++++++ 3 files changed, 556 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-s6e63j0x03.c +MODULE_DESCRIPTION("MIPI-DSI based s6e8aa0 AMOLED LCD Panel Driver"); +MODULE_LICENSE("GPL v2"); diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index bee9f72..bc133e2 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -27,4 +27,10 @@ config DRM_PANEL_S6E8AA0 select DRM_MIPI_DSI select VIDEOMODE_HELPERS +config DRM_PANEL_S6E63J0X03 + tristate "S6E63J0X03 DSI video mode 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 8b92921..7f36dc2 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -1,3 +1,4 @@ obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o obj-$(CONFIG_DRM_PANEL_LD9040) += panel-ld9040.o obj-$(CONFIG_DRM_PANEL_S6E8AA0) += panel-s6e8aa0.o +obj-$(CONFIG_DRM_PANEL_S6E63J0X03) += panel-s6e63j0x03.o diff --git a/drivers/gpu/drm/panel/panel-s6e63j0x03.c b/drivers/gpu/drm/panel/panel-s6e63j0x03.c new file mode 100644 index 0000000..28e4a51 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-s6e63j0x03.c @@ -0,0 +1,549 @@ +/* + * MIPI-DSI based S6E63J0X03 AMOLED lcd 1.63 inch panel driver. + * + * Copyright (c) 2014 Samsung Electronics Co., Ltd + * + * Inki Dae, + * + * 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