Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751605AbdFIE7u (ORCPT ); Fri, 9 Jun 2017 00:59:50 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:49916 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751312AbdFIE7m (ORCPT ); Fri, 9 Jun 2017 00:59:42 -0400 X-AuditID: b6c32a2c-f79be6d0000051f7-c6-593a2b3bb142 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, inki.dae@samsung.com, Hoegeun Kwon , Hyungwon Hwang Subject: [PATCH 2/3] drm/panel: Add support for s6e63j0x03 panel driver Date: Fri, 09 Jun 2017 13:59:13 +0900 Message-id: <1496984354-5271-3-git-send-email-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1496984354-5271-1-git-send-email-hoegeun.kwon@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPJsWRmVeSWpSXmKPExsWy7bCmlq61tlWkwernYha31p1jteg9d5LJ 4v2yHkaL+UeA3Ctf37NZvF/exWaxdEYfq8Wk+xNYLN68XcNk0f/4NbPF+fMb2C02Pb7GanF5 1xw2ixnn9zFZLL1+kcmide8Rdoufu+axWLz8eILFQchjzbw1jB47Z91l99i0qpPNY/u3B6we 97uPM3lsXlLvsaUfKN63ZRWjx+dNcgGcUak2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6 hpYW5koKeYm5qbZKLj4Bum6ZOUAPKSmUJeaUAoUCE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1jB47Z91l99i0qpPNY/u3B6we 97uPM3lsXlLvsaUfKN63ZRWjx+dNcgGcUW42GamJKalFCql5yfkpmXnptkqhIW66FkoKeYm5 qbZKEbq+IUFKCmWJOaVAnpEBGnBwDnAPVtK3S3DLeD7pN1PBwqqK+/eesjUw/k3uYuTkkBAw kWjY9YENwhaTuHBvPZDNxSEksI1Rovl9KztIgldAUOLH5HssXYwcHMwC8hJHLmWDhJkF1CUm zVvEDFH/nVFi6baTLCAJNgFdia8915lAEiICaxklNi65DDaVWeAIk8S060/ApgoLuEtcm/Yf zGYRUJWYteMVE8Q2d4n9y7ezQJwkJ3Hy2GRWEJtTwENi+aOHYKcKAdV07TrIPoFRYBaSA2ch HDgLyYELGJlXMXKlFhTnpucWGxUYbWIERve2w1oBOxibzkUfYhTgYFTi4Z3QZBkpxJpYVlyZ e4hRgoNZSYT39i+gEG9KYmVValF+fFFpTmrxIUZToGsnMkuJJucDE09eSbyhiaWRiYGZmaGR gbGZkjjvhMAvEUIC6YklqdmpqQWpRTB9TBycUg2Me1+sfpTkVfB4+59uRylWBrZJBpfPhz6U m/X+D+/yKrX1WftrthvbG+0QDnq10GB6rjWvTYNsVujjnKkZAdtiFwkG6GXPPtMhKbrT57H6 P2dXp7jep34M233V7e2nJF2bVf9r6dtlj6Pll6z8sH312rh1Oie/7jwq5FOcX3BeZsvKI5tb WeualFiKMxINtZiLihMBfAyNKwQDAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170609045938epcas5p216c0ff705d60a32ee57ecb55de9233b5 X-Msg-Generator: CA X-Sender-IP: 182.195.42.80 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: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170609045938epcas5p216c0ff705d60a32ee57ecb55de9233b5 X-RootMTR: 20170609045938epcas5p216c0ff705d60a32ee57ecb55de9233b5 References: <1496984354-5271-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: 15103 Lines: 544 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 --- drivers/gpu/drm/panel/Kconfig | 7 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c | 491 +++++++++++++++++++++++ 3 files changed, 499 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 3e29a99..e47e56d 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -68,6 +68,13 @@ config DRM_PANEL_SAMSUNG_S6E3HA2 depends on DRM_MIPI_DSI select VIDEOMODE_HELPERS +config DRM_PANEL_SAMSUNG_S6E63J0X03 + tristate "Samsung S6E63J0X03 DSI video 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 292b3c7..f028269 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -5,6 +5,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..bf70a20 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c @@ -0,0 +1,491 @@ +/* + * MIPI-DSI based S6E63J0X03 AMOLED lcd 1.63 inch panel driver. + * + * Copyright (c) 2014 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