Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp849101ybb; Thu, 28 Mar 2019 13:28:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzp7ayODSYn8GrE8kHiC8nhltSViiirx6kzOi/BzRmJdDUzcvryOYLIoaoua/8kKsycxNYL X-Received: by 2002:a17:902:7e49:: with SMTP id a9mr42172176pln.303.1553804909992; Thu, 28 Mar 2019 13:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553804909; cv=none; d=google.com; s=arc-20160816; b=pYYLlcHYJPsT4D87rdirLRFJFlDttF5p7yGau0XZMRw6240NqqNs1Qz7cqZbvOfUvg bdVrEQtBbE9qJkDzlfARwipRnFpM74FqnHIeyJ4E6x6bvWu2Bcr3qKyur9wwyiYObeBz ntzRRwGoyMqMW0ff1QhiyIIxdGVVg6rCk3yuJ73jmstQ/yS5J18i2b2fTQNNK/ptxsSt aMeBAzj+3ojjDTgvmnXj3PNcAjri/TOQ3EgxyeZcJ2Bgzhr6glcPHekS4yYbznsfQIuK lO/glZkT1XBXSvtV7sdk/z3SsPmPdJijweFjyZ9GN+8KKryOKnSMFvQlK16O7GRN6tb3 IshQ== 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 :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=yYgVpqmcEflW4y8gM07XdUF4XdpPM/9NBswJ9KC6fYM=; b=i/n2F/tjgrqin+lHGlTPgCQYh37dhAXnC/a0JHG0Fqg6BP5Xj8eEtwjZk1r0kO8b2P 8Wc/31KN0lMKGM4ipjBwZDUyfA3UTeFXshODjPLeuz4rJgTRoe8iZ7vowpV796tKUXpb AGrYiRKdQ/bHQS1dhTuITUpoEoCAd+258Gw6Scit+73JrXyJO9DO7AGSzHqPHSwBbM4J 9vzp4IEextszPVEurG8pckH3byE3s1rbSE9c3KtPzTIWiBRYwz75KU+hw0QePR89J9lW ISYytUkBkktKB5qxzJfQswf+cB+01d1p23Gv1C9rWp4MWFTuyncuKObszhGSyp/l0cAv zg0g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23si66844pgk.140.2019.03.28.13.28.13; Thu, 28 Mar 2019 13:28:29 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726242AbfC1U1C (ORCPT + 99 others); Thu, 28 Mar 2019 16:27:02 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54628 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbfC1U1C (ORCPT ); Thu, 28 Mar 2019 16:27:02 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 554332820F7 Message-ID: Subject: Re: [PATCH v4 1/7] dt-bindings: Add panel-timing subnode to simple-panel From: Ezequiel Garcia To: Douglas Anderson , Thierry Reding , Heiko Stuebner , Sean Paul Cc: linux-rockchip@lists.infradead.org, Laurent Pinchart , dri-devel@lists.freedesktop.org, Boris Brezillon , Enric =?ISO-8859-1?Q?Balletb=F2?= , Rob Herring , mka@chromium.org, Eric Anholt , Jeffy Chen , =?ISO-8859-1?Q?St=E9phane?= Marchesin , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, David Airlie , Mark Rutland , Daniel Vetter Date: Thu, 28 Mar 2019 17:26:49 -0300 In-Reply-To: <20190328171710.31949-2-dianders@chromium.org> References: <20190328171710.31949-1-dianders@chromium.org> <20190328171710.31949-2-dianders@chromium.org> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-03-28 at 10:17 -0700, Douglas Anderson wrote: > From: Sean Paul > > This patch adds a new subnode to simple-panel allowing us to override > the typical timing expressed in the panel's display_timing. > > Changes in v2: > - Split out the binding into a new patch (Rob) > - display-timings is a new section (Rob) > - Use the full display-timings subnode instead of picking the timing > out (Rob/Thierry) > Changes in v3: > - Go back to using the timing subnode directly, but rename to > panel-timing (Rob) > Changes in v4: > - Simplify desc. for when override should be used (Thierry/Laurent) > - Removed Rob H review since it's been a year and wording changed > > Cc: Doug Anderson > Cc: Eric Anholt > Cc: Heiko Stuebner > Cc: Jeffy Chen > Cc: Rob Herring > Cc: Stéphane Marchesin > Cc: Thierry Reding > Cc: devicetree@vger.kernel.org > Cc: dri-devel@lists.freedesktop.org > Cc: linux-rockchip@lists.infradead.org > Signed-off-by: Sean Paul > Signed-off-by: Douglas Anderson > --- > > .../bindings/display/panel/simple-panel.txt | 24 +++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/Documentation/devicetree/bindings/display/panel/simple-panel.txt b/Documentation/devicetree/bindings/display/panel/simple-panel.txt > index b2b872c710f2..6157f86ddce4 100644 > --- a/Documentation/devicetree/bindings/display/panel/simple-panel.txt > +++ b/Documentation/devicetree/bindings/display/panel/simple-panel.txt > @@ -15,6 +15,18 @@ Optional properties: > (hot plug detect) signal, but the signal isn't hooked up so we should > hardcode the max delay from the panel spec when powering up the panel. > > +panel-timing subnode > +-------------------- > + > +This optional subnode is for devices which require a mode differing > +from the panel's "typical" display timing. The panel timings provided > +here will be ignored if they are found to be outside of allowable > +ranges for the given panel. > + Is it OK to put this comment about how the implementation will behave when values are out of range, given this is just a binding spec? Perhaps -if needed- this sentence can be rephrased to state that, e.g. the OS may not be able to apply these values, if the controller or device is unable to? > +Format information on the panel-timing subnode can be found in > +display-timing.txt. > + > + > Example: > > panel: panel { > @@ -25,4 +37,16 @@ Example: > enable-gpios = <&gpio 90 0>; > > backlight = <&backlight>; > + > + panel-timing { > + clock-frequency = <266604720>; > + hactive = <2400>; > + hfront-porch = <48>; > + hback-porch = <84>; > + hsync-len = <32>; > + vactive = <1600>; > + vfront-porch = <3>; > + vback-porch = <120>; > + vsync-len = <10>; > + }; > };