From patchwork Fri Nov 28 11:39:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 5403101 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 3B04FBEEA8 for ; Fri, 28 Nov 2014 11:40:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DCA8B2016C for ; Fri, 28 Nov 2014 11:40:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1BB76201BB for ; Fri, 28 Nov 2014 11:40:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751219AbaK1Lj6 (ORCPT ); Fri, 28 Nov 2014 06:39:58 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:16819 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173AbaK1Lj4 (ORCPT ); Fri, 28 Nov 2014 06:39:56 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NFQ00MMIZ2HNI30@mailout2.samsung.com>; Fri, 28 Nov 2014 20:39:53 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.115]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 97.3E.19034.90F58745; Fri, 28 Nov 2014 20:39:53 +0900 (KST) X-AuditID: cbfee691-f79b86d000004a5a-0b-54785f095b90 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 77.FD.20081.90F58745; Fri, 28 Nov 2014 20:39:53 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([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 <0NFQ00DU4Z2G8B50@mmp1.samsung.com>; Fri, 28 Nov 2014 20:39:52 +0900 (KST) From: Inki Dae To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Cc: airlied@linux.ie, 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, a.hajda@samsung.com, kgene.kim@samsung.com, thierry.reding@gmail.com, Inki Dae Subject: [PATCH 2/3] drm/panel: add s6e63j0x03 LCD Panel driver Date: Fri, 28 Nov 2014 20:39:50 +0900 Message-id: <1417174791-7339-3-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1417174791-7339-1-git-send-email-inki.dae@samsung.com> References: <1417174791-7339-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42JZI2JSrMsZXxFiMH25tMWtdedYLXrPnWSy mH8EyLry9T2bRf+bhawW516tZLSYdH8Ci0XvgqtsFjPO72OyWHr9IpPFhOlrWSxa9x5ht/i5 ax6LA6/HmnlrGD0u9/UyeeycdZfdY+XyL2wem1Z1snls//aA1eN+93Emj74tqxg9Pm+SC+CM 4rJJSc3JLEst0rdL4Mo4vcil4PcMxoqVZ56wNzD+qeti5OSQEDCRmD3lMjOELSZx4d56ti5G Lg4hgaWMEttmnWCDKeq/fJMRIrGIUWLdjDYop5tJYuKMCawgVWwCqhITV9wH6xARsJdY/PUU K0gRs8B0Jokr1z+A7RAGSsyevw2siAWo4cDj02BxXgFniZv7LgFN5QBapyAxZ5INSJhTwEVi 5qnTTCBhIaCSC4c5QEZKCDxil5h6eyYzxBgB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FMSK6tSi/Lji0pz UosPMZoC3TSRWUo0OR+YRPJK4g2NTcyMLI3MDS2MjM2VxHlv3MwNERJITyxJzU5NLUgtgulj 4uCUamCcEDD7w7SCCRfUbvEu0XiuvzXO4bQ3R9SVCaL7fAOiAy6o75p04ndqsYpyhL/QBm6h 7Cubr7YmrRWc/f731bsnvrQfF9Xy7M0omb6Ic8XXBwJvnsxzkVKvWywpsv3/xte7yyvfXinJ /7W3ckZcMmudvvyt7zuvblpx7QmLjN7WX1/jfLSfMJ/XVGIpzkg01GIuKk4EAFLmPxnqAgAA 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 This patch adds MIPI-DSI based S6E63J0X03 AMOLED LCD Panel driver which uses mipi_dsi bus to communicate with Panel. Signed-off-by: Inki Dae Acked-by: Kyungmin Park --- drivers/gpu/drm/panel/Kconfig | 6 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-s6e63j0x03.c | 693 ++++++++++++++++++++++++++++++ 3 files changed, 700 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-s6e63j0x03.c 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..7b8d8ca --- /dev/null +++ b/drivers/gpu/drm/panel/panel-s6e63j0x03.c @@ -0,0 +1,693 @@ +/* + * 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