mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
233363aba7
The spi-cpha and spi-cpol properties are device specific and should be accepted only if device really needs them. Drop them from common spi-peripheral-props.yaml schema, mention in few panel drivers which use them and include instead in the SPI controller bindings. The controller bindings will provide CPHA/CPOL type validation and one place for description. Each device schema must list the properties if they are applicable. Suggested-by: Jonathan Cameron <jic23@kernel.org> Suggested-by: Rob Herring <robh@kernel.org> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220722191539.90641-2-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
64 lines
1.2 KiB
YAML
64 lines
1.2 KiB
YAML
# 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#
|
|
- $ref: /schemas/spi/spi-peripheral-props.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
const: sitronix,st7789v
|
|
|
|
reg: true
|
|
reset-gpios: true
|
|
power-supply: true
|
|
backlight: true
|
|
port: true
|
|
|
|
spi-cpha: true
|
|
spi-cpol: true
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- reset-gpios
|
|
- 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>;
|
|
spi-max-frequency = <100000>;
|
|
spi-cpol;
|
|
spi-cpha;
|
|
|
|
port {
|
|
panel_input: endpoint {
|
|
remote-endpoint = <&tcon0_out_panel>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
...
|