xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/sitronix,st7789v.yaml (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
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
26required:
27  - compatible
28  - reg
29  - reset-gpios
30  - power-supply
31
32unevaluatedProperties: false
33
34examples:
35  - |
36    #include <dt-bindings/gpio/gpio.h>
37
38    spi {
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        panel@0 {
43            compatible = "sitronix,st7789v";
44            reg = <0>;
45            reset-gpios = <&pio 6 11 GPIO_ACTIVE_LOW>;
46            backlight = <&pwm_bl>;
47            power-supply = <&power>;
48            spi-max-frequency = <100000>;
49            spi-cpol;
50            spi-cpha;
51
52            port {
53                panel_input: endpoint {
54                    remote-endpoint = <&tcon0_out_panel>;
55                };
56            };
57        };
58    };
59
60...
61