Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752358AbdFOKD4 (ORCPT ); Thu, 15 Jun 2017 06:03:56 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:52564 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750948AbdFOKDp (ORCPT ); Thu, 15 Jun 2017 06:03:45 -0400 X-AuditID: b6c32a35-f79806d000002bf4-d4-59425b7ef1eb 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 v2 2/4] drm/panel: Add support for s6e63j0x03 panel driver Date: Thu, 15 Jun 2017 19:03:28 +0900 Message-id: <1497521010-8429-3-git-send-email-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1497521010-8429-1-git-send-email-hoegeun.kwon@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAJsWRmVeSWpSXmKPExsWy7bCmvm5dtFOkwdftOha31p1jteg9d5LJ 4v2yHkaL+UeA3Ctf37NZvF/exWaxdEYfq8Wk+xNYLN68XcNk0f/4NbPF+fMb2C02Pb7GanF5 1xw2ixnn9zFZLL1+kcmide8Rdoufu+axWLz8eILFQchjzbw1jB47Z91l99i0qpPNY/u3B6we 97uPM3lsXlLvsaUfKN63ZRWjx+dNcgGcUak2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6 hpYW5koKeYm5qbZKLj4Bum6ZOUAPKSmUJeaUAoUCEouL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l99i0qpPNY/u3B6we 97uPM3lsXlLvsaUfKN63ZRWjx+dNcgGcUW42GamJKalFCql5yfkpmXnptkqhIW66FkoKeYm5 qbZKEbq+IUFKCmWJOaVAnpEBGnBwDnAPVtK3S3DLuHlkAUvBoeqKrplRDYz30roYOTkkBEwk WvfNZ4GwxSQu3FvP1sXIxSEksI1R4s3bt2AJXgFBiR+T7wHZHBzMAvISRy5lg4SZBdQlJs1b xAxR/51R4svTD2D1bAK6El97rjOBJEQE1jJKbFxyGWwqs8B5JonnDRsZQaqEBbwkFq55zgZi swioSlx7cpoNYpu7xJ9JW5khTpKTOHlsMiuIzSngIXFnyR8wWwioZu3jCWwTGAVmITlwFsKB s5AcuICReRUjV2pBcW56brFRgeEmRmBsbzus5b+D8cfZ6EOMAhyMSjy8HPaOkUKsiWXFlbmH GCU4mJVEeG0VnCKFeFMSK6tSi/Lji0pzUosPMZoCXTuRWUo0OR+YdvJK4g1NLI1MDMzMDI0M jM2UxHknBH6JEBJITyxJzU5NLUgtgulj4uCUamDsd/eLPxtX4XqZP/zNkw96nyx/2is7Xa3d dWfHpZJr07Jbl107sPbHpmbXee4WywLfFd2fPpvFzs1Rrl/PKNS/8mRxnerh20dvGHhGbOGy fvbO09jjQJv1tPkaB+4tVUr7ZxbUfHB69zc7iwX18/75mMXMEorhv705YPnpoHOvfknKCEe4 /WRRYinOSDTUYi4qTgQAODbrcgMDAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170615100342epcas1p4b15ffce9ea2018e2bc90bb04061aded5 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: 20170615100342epcas1p4b15ffce9ea2018e2bc90bb04061aded5 X-RootMTR: 20170615100342epcas1p4b15ffce9ea2018e2bc90bb04061aded5 References: <1497521010-8429-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: 15279 Lines: 529 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 | 476 +++++++++++++++++++++++ 3 files changed, 484 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..dd038bc --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c @@ -0,0 +1,476 @@ +/* + * 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