Sitronix ST7735R Display Panels
Schema identifier ($id): "http://devicetree.org/schemas/display/sitronix,st7735r.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "David Lechner <david@lechnology.com>"
This binding is for display panels using a Sitronix ST7715R or ST7735R controller in SPI mode.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):panel/panel-common.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Adafruit 1.8" 160x128 Color TFT LCD (Product ID 358 or 618)
Array item rules (
items)Item 1
Item 2
Exact value (
const):"sitronix,st7735r"
Rule 2
Okaya 1.44" 128x128 Color TFT LCD (E.g. Renesas YRSK-LCD-PMOD)
Array item rules (
items)Item 1
Item 2
Exact value (
const):"sitronix,st7715r"
dc-gpios — required here #
Maximum number of items (maxItems): 1
Display data/command selection (D/CX)
backlight — not listed as required here #
true — No constraints added by this property rule.
reg — required here #
true — No constraints added by this property rule.
spi-max-frequency — not listed as required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
true — No constraints added by this property rule.
rotation — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "dc-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
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>;
backlight = <&backlight>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only