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:
19893cfba7SMiquel Raynal      - edt,et028013dma
20ff984a81SSebastian Reichel      - inanbo,t28cp45tn89-v17
21*a5382e35SMichael Riesch      - jasonic,jt240mhqs-hwt-ek-e3
22ff984a81SSebastian Reichel      - sitronix,st7789v
236c424e68SSam Ravnborg
246c424e68SSam Ravnborg  reg: true
256c424e68SSam Ravnborg  reset-gpios: true
266c424e68SSam Ravnborg  power-supply: true
276c424e68SSam Ravnborg  backlight: true
286c424e68SSam Ravnborg  port: true
29e83172ecSMichael Riesch  rotation: true
306c424e68SSam Ravnborg
31233363abSKrzysztof Kozlowski  spi-cpha: true
32233363abSKrzysztof Kozlowski  spi-cpol: true
33233363abSKrzysztof Kozlowski
349943981aSMiquel Raynal  spi-rx-bus-width:
359943981aSMiquel Raynal    minimum: 0
369943981aSMiquel Raynal    maximum: 1
379943981aSMiquel Raynal
3865fda4b2SKrzysztof Kozlowski  dc-gpios:
3965fda4b2SKrzysztof Kozlowski    maxItems: 1
4065fda4b2SKrzysztof Kozlowski    description: DCX pin, Display data/command selection pin in parallel interface
4165fda4b2SKrzysztof Kozlowski
426c424e68SSam Ravnborgrequired:
436c424e68SSam Ravnborg  - compatible
446c424e68SSam Ravnborg  - reg
456c424e68SSam Ravnborg  - power-supply
466c424e68SSam Ravnborg
476c424e68SSam RavnborgunevaluatedProperties: false
486c424e68SSam Ravnborg
496c424e68SSam Ravnborgexamples:
506c424e68SSam Ravnborg  - |
516c424e68SSam Ravnborg    #include <dt-bindings/gpio/gpio.h>
526c424e68SSam Ravnborg
536c424e68SSam Ravnborg    spi {
546c424e68SSam Ravnborg        #address-cells = <1>;
556c424e68SSam Ravnborg        #size-cells = <0>;
566c424e68SSam Ravnborg
576c424e68SSam Ravnborg        panel@0 {
586c424e68SSam Ravnborg            compatible = "sitronix,st7789v";
596c424e68SSam Ravnborg            reg = <0>;
606c424e68SSam Ravnborg            reset-gpios = <&pio 6 11 GPIO_ACTIVE_LOW>;
616c424e68SSam Ravnborg            backlight = <&pwm_bl>;
626c424e68SSam Ravnborg            power-supply = <&power>;
63e83172ecSMichael Riesch            rotation = <180>;
646c424e68SSam Ravnborg            spi-max-frequency = <100000>;
656c424e68SSam Ravnborg            spi-cpol;
666c424e68SSam Ravnborg            spi-cpha;
676c424e68SSam Ravnborg
686c424e68SSam Ravnborg            port {
696c424e68SSam Ravnborg                panel_input: endpoint {
706c424e68SSam Ravnborg                    remote-endpoint = <&tcon0_out_panel>;
716c424e68SSam Ravnborg                };
726c424e68SSam Ravnborg            };
736c424e68SSam Ravnborg        };
746c424e68SSam Ravnborg    };
756c424e68SSam Ravnborg
766c424e68SSam Ravnborg...
77