Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp5086129pjb; Mon, 27 Jul 2020 12:35:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCahfOtcDjK3zDWLwfuJCNEwzZw6u7Z/mDQxW7RCEq179W2IDmh/AaONzEftXOszpF0urE X-Received: by 2002:a05:6402:1d3a:: with SMTP id dh26mr22940739edb.349.1595878526422; Mon, 27 Jul 2020 12:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595878526; cv=none; d=google.com; s=arc-20160816; b=GLx4hwi03uZuZJRp++Oi32K4LCJW5545wEHSsDP37onY0xzoFzLZy74ST5IYr+grLO CF45/SuP+7ahHv3FIVRm1rtcIeceVBv/N+BxdbZbLqEU1ZBNh05TNNb1/L+eR5ey0M+G kGLpTvXmS6cDbjJqpCf4l5YFE7EIN53zo4YffcH3U52Hcl2Ix28OYaf6HJHVZzfgxElJ 7Y7u90ZXjxMKn72neYv0gztaE82Jf8dqKOR+suVXlKByW9kMMC+iRk6EMUpwK29U86dC rnK4j9T7taoCr9T4Ku2Xf22lf1vgfwr/Ry4H0tmVqFjSwyTUnZArN/Xd9R0YnZZX8vcA 9Xmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=DhGXDp0LzSDSCOh4nY1iq6cF5c7fVfWejJqQksLV6Rc=; b=GKGMIEKw2iM4TUB6wTwwVvfpW5utcG5ksr6KXpqa4VyKD6cLDJpYJSoNiQTv5PEidl CW+f1Up2FbPtAmkyp4nQ1NRJsE22Jtl9HTyItY3bljx4J9KF0df1+DL+wNycj8Rao5FZ 058AmTHdUPyhoc62P26lvS8S/6uTSYUsKhGq/uxWc+WWY7QZBDlURCS2tiXSjSE1tITs QxybDZ3/e9OS2sYzC4AzAx+X7yCvSLjA6jU5gfMwVkj8xLJAipu4q9JgPkxzm9etCBER 369deYgg3yKdQscN+bYJpstGZ5PuWqFqJzJN+or5a0gSKki9Fapc1OyR/gdejj7/DSv/ 9pAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si6454139ejk.168.2020.07.27.12.35.04; Mon, 27 Jul 2020 12:35:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728434AbgG0TLA (ORCPT + 99 others); Mon, 27 Jul 2020 15:11:00 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:34164 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728387AbgG0TK7 (ORCPT ); Mon, 27 Jul 2020 15:10:59 -0400 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id CF9E98046C; Mon, 27 Jul 2020 21:10:53 +0200 (CEST) Date: Mon, 27 Jul 2020 21:10:52 +0200 From: Sam Ravnborg To: Paul Cercueil Cc: Thierry Reding , David Airlie , Daniel Vetter , Rob Herring , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Noralf =?iso-8859-1?Q?Tr=F8nnes?= , od@zcrc.me, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] dt-bindings: display: Document NewVision NV3052C DT node Message-ID: <20200727191052.GA1011220@ravnborg.org> References: <20200727164613.19744-1-paul@crapouillou.net> <20200727164613.19744-2-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200727164613.19744-2-paul@crapouillou.net> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=aP3eV41m c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=ER_8r6IbAAAA:8 a=gEfo2CItAAAA:8 a=cFL5_wh2AAAA:8 a=47UgJTjCgcInOTyXzTsA:9 a=CjuIK1q_8ugA:10 a=9LHmKk7ezEChjTCyhBa9:22 a=sptkURWiP4Gy88Gu7hUp:22 a=yWaY75k36LOQ25BSl4KT:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul. On Mon, Jul 27, 2020 at 06:46:08PM +0200, Paul Cercueil wrote: > Add documentation for the Device Tree node for LCD panels based on the > NewVision NV3052C controller. > > Signed-off-by: Paul Cercueil Very happy to see work on RG-350 :-) Some feedback below. Sam > --- > .../display/panel/newvision,nv3052c.yaml | 69 +++++++++++++++++++ > 1 file changed, 69 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/panel/newvision,nv3052c.yaml > > diff --git a/Documentation/devicetree/bindings/display/panel/newvision,nv3052c.yaml b/Documentation/devicetree/bindings/display/panel/newvision,nv3052c.yaml > new file mode 100644 > index 000000000000..751a28800fc2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/panel/newvision,nv3052c.yaml > @@ -0,0 +1,69 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/panel/newvision,nv3052c.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: NewVision NV3052C TFT LCD panel driver with SPI control bus > + > +maintainers: > + - Paul Cercueil > + > +description: | > + This is a driver for 320x240 TFT panels, The binding describes the HW, not the driver. So please re-phrase this part. This datasheet: https://www.phoenixdisplay.com/wp-content/uploads/2019/05/NV3052C-Datasheet-V0.2.pdf tells that the driver supports additional resoltions. I guess the 320x240 resolution is limited to the leadtek panel. > + accepting a variety of input > + streams that get adapted and scaled to the panel. The panel output has > + 960 TFT source driver pins and 240 TFT gate driver pins, VCOM, VCOML and > + VCOMH outputs. > + > + The panel must obey the rules for a SPI slave device as specified in > + spi/spi-controller.yaml > + > +allOf: > + - $ref: panel-common.yaml# > + > +properties: > + compatible: > + items: > + - enum: > + - leadtek,ltk035c5444t-spi > + > + - const: newvision,nv3052c > + > + reg: > + maxItems: 1 > + > + reset-gpios: true > + port: true > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false > + Do the panel need any power? I had expected to see a power-supply node as mandatory. > +examples: > + - | > + #include > + spi { > + #address-cells = <1>; > + #size-cells = <0>; > + > + display@0 { > + compatible = "leadtek,ltk035c5444t-spi", "newvision,nv3052c"; > + reg = <0>; > + > + spi-max-frequency = <15000000>; > + spi-3wire; > + reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>; > + backlight = <&backlight>; > + power-supply = <&vcc>; These would fail later due to "unevaluatedProperties: false". Add them above like backlight: true power-supply: true as done for reset-gpios for example. > + > + port { > + panel_input: endpoint { > + remote-endpoint = <&panel_output>; > + }; > + }; > + }; > + }; Personally I prefer 4 space indent. But there is no fixed rule (yet) what to use. > + > +... > -- > 2.27.0