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