Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751956AbdGMCVh (ORCPT ); Wed, 12 Jul 2017 22:21:37 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:62331 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751291AbdGMCVF (ORCPT ); Wed, 12 Jul 2017 22:21:05 -0400 X-AuditID: b6c32a36-f79db6d000001a5e-9a-5966d9096311 MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset="UTF-8" From: Hoegeun Kwon To: thierry.reding@gmail.com, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, kgene@kernel.org, krzk@kernel.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, javier@osg.samsung.com, a.hajda@samsung.com, Hoegeun Kwon , Inki Dae , Hyungwon Hwang Subject: [PATCH v4 2/3] drm/panel: Add support for s6e63j0x03 panel driver Date: Thu, 13 Jul 2017 11:20:42 +0900 Message-id: <1499912443-3671-3-git-send-email-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1499912443-3671-1-git-send-email-hoegeun.kwon@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAJsWRmVeSWpSXmKPExsWy7bCmvi7nzbRIg40fhS1urTvHatF77iST xftlPYwW848AuVe+vmezeL+8i81i6Yw+VotJ9yewWLx5u4bJov/xa2aL8+c3sFtsenyN1eLy rjlsFjPO72OyWHr9IpNF694j7BY/d81jsXj58QSLg5DHmnlrGD12zrrL7rFpVSebx/ZvD1g9 7ncfZ/LYvKTeY0s/ULxvyypGj8+b5AI4o1JtMlITU1KLFFLzkvNTMvPSbZW8g+Od403NDAx1 DS0tzJUU8hJzU22VXHwCdN0yc4AeUlIoS8wpBQoFJBYXK+nb2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D1g9 7ncfZ/LYvKTeY0s/ULxvyypGj8+b5AI4o9xsMlITU1KLFFLzkvNTMvPSbZVCQ9x0LZQU8hJz U22VInR9Q4KUFMoSc0qBPCMDNODgHOAerKRvl+CWMWVZL0vBgrqKb2+fsjYwrkzvYuTkkBAw kZgxsYUFwhaTuHBvPVsXIxeHkMA2RomVt86wgiR4BQQlfky+B1TEwcEsIC9x5FI2SJhZQF1i 0rxFzCC2kMB3Rol9XXwgNpuArsTXnutMIHNEBNYySmxcchlsKLPAeSaJ5w0bGUGqhAW8JDZt uge2gEVAVeLJvlVMEMvcJXa8PsQKcZGcxMljk8FsTgEPiYcbFrFCbHOXWLXvJvsERoFZSO6b hXDfLCT3LWBkXsXIlVpQnJueW2xUYLiJERjb2w5r+e9g/HE2+hCjAAejEg8vh2ZapBBrYllx Ze4hRgkOZiUR3pjzQCHelMTKqtSi/Pii0pzU4kOMpkDXTmSWEk3OB6advJJ4QxNLIxMDMzND IwNjMyVx3gmBXyKEBNITS1KzU1MLUotg+pg4OKUaGEO1xTe62qzdmGrideDtfSePjoT1Sxx0 go72mz6rKupYU/ygw2Dh4vWvfj4KEN/rUvnm9tRz52bPr8rZp3kkeCXXpqmnHZbXCVSxNcT+ YloaZisXUx643lLpf9hiGcu5nQ/mLJV5zd+hI/533a/Vt+x+75VbtVvM6tqC4/b2wu0WAW/y DGub5imxFGckGmoxFxUnAgDF5lsTAwMAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170713022057epcas1p4e2ecacd16289e56c788b9af6641852ca X-Msg-Generator: CA X-Sender-IP: 182.195.42.79 X-Local-Sender: =?UTF-8?B?6raM7ZqM6re8G1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?SG9lZ2V1biBLd29uG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG1RFTEUbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170713022057epcas1p4e2ecacd16289e56c788b9af6641852ca X-RootMTR: 20170713022057epcas1p4e2ecacd16289e56c788b9af6641852ca References: <1499912443-3671-1-git-send-email-hoegeun.kwon@samsung.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 15572 Lines: 586 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" physical panel. This panel is used in Samsung Galaxy Gear 2. Signed-off-by: Inki Dae Signed-off-by: Hyungwon Hwang Signed-off-by: Hoegeun Kwon Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/panel/Kconfig | 7 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c | 532 +++++++++++++++++++++++ 3 files changed, 540 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index d84a031..bc69bca 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -80,6 +80,13 @@ config DRM_PANEL_SAMSUNG_S6E3HA2 depends on BACKLIGHT_CLASS_DEVICE select VIDEOMODE_HELPERS +config DRM_PANEL_SAMSUNG_S6E63J0X03 + tristate "Samsung S6E63J0X03 DSI command mode panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS + config DRM_PANEL_SAMSUNG_S6E8AA0 tristate "Samsung S6E8AA0 DSI video mode panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 9f6610d..42d2e29 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -6,6 +6,7 @@ obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) += panel-panasonic-vvx10f034n00.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) += panel-samsung-ld9040.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2) += panel-samsung-s6e3ha2.o +obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03) += panel-samsung-s6e63j0x03.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) += panel-samsung-s6e8aa0.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) += panel-sharp-lq101r1sx01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS043T1LE01) += panel-sharp-ls043t1le01.o diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c b/drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c new file mode 100644 index 0000000..aeb32aa --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c @@ -0,0 +1,532 @@ +/* + * MIPI-DSI based S6E63J0X03 AMOLED lcd 1.63 inch panel driver. + * + * Copyright (c) 2014-2017 Samsung Electronics Co., Ltd + * + * Inki Dae + * Hoegeun Kwon + * + * 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