Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1902866imu; Sat, 26 Jan 2019 13:42:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN5XpDOz5nXUXq5O5Jsx3xrYeKTrudwjZUT4X81blUeImMYfFDM+/2QGrpySYfsqmIGWlO/l X-Received: by 2002:a62:104a:: with SMTP id y71mr16014624pfi.34.1548538943671; Sat, 26 Jan 2019 13:42:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548538943; cv=none; d=google.com; s=arc-20160816; b=MqTwCGySs0Hb4MT8uIjeFMHyEH0Lxa+4K7oLumD4vOScGkfxNx6w6MqUJcSrk0inUB S9+BWBHSVvoJR+nBoiU6z0syC7QwRkea0sV6krpoamO0NGxOeiMOMs4K2hJfBI4Nue9B UJWcmK1YbY6kt4KEjz5uflCWsEsAZ42bFX+TIG4jYpD6e/dyNvYgIQNU6AY1lpiMb0Q7 G81AAnnin/r2QUQrl2upKaXTso0705MKCONK9Lxg3ciHwtWaWOm0hYQJoM6JY8Hpe5XV v5+CUlI2cFvwk9Wmn0p24bQL31qdFa1PkQdjbrObVenlDJfh8xWxrew1xKLh03V5TtnD bbBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=n9So9M7GPLAuQ7/pNAWwDzyeg/7BYhnPPsB4RMss5wA=; b=YjQnUNYWGv0lGB71fyxjY8RAfQwyOWNNA0n3ee001OZwnPqQSTOy/MhWYeEWGwI/wI WjbopMcTUeWPg8IwlQH4iXp41jk8aRVfRibfmQJm41gDHzER+sVJJoK5dNmPQZaFHTlc aRZM+FBtMwzUH7XdW4vekhmgtgzJsEL4Dh9zPGyT3aY6vFGKVw/kYUl+hryyyIzm7GjN YckHb4aTlqOjIlvZBo5vI1oac12i9gOI7ITh/uCkG0OEdrW2TUsOhCDSk51p9v6s6qPQ LggXV1qAEjvZo+3EqP16U9Gx7mtyX8Mn+Qege0XQtTx4PH0hZ/R1NiqAwzjGINmU2Y29 BQew== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si7277025pfg.121.2019.01.26.13.42.07; Sat, 26 Jan 2019 13:42:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726402AbfAZVmC (ORCPT + 99 others); Sat, 26 Jan 2019 16:42:02 -0500 Received: from asavdk4.altibox.net ([109.247.116.15]:47044 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726372AbfAZVmC (ORCPT ); Sat, 26 Jan 2019 16:42:02 -0500 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id EFBDB803BF; Sat, 26 Jan 2019 22:41:51 +0100 (CET) Date: Sat, 26 Jan 2019 22:41:49 +0100 From: Sam Ravnborg To: =?utf-8?B?UGF3ZcWC?= Chmiel 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 Message-ID: <20190126214149.GB31182@ravnborg.org> References: <20190125164645.19208-1-pawel.mikolaj.chmiel@gmail.com> <20190125164645.19208-2-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190125164645.19208-2-pawel.mikolaj.chmiel@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=UpRNyd4B c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=hD80L64hAAAA:8 a=NejAcOUxEScyh1-lJzoA:9 a=QEXdDO2ut3YA:10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pawel. Thanks for this nice patch too. Comment follows and you need to judge what to follow. The timing part will not be commented as this was covered in feedback on the binding. Using a sysfs file to select the gamma mode looks like a local hack. Someone with more drm knowledge needs comment on that. On Fri, Jan 25, 2019 at 05:46:45PM +0100, 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/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. > + */ > + > +#include > +#include For new drivers please do not use drmP.h, we are working on gettting rid of it. The list is sorted in alphabetical order - good. > + > +#include > +#include > +#include > +#include > + > +#include