Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1062173pxa; Sat, 22 Aug 2020 09:36:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQDhCQpn3XM71cPzW0k+Py6F0pPTbw92v6iJjSDnJMoctSk9J6Jvw6GH3k12FqkgoD2iEf X-Received: by 2002:a50:e846:: with SMTP id k6mr7622116edn.27.1598114201884; Sat, 22 Aug 2020 09:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598114201; cv=none; d=google.com; s=arc-20160816; b=NULwBrsRq/LnREAdmXorldeoTxfEWGu+SExQg3y9OGG2h92moeK5eink98Z1WP6maR OHEIFOhWaEvkVYaFvqR85lTKn0UDfYXImVB7qrk4uBdaqnbe9bUQSFBPgVANv+RqE/3C q8VWdAELk4d2RCbdteFEusdtJCAlr2g+m52IC8FOBn28P3/Vu0cyRzwJuD1Xp678fWTq yMZNrI7Ri2pbBu6gjw5qWb0t8TNyC0H2JNp3/g3BQ4k4p5b3y/EBvpEFZUDT+QrWx1Rv gFUoSP9E9uUqjPJT+TuPTA7gn8JwU4lIE9dfE/nw/O7k6/ac5esM9rcJK7vonWj0lPAI VACg== 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=OpSFEylgpgBKh2P6uwfTBIT/WcJC6e5Uy+yuu1dkY14=; b=HOt2muLDV2/Qk8lEPmtcWaI1AZcJT65YBcEq9cXI0HLJlm6v8jEG1TtGVX2q+r2iy7 e+mYlToE2RYiErUYIoxyBfAKRNf1Ol/oxUhlh+MGmYhvFRf0T2WfJcCBB0O5/pblS3kF NFe08jPcUhNJOJOf4+Y0GznrKBk0/7p+COCJD2kijVOKnWS/45Zxi2lnP4IzfQps6rE8 qF+kN944mL/UBeuUSF0bWNgahh7QXCiKxi7MzPVE3Kc7/Tc/8VXSBuexKFXFUImU9Fi4 A4bShwdPiq/cKiI5kIcpu7lSyMHew9ncuoRunh2sZtr1nXOZJAsv2P4MfqAvURmS52jP x8vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=ikS9LtxX; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cz6si4234225edb.350.2020.08.22.09.36.19; Sat, 22 Aug 2020 09:36:41 -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=fail header.i=@crapouillou.net header.s=mail header.b=ikS9LtxX; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728570AbgHVQdR (ORCPT + 99 others); Sat, 22 Aug 2020 12:33:17 -0400 Received: from crapouillou.net ([89.234.176.41]:48424 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728564AbgHVQdO (ORCPT ); Sat, 22 Aug 2020 12:33:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1598113986; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OpSFEylgpgBKh2P6uwfTBIT/WcJC6e5Uy+yuu1dkY14=; b=ikS9LtxXMYk4VZ/d4VFVzK/DGbochn/rlwxY2WcP3BfuhmvW113EUnZ23LGqlDNwLIF8H7 kNwhaZ9PHllpr4B7eA8ZcuNLmOuxOElZW3TG90zmU/QdtKnzOSKGCozbJypCrD3i6pc1wC 1RhWxZ1UoY2SKyVmyQTEF2CevnWTfJw= From: Paul Cercueil To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Noralf Tronnes , Laurent Pinchart , Linus Walleij Cc: od@zcrc.me, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH v2 1/6] dt-bindings: display: Document NewVision NV3052C DT node Date: Sat, 22 Aug 2020 18:32:45 +0200 Message-Id: <20200822163250.63664-2-paul@crapouillou.net> In-Reply-To: <20200822163250.63664-1-paul@crapouillou.net> References: <20200822163250.63664-1-paul@crapouillou.net> 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 Add documentation for the Device Tree node for LCD panels based on the NewVision NV3052C controller. v2: - Support backlight property - Add *-supply properties for the 5 different power supplies. Either they must all be present, or 'power-supply' must be present. - Reword description to avoid confusion about 'driver' - Use 4-space indent in example Signed-off-by: Paul Cercueil --- .../display/panel/newvision,nv3052c.yaml | 100 ++++++++++++++++++ 1 file changed, 100 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..0468ddeaff2d --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/newvision,nv3052c.yaml @@ -0,0 +1,100 @@ +# 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 IC driver for TFT panels, accepting a variety of input + streams that get adapted and scaled to the panel. + + 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 + power-supply: true + backlight: true + port: true + + vci-supply: + description: + Power supply for analog circuits (VCI=2.5V to 6V) + + vddam-supply: + description: + Power Supply for MIPI regulator circuits (VDDAM=1.75V to 6V) + + iovcc-supply: + description: | + External Power Supply for IO pads and other logic circuits + (IOVCC=1.65 to 3.6V) + + pprech-supply: + description: + Pre-charge power for source (can be connected to IOVCC or VCI) + + vpp-supply: + description: + Input power for NV memory programming (8.0V ~ 8.5V, typical=8.25V) + +required: + - compatible + - reg + +oneOf: + - required: + - power-supply + - required: + - vci-supply + - vddam-supply + - iovcc-supply + - pprech-supply + - vpp-supply + +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>; + }; + }; + }; + }; + +... -- 2.28.0