Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/panel/sitronix,st7789v.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Sitronix ST7789V RGB panel with SPI control bus
0008 
0009 maintainers:
0010   - Maxime Ripard <mripard@kernel.org>
0011 
0012 allOf:
0013   - $ref: panel-common.yaml#
0014   - $ref: /schemas/spi/spi-peripheral-props.yaml#
0015 
0016 properties:
0017   compatible:
0018     const: sitronix,st7789v
0019 
0020   reg: true
0021   reset-gpios: true
0022   power-supply: true
0023   backlight: true
0024   port: true
0025 
0026   spi-cpha: true
0027   spi-cpol: true
0028 
0029 required:
0030   - compatible
0031   - reg
0032   - reset-gpios
0033   - power-supply
0034 
0035 unevaluatedProperties: false
0036 
0037 examples:
0038   - |
0039     #include <dt-bindings/gpio/gpio.h>
0040 
0041     spi {
0042         #address-cells = <1>;
0043         #size-cells = <0>;
0044 
0045         panel@0 {
0046             compatible = "sitronix,st7789v";
0047             reg = <0>;
0048             reset-gpios = <&pio 6 11 GPIO_ACTIVE_LOW>;
0049             backlight = <&pwm_bl>;
0050             power-supply = <&power>;
0051             spi-max-frequency = <100000>;
0052             spi-cpol;
0053             spi-cpha;
0054 
0055             port {
0056                 panel_input: endpoint {
0057                     remote-endpoint = <&tcon0_out_panel>;
0058                 };
0059             };
0060         };
0061     };
0062 
0063 ...