From: David Lechner <david@lechnology.com>
To: "Geert Uytterhoeven" <geert+renesas@glider.be>,
"Noralf Trønnes" <noralf@tronnes.org>,
"David Airlie" <airlied@linux.ie>,
"Daniel Vetter" <daniel@ffwll.ch>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Rob Herring" <robh+dt@kernel.org>,
"Mark Rutland" <mark.rutland@arm.com>
Cc: Sam Ravnborg <sam@ravnborg.org>,
Chris Brandt <chris.brandt@renesas.com>,
Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/5] dt-bindings: display: sitronix,st7735r: Convert to DT schema
Date: Mon, 20 Jan 2020 10:00:49 -0600 [thread overview]
Message-ID: <ba21d2c8-ccc6-2704-fa1f-d28239700547@lechnology.com> (raw)
In-Reply-To: <20200115124548.3951-2-geert+renesas@glider.be>
On 1/15/20 6:45 AM, Geert Uytterhoeven wrote:
> 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 <geert+renesas@glider.be>
> ---
> 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 <david@lechnology.com>
> +
> +description:
> + This binding is for display panels using a Sitronix ST7735R controller in
> + SPI mode.
> +
> +allOf:
> + - $ref: panel/panel-common.yaml#
not all of these properties are applicable.
> +
> +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
Missing optional rotation and backlight properties.
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + 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 <david@lechnology.com>
> 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 <linus.walleij@linaro.org>
>
next prev parent reply other threads:[~2020-01-20 16:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-15 12:45 [PATCH v2 0/5] drm: Add support for Okaya RH128128T Geert Uytterhoeven
2020-01-15 12:45 ` [PATCH v2 1/5] dt-bindings: display: sitronix,st7735r: Convert to DT schema Geert Uytterhoeven
2020-01-15 21:01 ` Sam Ravnborg
2020-01-15 22:06 ` Geert Uytterhoeven
2020-01-20 16:00 ` David Lechner [this message]
2020-01-20 19:02 ` [PATCH] dt-bindings: restrict properties for sitronix,st7735r Sam Ravnborg
2020-01-23 7:24 ` Sam Ravnborg
2020-01-23 7:43 ` Geert Uytterhoeven
2020-01-23 18:19 ` Sam Ravnborg
2020-01-23 14:41 ` Rob Herring
2020-01-15 12:45 ` [PATCH v2 2/5] dt-bindings: display: sitronix,st7735r: Add Okaya RH128128T Geert Uytterhoeven
2020-01-15 21:01 ` Sam Ravnborg
2020-01-15 12:45 ` [PATCH v2 3/5] drm/mipi_dbi: Add support for display offsets Geert Uytterhoeven
2020-01-17 21:12 ` Sam Ravnborg
2020-01-19 16:03 ` Noralf Trønnes
2020-01-15 12:45 ` [PATCH v2 4/5] drm: tiny: st7735r: Prepare for adding support for more displays Geert Uytterhoeven
2020-01-15 12:45 ` [PATCH v2 5/5] drm: tiny: st7735r: Add support for Okaya RH128128T Geert Uytterhoeven
2020-01-19 17:15 ` [PATCH v2 0/5] drm: " Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ba21d2c8-ccc6-2704-fa1f-d28239700547@lechnology.com \
--to=david@lechnology.com \
--cc=airlied@linux.ie \
--cc=chris.brandt@renesas.com \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=geert+renesas@glider.be \
--cc=kieran.bingham+renesas@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mark.rutland@arm.com \
--cc=mripard@kernel.org \
--cc=noralf@tronnes.org \
--cc=robh+dt@kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).