1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/display/sitronix,st7571.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Sitronix ST7571 Display Controller 8 9maintainers: 10 - Marcus Folkesson <marcus.folkesson@gmail.com> 11 12description: 13 Sitronix ST7571 is a driver and controller for 4-level gray 14 scale and monochrome dot matrix LCD panels. 15 16allOf: 17 - $ref: panel/panel-common.yaml# 18 19properties: 20 compatible: 21 const: sitronix,st7571 22 23 reg: 24 maxItems: 1 25 26 sitronix,grayscale: 27 type: boolean 28 description: 29 Display supports 4-level grayscale. 30 31 reset-gpios: true 32 width-mm: true 33 height-mm: true 34 panel-timing: true 35 36required: 37 - compatible 38 - reg 39 - reset-gpios 40 - width-mm 41 - height-mm 42 - panel-timing 43 44additionalProperties: false 45 46examples: 47 - | 48 #include <dt-bindings/gpio/gpio.h> 49 50 i2c { 51 #address-cells = <1>; 52 #size-cells = <0>; 53 54 display@3f { 55 compatible = "sitronix,st7571"; 56 reg = <0x3f>; 57 reset-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; 58 width-mm = <37>; 59 height-mm = <27>; 60 61 panel-timing { 62 hactive = <128>; 63 vactive = <96>; 64 hback-porch = <0>; 65 vback-porch = <0>; 66 clock-frequency = <0>; 67 hfront-porch = <0>; 68 hsync-len = <0>; 69 vfront-porch = <0>; 70 vsync-len = <0>; 71 }; 72 }; 73 }; 74