Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752948AbdGLOwN (ORCPT ); Wed, 12 Jul 2017 10:52:13 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:49412 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752760AbdGLOwK (ORCPT ); Wed, 12 Jul 2017 10:52:10 -0400 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 X-AuditID: cbfec7f4-f79806d000001279-2c-59663796094f Subject: Re: [PATCH v3 2/3] drm/panel: Add support for s6e63j0x03 panel driver From: Andrzej Hajda To: Hoegeun Kwon , 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: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, javier@osg.samsung.com, Hyungwon Hwang , linux-arm-kernel@lists.infradead.org Message-id: Date: Wed, 12 Jul 2017 16:52:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 In-reply-to: <5e374a8b-1ec4-4cb8-3020-993dd749100e@samsung.com> Content-transfer-encoding: 8bit Content-language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFKsWRmVeSWpSXmKPExsWy7djP87rTzNMiDb5cl7DoPXeSyeL9sh5G i/lHzrFaXPn6ns3i/fIuNoulM/pYLd68XcNk0f/4NbPF+fMb2C02Pb7GanF51xw2ixnn9zFZ LL1+kcmide8Rdoufu+axWLz8eILFQcBjzbw1jB47Z91l99i0qpPNY/u3B6we97uPM3lsXlLv saUfKN63ZRWjx+dNcgGcUVw2Kak5mWWpRfp2CVwZd86/ZCnot6s4+/QBcwPjJKMuRk4OCQET id3frzBB2GISF+6tZwOxhQSWMkr0HpDpYuQCsj8zStxZ3sIC09A0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gImEk2z9rFB2GIS F+6tB7K5OIQEljBK9Pw6xAyS4BUQlPgx+R5LFyMHB7OAusSUKbkQNc8YJfZc/AvWLCzgJ9G3 4ByYzSagKfF3802wQSIC1xglZq1awAjiMAu8Y5Q4/OYX1IoJTBJnZy5hhFhhJ7Hw606wdSwC qhIf/6wDGyUqECHR9/YyO8hqTgF7iblneUHCzALyEgevPGeBsMUlmltvskxgFJyF5NhZCMfO QtIxC0nHAkaWVYwiqaXFuem5xYZ6xYm5xaV56XrJ+bmbGIHJYNuxn5t3MF7aGHyIUYCDUYmH l0MzLVKINbGsuDL3EKMEB7OSCK+nCVCINyWxsiq1KD++qDQntfgQoynQCxOZpUST84GJKq8k 3tDE0NzS0MjYwsLcyEhJnLfkw5VwIYH0xJLU7NTUgtQimD4mDk6pBsbpe/83Bs4J5Ngp9D1t Z5uOQV3z0+rX3vYCM7n5ms5N3Jyz7TzjnfANn+4xiZff4nbiTtg+p+aW/d2YpuurHhz88bjY a+bPZrMZPJGJgT25VaFrrj78kbpehvXHrJt2GfeXRR76Whhxcp3QJ/c5fP7bE5kd9HkuSe93 EpXJZ3hvmR7xtVAo5JsSS3FGoqEWc1FxIgBRr1J8HAMAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170712145205eucas1p26cd98df885c743381f189466b5c9c64b X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRvsgrw=?= =?UTF-8?B?7ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRtTYW1z?= =?UTF-8?B?dW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170627021124epcas5p12ef8d03c85405ceb35d75c6d4eea6b01 X-RootMTR: 20170627021124epcas5p12ef8d03c85405ceb35d75c6d4eea6b01 References: <1498529470-20652-1-git-send-email-hoegeun.kwon@samsung.com> <1498529470-20652-3-git-send-email-hoegeun.kwon@samsung.com> <5e374a8b-1ec4-4cb8-3020-993dd749100e@samsung.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7730 Lines: 219 On 12.07.2017 15:25, Andrzej Hajda wrote: > On 27.06.2017 04:11, Hoegeun Kwon wrote: >> 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 | 540 +++++++++++++++++++++++ >> 3 files changed, 548 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..3f4afde 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 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 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..c3d1b5d >> --- /dev/null >> +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c >> @@ -0,0 +1,540 @@ >> +/* >> + * 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