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  rotation: true
29
30  spi-cpha: true
31  spi-cpol: true
32
33  spi-rx-bus-width:
34    minimum: 0
35    maximum: 1
36
37  dc-gpios:
38    maxItems: 1
39    description: DCX pin, Display data/command selection pin in parallel interface
40
41required:
42  - compatible
43  - reg
44  - power-supply
45
46unevaluatedProperties: false
47
48examples:
49  - |
50    #include <dt-bindings/gpio/gpio.h>
51
52    spi {
53        #address-cells = <1>;
54        #size-cells = <0>;
55
56        panel@0 {
57            compatible = "sitronix,st7789v";
58            reg = <0>;
59            reset-gpios = <&pio 6 11 GPIO_ACTIVE_LOW>;
60            backlight = <&pwm_bl>;
61            power-supply = <&power>;
62            rotation = <180>;
63            spi-max-frequency = <100000>;
64            spi-cpol;
65            spi-cpha;
66
67            port {
68                panel_input: endpoint {
69                    remote-endpoint = <&tcon0_out_panel>;
70                };
71            };
72        };
73    };
74
75...
76