| 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 <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: panel-common.yaml# |
| 14 |
- $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 15 |
|
| 16 |
properties: |
| 17 |
compatible: |
| 18 |
enum: |
| 19 |
- edt,et028013dma |
| 20 |
- inanbo,t28cp45tn89-v17 |
| 21 |
- jasonic,jt240mhqs-hwt-ek-e3 |
| 22 |
- sitronix,st7789v |
| 23 |
|
| 24 |
reg: |
| 25 |
maxItems: 1 |
| 26 |
|
| 27 |
reset-gpios: true |
| 28 |
power-supply: true |
| 29 |
backlight: true |
| 30 |
port: true |
| 31 |
rotation: true |
| 32 |
|
| 33 |
spi-cpha: true |
| 34 |
spi-cpol: true |
| 35 |
|
| 36 |
spi-rx-bus-width: |
| 37 |
items: |
| 38 |
minimum: 0 |
| 39 |
maximum: 1 |
| 40 |
|
| 41 |
dc-gpios: |
| 42 |
maxItems: 1 |
| 43 |
description: DCX pin, Display data/command selection pin in parallel interface |
| 44 |
|
| 45 |
required: |
| 46 |
- compatible |
| 47 |
- reg |
| 48 |
- power-supply |
| 49 |
|
| 50 |
unevaluatedProperties: false |
| 51 |
|
| 52 |
examples: |
| 53 |
- | |
| 54 |
#include <dt-bindings/gpio/gpio.h> |
| 55 |
|
| 56 |
spi { |
| 57 |
#address-cells = <1>; |
| 58 |
#size-cells = <0>; |
| 59 |
|
| 60 |
panel@0 { |
| 61 |
compatible = "sitronix,st7789v"; |
| 62 |
reg = <0>; |
| 63 |
reset-gpios = <&pio 6 11 GPIO_ACTIVE_LOW>; |
| 64 |
backlight = <&pwm_bl>; |
| 65 |
power-supply = <&power>; |
| 66 |
rotation = <180>; |
| 67 |
spi-max-frequency = <100000>; |
| 68 |
spi-cpol; |
| 69 |
spi-cpha; |
| 70 |
|
| 71 |
port { |
| 72 |
panel_input: endpoint { |
| 73 |
remote-endpoint = <&tcon0_out_panel>; |
| 74 |
}; |
| 75 |
}; |
| 76 |
}; |
| 77 |
}; |
| 78 |
|
| 79 |
... |