Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3485407imu; Mon, 28 Jan 2019 05:48:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN4cvBwiKwvEFqIVM9Hm+h2QI0Ro8s0Q1ZsRB34AppjXbpgYpyvoxLHpOOhXIPte05WKN4oz X-Received: by 2002:a63:b649:: with SMTP id v9mr19982454pgt.436.1548683292788; Mon, 28 Jan 2019 05:48:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548683292; cv=none; d=google.com; s=arc-20160816; b=Cqw/JQSIJEnmB7h3bMIibN9xAAyKZ/4SVf8YSNOQtCK1zq7pAtGSjZCcaeE5GnSOMa ynaxpCyGHYHJBBRzh1qtY6jwFWMnpPp9QHke5MKbhXYvlod6bPZFbF+8+9Pu0Take0BR 2H6OfzlOE8KlQYtB44uRragPLmhcrjlROcNvLYPv1veS6gs3r0aBDWM5I9+fKG+R3Kfo IyeLq1llTv+hzazRKIOzABMuWF2Y02Uv256F0UaiiHMjEQdGO79wRVYvXo7KzLyR077z w7RCdsd7G6hUsHmhc+vr82hvw7StsA0gp7utCPaR5J9uARVAIKw/Tz9gFBTWguR9y2/r 7vwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=AzY+m48wsP/vnI+rjolBeql4eTrj2Z7qeb5MH7cEdsg=; b=ycqCjUIyAbDtNgVpzSSj1AM2srEhXE70r8XUEv0sZoQ4vM8+RhTJ6NHZvmuPNeGXaH GmruDxUacfkxMo4/0y/WU1Nge/QlBtYuxh3dMDJV+X/5Z+p+vPxfyNH353HGqdk3+BlO ZVveh1HkCBWDh5tTFqBUNKpIWSPglX0Qln0ow/HgZmPmdE8JJijL5K1k18KXkDS4Tj5k SPU2fg/xrHjfDeK6nu8TQms+kB+pEX/9dGO9zQr87dlP88S4joXQhe1HYroENYOgjP5h bRto4Vg3M8pq2Dd/JTISmh5YQPjG6Eu3rml3KSlaxry/Wos920gvAjEOOwx6HJ07NLB4 EI6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sopOnbdh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si32490587plt.213.2019.01.28.05.47.57; Mon, 28 Jan 2019 05:48:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sopOnbdh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726790AbfA1Nrr (ORCPT + 99 others); Mon, 28 Jan 2019 08:47:47 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:33251 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbfA1Nrr (ORCPT ); Mon, 28 Jan 2019 08:47:47 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190128134745euoutp024ec6de666a6199c8dfa93ad93ed5e485~_BzlpgnVE2019220192euoutp02M for ; Mon, 28 Jan 2019 13:47:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190128134745euoutp024ec6de666a6199c8dfa93ad93ed5e485~_BzlpgnVE2019220192euoutp02M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548683265; bh=AzY+m48wsP/vnI+rjolBeql4eTrj2Z7qeb5MH7cEdsg=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=sopOnbdh1HuHJTS7ikoTvvSVPPjm8z/nC2ChYlupt1U5lUkKOylG5yFNXiu1vYndz xP/qWpk6DLBxrXrr3BmU07yuaidRlq10+RlKtHLhp6XvRCORweNE9x7KrtRf86FFz2 bAyxdZ3x8IYBe6xDw2FH1UyWz/+SrK5sjNr2LP8k= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190128134744eucas1p2ff0605917bb0cac408db872abcbb0da1~_Bzk0R9Af0441604416eucas1p2A; Mon, 28 Jan 2019 13:47:44 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 66.E9.04806.FF70F4C5; Mon, 28 Jan 2019 13:47:43 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190128134743eucas1p29fcf2039bafeddea2fc9c053d20c4d8c~_BzkBUzIw0262002620eucas1p2I; Mon, 28 Jan 2019 13:47:43 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190128134743eusmtrp2bc75490f675543fd285bd9fb32fb8c21~_BzjywSym2948429484eusmtrp2I; Mon, 28 Jan 2019 13:47:43 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-76-5c4f07ffdd95 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 14.50.04128.EF70F4C5; Mon, 28 Jan 2019 13:47:42 +0000 (GMT) Received: from [106.120.43.17] (unknown [106.120.43.17]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190128134742eusmtip1a0a0b897de706f9b6dfd9a5dd00e9657~_BzjQ1oDv0466404664eusmtip1O; Mon, 28 Jan 2019 13:47:42 +0000 (GMT) Subject: Re: [PATCH 2/2] drm/panel: Add driver for Samsung S6E63M0 panel To: =?UTF-8?Q?Pawe=c5=82_Chmiel?= , thierry.reding@gmail.com Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, airlied@linux.ie, linux-kernel@vger.kernel.org, krzk@kernel.org, robh+dt@kernel.org, dri-devel@lists.freedesktop.org, m.szyprowski@samsung.com From: Andrzej Hajda Message-ID: Date: Mon, 28 Jan 2019 14:47:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190125164645.19208-2-pawel.mikolaj.chmiel@gmail.com> Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMKsWRmVeSWpSXmKPExsWy7djP87r/2f1jDDrvG1r0njvJZDH/yDlW iytf37NZnD+/gd3i8q45bBZrj9xlt1h6/SKTxY/jfcwWrXuPsFv83DWPxYHLY828NYweO2fd ZffYtKqTzWP7twesHve7jzN59G1ZxejxeZNcAHsUl01Kak5mWWqRvl0CV8anE2dZCo6eZaz4 cG4SawPjjvmMXYycHBICJhKfJ7cD2VwcQgIrGCXevPrEBpIQEvjCKDFjrhRE4jOjxMGjP9m7 GDnAOvZ360DElzNKNM5pYIJw3jJKrJ2zB2yssICHxKILC5hBbBGBOIkLjxaxgRQxC5xglFjS uJoJJMEmoCnxd/NNsHW8AnYSE5dNBYuzCKhKbG24D2aLCkRIHO59xwhRIyhxcuYTFpArOAVc JNb1SIGEmQXkJZq3zmaGsMUlbj2ZzwTx2j12ib0fOCFsF4n7x5ezQNjCEq+Ob2GHsGUk/u+E qa+XaJp5hRnkTgmBDkaJ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P LTsYu94FH2IU4GBU4uE1YPOPEWJNLCuuzD3EKMHBrCTCO/W6X4wQb0piZVVqUX58UWlOavEh RlOg3yYyS4km5wNTSF5JvKGpobmFpaG5sbmxmYWSOO95g8ooIYH0xJLU7NTUgtQimD4mDk6p BsYTqXekYoS3hmq3hb7e/z3mIkNT6kr2hxwv/1z98fZLeFHPotz5my9NOj3lBfOv5RYPTn9o WrmkWL02yfxjl1LSscoec+tP904LF1xMzjxxc36WtHcwi8t/3V3+Zw1WNLzXV9pnslcr9dtf /S32x61qjrBrKZxOd1ZJVKk1e/UqtChdT25K2FklluKMREMt5qLiRAB4TQDH6QIAAA== X-CMS-MailID: 20190128134743eucas1p29fcf2039bafeddea2fc9c053d20c4d8c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190126203507epcas4p37827a9244ab1501dc4e412fe297c6c0e X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190126203507epcas4p37827a9244ab1501dc4e412fe297c6c0e References: <20190125164645.19208-1-pawel.mikolaj.chmiel@gmail.com> <20190125164645.19208-2-pawel.mikolaj.chmiel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paweł, Nice work. I agree with most Sam's comments (maybe expect DRM_DEV_* logging - I am not sure if we need concurrent logging facility). I'd like to add few more comments: On 25.01.2019 17:46, Paweł Chmiel wrote: > This patch adds Samsung S6E63M0 AMOLED LCD panel driver, connected over > spi. It's based on already removed, non dt s6e63m0 driver and > panel-samsung-ld9040. There is possibility to choose one from 3 > different gamma tables. > It can be found for example in some of Samsung Aries based phones. > > Signed-off-by: Paweł Chmiel > --- > drivers/gpu/drm/panel/Kconfig | 7 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 712 ++++++++++++++++++ > 3 files changed, 720 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 3f3537719beb..4a4b64f74e70 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -82,6 +82,13 @@ config DRM_PANEL_SAMSUNG_LD9040 > depends on OF && SPI > select VIDEOMODE_HELPERS > > +config DRM_PANEL_SAMSUNG_S6E63M0 > + tristate "Samsung S6E63M0 RGB/SPI panel" > + depends on OF > + depends on SPI > + depends on BACKLIGHT_CLASS_DEVICE > + select VIDEOMODE_HELPERS > + > config DRM_PANEL_LG_LG4573 > tristate "LG4573 RGB/SPI panel" > depends on OF && SPI > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index 4396658a7996..3e5d53fdee47 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -14,6 +14,7 @@ obj-$(CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN) += panel-raspberrypi-touchscreen > obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) += panel-samsung-ld9040.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D16D0) += panel-samsung-s6d16d0.o > +obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0) += panel-samsung-s6e63m0.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 > diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c > new file mode 100644 > index 000000000000..cb5c090621ad > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c > @@ -0,0 +1,712 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * S6E63M0 AMOLED LCD drm_panel driver. > + * > + * Copyright (C) 2019 Paweł Chmiel > + * Derived from drivers/gpu/drm/panel-samsung-ld9040.c > + * > + * Andrzej Hajda > + * > + * 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. You do not need license 'body' if SPDX is in use. > + */ > + > +#include > +#include > + > +#include > +#include > +#include > +#include > + > +#include