From patchwork Sun Mar 15 13:44:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 11438997 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E867A6CA for ; Sun, 15 Mar 2020 13:45:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF5D220674 for ; Sun, 15 Mar 2020 13:45:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GkDzmzJP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728637AbgCONp1 (ORCPT ); Sun, 15 Mar 2020 09:45:27 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:43102 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728695AbgCONp1 (ORCPT ); Sun, 15 Mar 2020 09:45:27 -0400 Received: by mail-lj1-f193.google.com with SMTP id r7so15605463ljp.10; Sun, 15 Mar 2020 06:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gRJ0qOuvj7xd3Fm3RySbuPGlTrl0RRGIeQ9SIxKWgV0=; b=GkDzmzJPwQ+0Seb+vU3zv9cPxKMarphixbVlW3vImxXXMscUO9Nr73fJT7/oOmW3ov R5vRP76Bf96W4TqcL3uqD+p04QsOKHp8ErA1ENrI36v9nLfm4wwoCxoVKfT5qlj7GOIG mIggjRtgvbiyHXhgkl7hUBW3nsXFnS+Ak/dFYdg07Plg6A0yLvv5FiWb0DjU2DFKLsf+ TR0jNALHdewmoumNhJjnp3GZRiwAww2VheF5AJn2y24zdrmMtizK6UfY0yN4GMtKAaVk SjSyQS3FU+GINmeQBpV2mQvsZ3cV04VeA63Jx3dHMX/IBeQJMjQeE4trV1Mz6f6rEJes 3CfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=gRJ0qOuvj7xd3Fm3RySbuPGlTrl0RRGIeQ9SIxKWgV0=; b=E+PUIEYP4u8h/5rzUmtqM/GRLqPt/SH+Rdza05/qqwIy+usMA/jw3zlTA5S0ERFFy1 vupkuYgJTOSwaB+RUL7/aX8CZWcMmhx2SJ1bFeL5IZ8WezqcgN8QtQR8lk8lAazykHWT lQXy6uBrvMMwmlRfWwCYXnonJgK0zg9CF9zlI7uuEi62bOslFmVagmPAYJp2/pJEXWYB YVa5g7Ajj83f3/ArN0I8IQ5OgAipm/jw/mPRN98oqzc+RZzBaP6DUYeXRBpAF+lbv7QB zp7jgyiZ8W/xus+dFl+EQ+M+tRm0hc/DOkhJp6ihSkf8dspqPuqYOG6Zo+hXQJ+SzUkS vCxA== X-Gm-Message-State: ANhLgQ3FDEuHgVdrI4yO7r07cd/eD0TL4cfclVjLKpljMverJQeICdry PeOvn6heuA453vwMRFXkQyc= X-Google-Smtp-Source: ADFU+vuC6yiIywbBb0ZPLb4XytTRoLe/xDi8RThEg1i7adSH/tbwLJ0SiINVcnb3kmMm7ImgJPZaaA== X-Received: by 2002:a05:651c:2007:: with SMTP id s7mr13877995ljo.214.1584279924573; Sun, 15 Mar 2020 06:45:24 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:24 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 27/36] dt-bindings: display: convert sitronix,st7701 to DT Schema Date: Sun, 15 Mar 2020 14:44:07 +0100 Message-Id: <20200315134416.16527-28-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org The old binding documented that a number of properties is required only for a specific panel. The binding supports only one panel so they are now unconditionally required. Signed-off-by: Sam Ravnborg Cc: Jagan Teki Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/sitronix,st7701.txt | 30 -------- .../display/panel/sitronix,st7701.yaml | 68 +++++++++++++++++++ 2 files changed, 68 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt create mode 100644 Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml diff --git a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt deleted file mode 100644 index ccd17597f1f6..000000000000 --- a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt +++ /dev/null @@ -1,30 +0,0 @@ -Sitronix ST7701 based LCD panels - -ST7701 designed for small and medium sizes of TFT LCD display, is -capable of supporting up to 480RGBX864 in resolution. It provides -several system interfaces like MIPI/RGB/SPI. - -Techstar TS8550B is 480x854, 2-lane MIPI DSI LCD panel which has -inbuilt ST7701 chip. - -Required properties: -- compatible: must be "sitronix,st7701" and one of - * "techstar,ts8550b" -- reset-gpios: a GPIO phandle for the reset pin - -Required properties for techstar,ts8550b: -- reg: DSI virtual channel used by that screen -- VCC-supply: analog regulator for MIPI circuit -- IOVCC-supply: I/O system regulator - -Optional properties: -- backlight: phandle for the backlight control. - -panel@0 { - compatible = "techstar,ts8550b", "sitronix,st7701"; - reg = <0>; - VCC-supply = <®_dldo2>; - IOVCC-supply = <®_dldo2>; - reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ - backlight = <&backlight>; -}; diff --git a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml new file mode 100644 index 000000000000..d5811a8f615e --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/sitronix,st7701.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sitronix ST7701 based LCD panels + +maintainers: + - Jagan Teki + +description: | + ST7701 is designed for small and medium sizes of TFT LCD display, is + capable of supporting up to 480RGBX864 in resolution. It provides + several system interfaces like MIPI/RGB/SPI. + + Techstar TS8550B is 480x854, 2-lane MIPI DSI LCD panel which has + inbuilt ST7701 chip. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - enum: + # Techstar TS8550B + - techstar,ts8550b + - const: sitronix,st7701 + + reg: true + reset-gpios: true + backlight: true + + VCC-supply: + description: analog regulator for MIPI circuit + + IOVCC-supply: + description: I/O system regulator + +required: + - compatible + - reset-gpios + - reg + - VCC-supply + - IOVCC-supply + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "techstar,ts8550b", "sitronix,st7701"; + reg = <0>; + VCC-supply = <®_dldo2>; + IOVCC-supply = <®_dldo2>; + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; + }; + }; + +...