2020-04-08 21:51:00 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
|
|
|
$id: http://devicetree.org/schemas/display/panel/sitronix,st7789v.yaml#
|
|
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
|
|
|
|
title: Sitronix ST7789V RGB panel with SPI control bus
|
|
|
|
|
|
|
|
maintainers:
|
|
|
|
- Maxime Ripard <mripard@kernel.org>
|
|
|
|
|
|
|
|
allOf:
|
|
|
|
- $ref: panel-common.yaml#
|
dt-bindings: display: Add SPI peripheral schema to SPI based displays
With 'unevaluatedProperties' support enabled, several SPI based display
binding examples have warnings:
Documentation/devicetree/bindings/display/panel/samsung,ld9040.example.dt.yaml: lcd@0: Unevaluated properties are not allowed ('#address-cells', '#size-cells', 'spi-max-frequency', 'spi-cpol', 'spi-cpha' were unexpected)
Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.example.dt.yaml: panel@0: Unevaluated properties are not allowed ('spi-max-frequency', 'spi-3wire' were unexpected)
Documentation/devicetree/bindings/display/panel/ilitek,ili9322.example.dt.yaml: display@0: Unevaluated properties are not allowed ('reg' was unexpected)
Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.example.dt.yaml: display@0: Unevaluated properties are not allowed ('spi-max-frequency' was unexpected)
Documentation/devicetree/bindings/display/panel/abt,y030xx067a.example.dt.yaml: panel@0: Unevaluated properties are not allowed ('spi-max-frequency' was unexpected)
Documentation/devicetree/bindings/display/panel/sony,acx565akm.example.dt.yaml: panel@2: Unevaluated properties are not allowed ('spi-max-frequency', 'reg' were unexpected)
Documentation/devicetree/bindings/display/panel/tpo,td.example.dt.yaml: panel@0: Unevaluated properties are not allowed ('spi-max-frequency', 'spi-cpol', 'spi-cpha' were unexpected)
Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.example.dt.yaml: panel@0: Unevaluated properties are not allowed ('reg', 'spi-max-frequency', 'spi-cpol', 'spi-cpha' were unexpected)
Documentation/devicetree/bindings/display/panel/innolux,ej030na.example.dt.yaml: panel@0: Unevaluated properties are not allowed ('spi-max-frequency' was unexpected)
Documentation/devicetree/bindings/display/panel/sitronix,st7789v.example.dt.yaml: panel@0: Unevaluated properties are not allowed ('spi-max-frequency', 'spi-cpol', 'spi-cpha' were unexpected)
Fix all of these by adding a reference to spi-peripheral-props.yaml.
With this, the description that the binding must follow
spi-controller.yaml is both a bit out of date and redundant, so remove
it.
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://lore.kernel.org/r/20211221125209.1195932-1-robh@kernel.org
2021-12-21 08:52:09 -04:00
|
|
|
- $ref: /schemas/spi/spi-peripheral-props.yaml#
|
2020-04-08 21:51:00 +02:00
|
|
|
|
|
|
|
properties:
|
|
|
|
compatible:
|
2023-07-14 03:37:39 +02:00
|
|
|
enum:
|
2023-07-14 03:37:51 +02:00
|
|
|
- edt,et028013dma
|
2023-07-14 03:37:39 +02:00
|
|
|
- inanbo,t28cp45tn89-v17
|
2023-08-04 15:02:33 +02:00
|
|
|
- jasonic,jt240mhqs-hwt-ek-e3
|
2023-07-14 03:37:39 +02:00
|
|
|
- sitronix,st7789v
|
2020-04-08 21:51:00 +02:00
|
|
|
|
2024-05-09 11:42:52 +02:00
|
|
|
reg:
|
|
|
|
maxItems: 1
|
|
|
|
|
2020-04-08 21:51:00 +02:00
|
|
|
reset-gpios: true
|
|
|
|
power-supply: true
|
|
|
|
backlight: true
|
|
|
|
port: true
|
2023-08-04 13:23:10 +02:00
|
|
|
rotation: true
|
2020-04-08 21:51:00 +02:00
|
|
|
|
2022-07-22 21:15:39 +02:00
|
|
|
spi-cpha: true
|
|
|
|
spi-cpol: true
|
|
|
|
|
2023-07-14 03:37:52 +02:00
|
|
|
spi-rx-bus-width:
|
|
|
|
minimum: 0
|
|
|
|
maximum: 1
|
|
|
|
|
2023-03-26 18:47:00 +02:00
|
|
|
dc-gpios:
|
|
|
|
maxItems: 1
|
|
|
|
description: DCX pin, Display data/command selection pin in parallel interface
|
|
|
|
|
2020-04-08 21:51:00 +02:00
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
|
|
|
- power-supply
|
|
|
|
|
|
|
|
unevaluatedProperties: false
|
|
|
|
|
|
|
|
examples:
|
|
|
|
- |
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
|
|
|
|
spi {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
panel@0 {
|
|
|
|
compatible = "sitronix,st7789v";
|
|
|
|
reg = <0>;
|
|
|
|
reset-gpios = <&pio 6 11 GPIO_ACTIVE_LOW>;
|
|
|
|
backlight = <&pwm_bl>;
|
|
|
|
power-supply = <&power>;
|
2023-08-04 13:23:10 +02:00
|
|
|
rotation = <180>;
|
2020-04-08 21:51:00 +02:00
|
|
|
spi-max-frequency = <100000>;
|
|
|
|
spi-cpol;
|
|
|
|
spi-cpha;
|
|
|
|
|
|
|
|
port {
|
|
|
|
panel_input: endpoint {
|
|
|
|
remote-endpoint = <&tcon0_out_panel>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
...
|