GNU Linux-libre 5.19-rc6-gnu
[releases.git] / Documentation / devicetree / bindings / display / panel / sitronix,st7789v.yaml
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
7 title: Sitronix ST7789V RGB panel with SPI control bus
8
9 maintainers:
10   - Maxime Ripard <mripard@kernel.org>
11
12 allOf:
13   - $ref: panel-common.yaml#
14   - $ref: /schemas/spi/spi-peripheral-props.yaml#
15
16 properties:
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 required:
27   - compatible
28   - reg
29   - reset-gpios
30   - power-supply
31
32 unevaluatedProperties: false
33
34 examples:
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 ...