1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/panel/sitronix,st7789v.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Sitronix ST7789V RGB panel with SPI control bus
8
9maintainers:
10  - Maxime Ripard <mripard@kernel.org>
11
12allOf:
13  - $ref: panel-common.yaml#
14  - $ref: /schemas/spi/spi-peripheral-props.yaml#
15
16properties:
17  compatible:
18    enum:
19      - edt,et028013dma
20      - inanbo,t28cp45tn89-v17
21      - sitronix,st7789v
22
23  reg: true
24  reset-gpios: true
25  power-supply: true
26  backlight: true
27  port: true
28
29  spi-cpha: true
30  spi-cpol: true
31
32  spi-rx-bus-width:
33    minimum: 0
34    maximum: 1
35
36  dc-gpios:
37    maxItems: 1
38    description: DCX pin, Display data/command selection pin in parallel interface
39
40required:
41  - compatible
42  - reg
43  - power-supply
44
45unevaluatedProperties: false
46
47examples:
48  - |
49    #include <dt-bindings/gpio/gpio.h>
50
51    spi {
52        #address-cells = <1>;
53        #size-cells = <0>;
54
55        panel@0 {
56            compatible = "sitronix,st7789v";
57            reg = <0>;
58            reset-gpios = <&pio 6 11 GPIO_ACTIVE_LOW>;
59            backlight = <&pwm_bl>;
60            power-supply = <&power>;
61            spi-max-frequency = <100000>;
62            spi-cpol;
63            spi-cpha;
64
65            port {
66                panel_input: endpoint {
67                    remote-endpoint = <&tcon0_out_panel>;
68                };
69            };
70        };
71    };
72
73...
74