16c424e68SSam Ravnborg# SPDX-License-Identifier: GPL-2.0
26c424e68SSam Ravnborg%YAML 1.2
36c424e68SSam Ravnborg---
46c424e68SSam Ravnborg$id: http://devicetree.org/schemas/display/panel/sitronix,st7789v.yaml#
56c424e68SSam Ravnborg$schema: http://devicetree.org/meta-schemas/core.yaml#
66c424e68SSam Ravnborg
76c424e68SSam Ravnborgtitle: Sitronix ST7789V RGB panel with SPI control bus
86c424e68SSam Ravnborg
96c424e68SSam Ravnborgmaintainers:
106c424e68SSam Ravnborg  - Maxime Ripard <mripard@kernel.org>
116c424e68SSam Ravnborg
126c424e68SSam RavnborgallOf:
136c424e68SSam Ravnborg  - $ref: panel-common.yaml#
14c476d430SRob Herring  - $ref: /schemas/spi/spi-peripheral-props.yaml#
156c424e68SSam Ravnborg
166c424e68SSam Ravnborgproperties:
176c424e68SSam Ravnborg  compatible:
18ff984a81SSebastian Reichel    enum:
19*893cfba7SMiquel Raynal      - edt,et028013dma
20ff984a81SSebastian Reichel      - inanbo,t28cp45tn89-v17
21ff984a81SSebastian Reichel      - sitronix,st7789v
226c424e68SSam Ravnborg
236c424e68SSam Ravnborg  reg: true
246c424e68SSam Ravnborg  reset-gpios: true
256c424e68SSam Ravnborg  power-supply: true
266c424e68SSam Ravnborg  backlight: true
276c424e68SSam Ravnborg  port: true
286c424e68SSam Ravnborg
29233363abSKrzysztof Kozlowski  spi-cpha: true
30233363abSKrzysztof Kozlowski  spi-cpol: true
31233363abSKrzysztof Kozlowski
3265fda4b2SKrzysztof Kozlowski  dc-gpios:
3365fda4b2SKrzysztof Kozlowski    maxItems: 1
3465fda4b2SKrzysztof Kozlowski    description: DCX pin, Display data/command selection pin in parallel interface
3565fda4b2SKrzysztof Kozlowski
366c424e68SSam Ravnborgrequired:
376c424e68SSam Ravnborg  - compatible
386c424e68SSam Ravnborg  - reg
396c424e68SSam Ravnborg  - power-supply
406c424e68SSam Ravnborg
416c424e68SSam RavnborgunevaluatedProperties: false
426c424e68SSam Ravnborg
436c424e68SSam Ravnborgexamples:
446c424e68SSam Ravnborg  - |
456c424e68SSam Ravnborg    #include <dt-bindings/gpio/gpio.h>
466c424e68SSam Ravnborg
476c424e68SSam Ravnborg    spi {
486c424e68SSam Ravnborg        #address-cells = <1>;
496c424e68SSam Ravnborg        #size-cells = <0>;
506c424e68SSam Ravnborg
516c424e68SSam Ravnborg        panel@0 {
526c424e68SSam Ravnborg            compatible = "sitronix,st7789v";
536c424e68SSam Ravnborg            reg = <0>;
546c424e68SSam Ravnborg            reset-gpios = <&pio 6 11 GPIO_ACTIVE_LOW>;
556c424e68SSam Ravnborg            backlight = <&pwm_bl>;
566c424e68SSam Ravnborg            power-supply = <&power>;
576c424e68SSam Ravnborg            spi-max-frequency = <100000>;
586c424e68SSam Ravnborg            spi-cpol;
596c424e68SSam Ravnborg            spi-cpha;
606c424e68SSam Ravnborg
616c424e68SSam Ravnborg            port {
626c424e68SSam Ravnborg                panel_input: endpoint {
636c424e68SSam Ravnborg                    remote-endpoint = <&tcon0_out_panel>;
646c424e68SSam Ravnborg                };
656c424e68SSam Ravnborg            };
666c424e68SSam Ravnborg        };
676c424e68SSam Ravnborg    };
686c424e68SSam Ravnborg
696c424e68SSam Ravnborg...
70