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