Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1286935ybg; Wed, 29 Jul 2020 10:11:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylMgK/Cdclem12rO2NXfPesdZVRHvPeyATDIx2eCGJAG+1p82b69QhtPohoFW0taRB5Xt0 X-Received: by 2002:a17:906:e0c2:: with SMTP id gl2mr5719859ejb.160.1596042710472; Wed, 29 Jul 2020 10:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596042710; cv=none; d=google.com; s=arc-20160816; b=BFG6Uz3lo1RJyaNNJ2vPfjyJiN1jb3PjlGMkiD1kxzH4tentWj6q6lC41h0k4NeP+Q bJ3ZQFuAGfhiXXzS+G4uURTs2YH2h7a35xnLKIsIF+2iDBQ5FkXEGf6bsHQDkypFbRdp JSxyYv55C3X//p7w3XE5b1vL9RVmE6d28yJ8N7iipCSkcYGmZFoq1QxV+4ayf1IManwC vkCwX5PDz7BjvpWxCHEA64VwWPEY/TaSORm5Me7jdeAIag2hWoHEQxvXcLSuYyC82vEI JSNkk8TH/8mZLjX3UBqWoLcK5gV4wKdOGOYMuMuLLwy8vk2VpW+Yw6X2o+rNIuVpBWt7 oV1g== 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 :dkim-signature; bh=eXYGUE6cemL7FcfD5E2J7iVGrfeteR5G8bEPkPTtj58=; b=Jb9MTU+Z9WMNHhUv1EfeoFTsy/E+N+eJRO6XsiHGX443fOQ/vw4rNuNPUQ10iaU8de MVkvzmRUN6vDOvHURIRlVKYtv/Saz0g/fQH7/tTPBEV7gH3Tm5z1wANMEtQFUk4Yk63t dUOxNrWg3SiNFco/yO2XnbMoJ1idY8OycpJJiqooOvBVNc0+SLXpLDqx6xgnoYW3rRo1 y/lTZ6fyKZKZyHG0P7HOf3acMhC7jTnVhBOJM5KyOLOVlt4juywrSqxB+1qH79GNLicu Cyl8v2RF4YKVSMu1kpnCKtDXDjj+7rFzjfEIEA1CGZZv7bCCFkXSuBrE3Xzyyc/CQshh WM2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=aDCiK9iv; 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 b8si1950801edz.484.2020.07.29.10.11.27; Wed, 29 Jul 2020 10:11:50 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=aDCiK9iv; 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 S1726862AbgG2RLA (ORCPT + 99 others); Wed, 29 Jul 2020 13:11:00 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:33990 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726800AbgG2RK7 (ORCPT ); Wed, 29 Jul 2020 13:10:59 -0400 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DE22429E; Wed, 29 Jul 2020 19:10:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1596042657; bh=riwybW52EjlFX38PbzROSyTfxzjJON7hQACGRPsGFqw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aDCiK9ivoRvkZNPZgMRw4Oi/wfssbYvl0JQ9tXWoU+XCfzqRw12iwFb831vGoOPXP QVSMzw38dLJLUgqnX2bwFpXgUYFMcKyvFnOCH32VvlumEQvHNDIMd1PbOMWjRBqY29 qMQialmS1i97H78AOWJdP75VZSsyhyl5nTrTCFAk= Date: Wed, 29 Jul 2020 20:10:47 +0300 From: Laurent Pinchart To: Paul Cercueil Cc: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Andrzej Hajda , Neil Armstrong , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Noralf =?utf-8?Q?Tr=C3=B8nnes?= , devicetree@vger.kernel.org, od@zcrc.me, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 1/6] dt-bindings: display: Document NewVision NV3052C DT node Message-ID: <20200729171047.GA18755@pendragon.ideasonboard.com> References: <20200727164613.19744-1-paul@crapouillou.net> <20200727164613.19744-2-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200727164613.19744-2-paul@crapouillou.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, Thank you for the patch. 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 > --- > .../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 s/driver/driver IC/ (or driver chip, or controller, or any other similar term) to avoid confusion with device drivers. Do I understand that the NV3052C also supports control through DSI ? Shouldn't this appear in the DT bindings ? Do I assume correctly that the panel will be controlled either through SPI or through DSI, but not through both ? > + > +maintainers: > + - Paul Cercueil > + > +description: | > + This is a driver for 320x240 TFT panels, 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 According to its datasheet, that panel is 640x480 :-) I think you need a bit of documentation to explain that two compatible strings are needed, one matching the panel type, and a second one matching the chip. > + > + - const: newvision,nv3052c > + > + reg: > + maxItems: 1 > + > + reset-gpios: true > + port: true The NV3052C requires multiple power supplies, I think this needs to be taken into account here. > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false > + > +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>; > + > + port { > + panel_input: endpoint { > + remote-endpoint = <&panel_output>; > + }; > + }; > + }; > + }; > + > +... -- Regards, Laurent Pinchart