Skip to content

Commit

Permalink
dt-bindings: display: sitronix,st7735r: Convert to DT schema
Browse files Browse the repository at this point in the history
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>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200115124548.3951-2-geert+renesas@glider.be
  • Loading branch information
geertu authored and sravnborg committed Jan 19, 2020
1 parent 4e0311d commit abdd9e3
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 36 deletions.
35 changes: 0 additions & 35 deletions Documentation/devicetree/bindings/display/sitronix,st7735r.txt

This file was deleted.

65 changes: 65 additions & 0 deletions Documentation/devicetree/bindings/display/sitronix,st7735r.yaml
Original file line number Diff line number Diff line change
@@ -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#

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 <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>;
};
};
...
2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -5361,7 +5361,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>
Expand Down

0 comments on commit abdd9e3

Please sign in to comment.