Sitronix ST7571 Display Controller

Schema identifier ($id): "http://devicetree.org/schemas/display/sitronix,st7571.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Marcus Folkesson <marcus.folkesson@gmail.com>"

Sitronix ST7571 is a driver and controller for 4-level gray scale and monochrome dot matrix LCD panels.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): panel/panel-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sitronix,st7571"

reg — required here #

Maximum number of items (maxItems): 1

sitronix,grayscale — not listed as required here #

Value type (type): "boolean"

Display supports 4-level grayscale.

sitronix,inverted — not listed as required here #

Value type (type): "boolean"

Display pixels are inverted, i.e. 0 is white and 1 is black.

reset-gpios — required here #

true — No constraints added by this property rule.

width-mm — required here #

true — No constraints added by this property rule.

height-mm — required here #

true — No constraints added by this property rule.

panel-timing — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "reset-gpios", "width-mm", "height-mm", "panel-timing"

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>

i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  display@3f {
    compatible = "sitronix,st7571";
    reg = <0x3f>;
    reset-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
    width-mm = <37>;
    height-mm = <27>;

    panel-timing {
      hactive = <128>;
      vactive = <96>;
      hback-porch = <0>;
      vback-porch = <0>;
      clock-frequency = <0>;
      hfront-porch = <0>;
      hsync-len = <0>;
      vfront-porch = <0>;
      vsync-len = <0>;
    };
  };
};

spi {
  #address-cells = <1>;
  #size-cells = <0>;

  display@0 {
    compatible = "sitronix,st7571";
    reg = <0>;
    reset-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
    width-mm = <37>;
    height-mm = <27>;

    panel-timing {
      hactive = <128>;
      vactive = <96>;
      hback-porch = <0>;
      vback-porch = <0>;
      clock-frequency = <0>;
      hfront-porch = <0>;
      hsync-len = <0>;
      vfront-porch = <0>;
      vsync-len = <0>;
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page