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
9description: |
10  The panel must obey the rules for a SPI slave device as specified in
11  spi/spi-controller.yaml
12
13maintainers:
14  - Maxime Ripard <mripard@kernel.org>
15
16allOf:
17  - $ref: panel-common.yaml#
18
19properties:
20  compatible:
21    const: sitronix,st7789v
22
23  reg: true
24  reset-gpios: true
25  power-supply: true
26  backlight: true
27  port: true
28
29required:
30  - compatible
31  - reg
32  - reset-gpios
33  - power-supply
34
35unevaluatedProperties: false
36
37examples:
38  - |
39    #include <dt-bindings/gpio/gpio.h>
40
41    spi {
42        #address-cells = <1>;
43        #size-cells = <0>;
44
45        panel@0 {
46            compatible = "sitronix,st7789v";
47            reg = <0>;
48            reset-gpios = <&pio 6 11 GPIO_ACTIVE_LOW>;
49            backlight = <&pwm_bl>;
50            power-supply = <&power>;
51            spi-max-frequency = <100000>;
52            spi-cpol;
53            spi-cpha;
54
55            port {
56                panel_input: endpoint {
57                    remote-endpoint = <&tcon0_out_panel>;
58                };
59            };
60        };
61    };
62
63...
64