Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6439460ybl; Wed, 15 Jan 2020 04:47:24 -0800 (PST) X-Google-Smtp-Source: APXvYqzHHEXuTlfVcjZko30K8BS+bmbvGCA/aC2PdOu8Tz8WA3idfraG9v29jliGaAcUAfv2UF4W X-Received: by 2002:a9d:8f1:: with SMTP id 104mr2427951otf.107.1579092444782; Wed, 15 Jan 2020 04:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579092444; cv=none; d=google.com; s=arc-20160816; b=XXUPT6zLI2OJ/BW6lA/rYB994dCb7CLkQ1HcV+c0gPKVIuOk2fFgXwIim3qd9nwudd LvC4RzdHK8hL0Eric//U/GBjEbFhoQmoTCYez05uegoC6GtNXRe+rDvCog2HhpoiN6pP 9StI2e+Y5pSaPhkIdULI0DLkzhCtKVJE/hHEQUQNBF45CDT+4zwvM4SebM+Em0OdJ2YP 1XJoL4q/dMa8ItY24np88M+8k5JW63nvw5djroE5jQ3F7/JrroBO934qvEW/60x1o9rl /knmTtnIZrB0vyuZRgy/5xyOFFQMzB51qOspwPGVvQBnRZSXvTOEAknGQjmUjmZpit2U sj+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=PyVZkwjJhd/P251lCAXnJpckqW1CidWzFHK+Ho2Qo3E=; b=KxH0nZYHisKrwli3nNZRaIX6dkaRb0NaYFNgjpTLiNedZjbtr2p27iT9mmMCx9bwfu AtNufNiG0UV945q74B0OYNXxrXiHY5zj8zyXWAaNLxQhGpWcp3mVemR8j57VkA/pxUO3 VM6OiNKfK41lrQHyttUKgZF4/vxz+DwYR9nMIoza/NAmcpZfoAz5jKiP+7y0Rzq9EgtN A/95TXpvA0/RSHs9oDwQSCcb2VjG8bFAANNO4ho8eX81hK0wU84bMm3oB2O02p09MIua RL8yjPc4lEfEdhIt7WEQtbb94DpCjleWyyyx1BdTu9zPTiSChcKoxGY4URDCXEqAl1yw sDgg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si9155360otl.214.2020.01.15.04.47.12; Wed, 15 Jan 2020 04:47:24 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729190AbgAOMqB (ORCPT + 99 others); Wed, 15 Jan 2020 07:46:01 -0500 Received: from baptiste.telenet-ops.be ([195.130.132.51]:56492 "EHLO baptiste.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729126AbgAOMqA (ORCPT ); Wed, 15 Jan 2020 07:46:00 -0500 Received: from ramsan ([84.195.182.253]) by baptiste.telenet-ops.be with bizsmtp id qclq210045USYZQ01clqd9; Wed, 15 Jan 2020 13:45:57 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1iri3S-0003yz-3C; Wed, 15 Jan 2020 13:45:50 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1iri3S-00012Z-1m; Wed, 15 Jan 2020 13:45:50 +0100 From: Geert Uytterhoeven To: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= , David Lechner , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Rob Herring , Mark Rutland Cc: Sam Ravnborg , Chris Brandt , Kieran Bingham , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 1/5] dt-bindings: display: sitronix,st7735r: Convert to DT schema Date: Wed, 15 Jan 2020 13:45:44 +0100 Message-Id: <20200115124548.3951-2-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200115124548.3951-1-geert+renesas@glider.be> References: <20200115124548.3951-1-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the DT binding documentation for Sitronix ST7735R displays to DT schema. Add a reference to the Adafruit 1.8" LCD while at it. Signed-off-by: Geert Uytterhoeven --- v2: - New. --- .../bindings/display/sitronix,st7735r.txt | 35 ---------- .../bindings/display/sitronix,st7735r.yaml | 65 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 66 insertions(+), 36 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/sitronix,st7735r.txt create mode 100644 Documentation/devicetree/bindings/display/sitronix,st7735r.yaml diff --git a/Documentation/devicetree/bindings/display/sitronix,st7735r.txt b/Documentation/devicetree/bindings/display/sitronix,st7735r.txt deleted file mode 100644 index cd5c7186890a2be7..0000000000000000 --- a/Documentation/devicetree/bindings/display/sitronix,st7735r.txt +++ /dev/null @@ -1,35 +0,0 @@ -Sitronix ST7735R display panels - -This binding is for display panels using a Sitronix ST7735R controller in SPI -mode. - -Required properties: -- compatible: "jianda,jd-t18003-t01", "sitronix,st7735r" -- dc-gpios: Display data/command selection (D/CX) -- reset-gpios: Reset signal (RSTX) - -The node for this driver must be a child node of a SPI controller, hence -all mandatory properties described in ../spi/spi-bus.txt must be specified. - -Optional properties: -- rotation: panel rotation in degrees counter clockwise (0,90,180,270) -- backlight: phandle of the backlight device attached to the panel - -Example: - - backlight: backlight { - compatible = "gpio-backlight"; - gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; - }; - - ... - - display@0{ - compatible = "jianda,jd-t18003-t01", "sitronix,st7735r"; - reg = <0>; - spi-max-frequency = <32000000>; - dc-gpios = <&gpio 43 GPIO_ACTIVE_HIGH>; - reset-gpios = <&gpio 80 GPIO_ACTIVE_HIGH>; - rotation = <270>; - backlight = &backlight; - }; diff --git a/Documentation/devicetree/bindings/display/sitronix,st7735r.yaml b/Documentation/devicetree/bindings/display/sitronix,st7735r.yaml new file mode 100644 index 0000000000000000..21bccc91f74255e1 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sitronix,st7735r.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/sitronix,st7735r.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sitronix ST7735R Display Panels Device Tree Bindings + +maintainers: + - David Lechner + +description: + This binding is for display panels using a Sitronix ST7735R controller in + SPI mode. + +allOf: + - $ref: panel/panel-common.yaml# + +properties: + compatible: + oneOf: + - description: + Adafruit 1.8" 160x128 Color TFT LCD (Product ID 358 or 618) + items: + - enum: + - jianda,jd-t18003-t01 + - const: sitronix,st7735r + + spi-max-frequency: + maximum: 32000000 + + dc-gpios: + maxItems: 1 + description: Display data/command selection (D/CX) + +required: + - compatible + - reg + - dc-gpios + - reset-gpios + +examples: + - | + #include + + backlight: backlight { + compatible = "gpio-backlight"; + gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; + }; + + spi { + #address-cells = <1>; + #size-cells = <0>; + + display@0{ + compatible = "jianda,jd-t18003-t01", "sitronix,st7735r"; + reg = <0>; + spi-max-frequency = <32000000>; + dc-gpios = <&gpio 43 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio 80 GPIO_ACTIVE_HIGH>; + rotation = <270>; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index ea8262509bdd21ac..3007f83bd504194a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5382,7 +5382,7 @@ M: David Lechner T: git git://anongit.freedesktop.org/drm/drm-misc S: Maintained F: drivers/gpu/drm/tiny/st7735r.c -F: Documentation/devicetree/bindings/display/sitronix,st7735r.txt +F: Documentation/devicetree/bindings/display/sitronix,st7735r.yaml DRM DRIVER FOR SONY ACX424AKP PANELS M: Linus Walleij -- 2.17.1