Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3665692imu; Mon, 28 Jan 2019 08:41:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN6IJedlT7bKnbx6oEcGFQUBdkUMTRlvXgxTZNySDMr1R2TSrYsfRbO4BNrOEjf1taWaUa9O X-Received: by 2002:a17:902:5982:: with SMTP id p2mr22258031pli.39.1548693701333; Mon, 28 Jan 2019 08:41:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548693701; cv=none; d=google.com; s=arc-20160816; b=HofnPvEXnreS/A+IIzBzmq+icwfqqf8ALSAEboRdZRZB6IhCYTdul9EUjxxnY3PGDt GjoAUTFH/1QL6U98GRAZ1zRKMMe7TXuIhSGagCNlTfxyzOUUfShWJX2EMHO3kJCrkUod jXM63gFb0oh1Ova/9BGfVI2VFNVSuom4v5yehPAvTBM5iQi8oB7+JfjTYV7q1NMrCKK0 IvjfnxxSrNZ0aZXuDWJ10w/h2DG8zw6ZmoJcy9sQGX1S7aWgbY6IxNJjp6hSnCXrvsde OhXMDdxQU82kDH2pcC2Rda6yUyfjxEzR3xxdUw+e/RgVnpFiznlr+f6NQVHQbVHwrpyq jfoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7Hg27jIP5CHtmguFv1lE5PlXBOWzxPHaZKeCjw1ORGA=; b=k8ibrDfs8BNqCqE5OWKaWODfNu6KlUSdtau+FgXclbFGoz21rUWvKEitBkpt7gsjWs ZWeAYTi5dKtIX82G68C43EG2cRVZByLJrN9uDL23fsNGQy5kqyjYNQzYBPul4lY/1Kd+ Ww5Fu/2OyDoBUzvpOo+xVnXl+0VVSdXFOUwaD5zJKSHGhm6bXieWcSGZWk4XBKvArjEj apOWLJS0IEyIIBlohcrYQZdiBG+RiQAbpZypbav9AYWxBJVZ1xsA35v9KkOH0Zjdl0Ea WKXBDXFPh3ZOihGLRyz5AiltpgYYh1/ChCYSX/t5BIiiFwoidRSVUUAJcdjsb8OzFeup J/ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=smyhOxUa; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q127si38269178pfq.19.2019.01.28.08.41.25; Mon, 28 Jan 2019 08:41:41 -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=@gmail.com header.s=20161025 header.b=smyhOxUa; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390664AbfA1QjP (ORCPT + 99 others); Mon, 28 Jan 2019 11:39:15 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:45101 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389235AbfA1QYg (ORCPT ); Mon, 28 Jan 2019 11:24:36 -0500 Received: by mail-lf1-f66.google.com with SMTP id b20so12279428lfa.12; Mon, 28 Jan 2019 08:24:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7Hg27jIP5CHtmguFv1lE5PlXBOWzxPHaZKeCjw1ORGA=; b=smyhOxUan3q9eEO7TR8bfjSSwLjtlj7luR0Nr1hpF6kEYdiuu1otMAVcnzTUVHPLmB fChMphVlAYpIRze5PSjYXnj9jtpqZI3Ag0PLkI+SsuwCjDS8K0hdA842NYuA9HeHO/nA UCZXbryXltyH9Mi3JaM2YFdMTrgPCNJ6Y+wrTrIqKO0m++s5lnsYTTv5e7DIwQ3MYvBG 8yqUqn5Mat8S2zA5GvteAuyqn9RONLIhVqbrKQD9lg4XC1R3kGEmexHyFyJbeM79fPv/ Vp0I2sIv8E0l8oSTtpjXUq24w+FPgcHUcX/JrvudW7EerKVFkaAUjzK7LX+Tw3Yefvkp InLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7Hg27jIP5CHtmguFv1lE5PlXBOWzxPHaZKeCjw1ORGA=; b=dXLdJ7WTN4RXSAtbdepiYOtOlsicm4VwPmp3Y+p4sCaY/+a8A8RN3+Qu4Ophsoaeml eFEcYFnSy/Tv6ZuCOFGTbzfpY1b/i5df7rwkQOnaFaogOCAe0JvGdGXsKrw0iQP3HGFR 9A8jgy1Y0T9/KRkvLk2vBtFHBPoVCejUBopLdp2ivru6KeRhJ1LwmvxTcc+OWBW8f04G ZesO6ZuLhRP7lbKHHoOaqcAJS7+9+zJCpptQQJY3vRg9quJeFJTEvu6gU9v8ZzHEurzi ztYFrja6QA4DFJBdrns1vXCefCuMwGeEPXa4SjEIx+07x+4/Fq6PE+wr+mgpPOc0Wxgt Cd6w== X-Gm-Message-State: AJcUukf8PFNtEW05kZsWDen+GDGaBfTQqJWHCZD5isQb8xcMuRp7dhMM LU8kVmv0Sx6h6517fxLWHqY= X-Received: by 2002:a19:a411:: with SMTP id q17mr16997927lfc.160.1548692672959; Mon, 28 Jan 2019 08:24:32 -0800 (PST) Received: from acerlaptop.localnet ([2a02:a315:5445:5300:ed06:b4f0:d2de:7b0f]) by smtp.gmail.com with ESMTPSA id j9sm3015142lfk.74.2019.01.28.08.24.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 08:24:32 -0800 (PST) From: =?utf-8?B?UGF3ZcWC?= Chmiel To: Andrzej Hajda Cc: thierry.reding@gmail.com, 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 Subject: Re: [PATCH 2/2] drm/panel: Add driver for Samsung S6E63M0 panel Date: Mon, 28 Jan 2019 17:24:30 +0100 Message-ID: <2907728.QhjCB61z50@acerlaptop> In-Reply-To: References: <20190125164645.19208-1-pawel.mikolaj.chmiel@gmail.com> <20190125164645.19208-2-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On poniedzia=C5=82ek, 28 stycznia 2019 14:47:41 CET Andrzej Hajda wrote: > Hi Pawe=C5=82, >=20 > Nice work. >=20 > I agree with most Sam's comments (maybe expect DRM_DEV_* logging - I am > not sure if we need concurrent logging facility). >=20 > I'd like to add few more comments: >=20 >=20 >=20 > On 25.01.2019 17:46, Pawe=C5=82 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=C5=82 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/Kcon= fig > > 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 > > =20 > > +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/Mak= efile > > 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) +=3D = panel-raspberrypi-touchscreen > > obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) +=3D panel-raydium-rm68200.o > > obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) +=3D panel-samsung-ld9040.o > > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D16D0) +=3D panel-samsung-s6d16d0.o > > +obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0) +=3D panel-samsung-s6e63m0.o > > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2) +=3D panel-samsung-s6e3ha2.o > > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03) +=3D panel-samsung-s6e63j0x= 03.o > > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) +=3D panel-samsung-s6e8aa0.o > > diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c b/drivers/gp= u/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=C5=82 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. >=20 >=20 > You do not need license 'body' if SPDX is in use. >=20 >=20 > > + */ > > + > > +#include > > +#include > > + > > +#include > > +#include > > +#include > > +#include > > + > > +#include