mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 07:13:56 -04:00
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>
60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/display/panel/lgphilips,lb035q02.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: LG.Philips LB035Q02 Panel
|
|
|
|
maintainers:
|
|
- Tomi Valkeinen <tomi.valkeinen@ti.com>
|
|
|
|
allOf:
|
|
- $ref: panel-common.yaml#
|
|
- $ref: /schemas/spi/spi-peripheral-props.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
const: lgphilips,lb035q02
|
|
|
|
label: true
|
|
enable-gpios: true
|
|
port: true
|
|
|
|
spi-cpha: true
|
|
spi-cpol: true
|
|
|
|
required:
|
|
- compatible
|
|
- enable-gpios
|
|
- port
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
spi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
panel: panel@0 {
|
|
compatible = "lgphilips,lb035q02";
|
|
reg = <0>;
|
|
spi-max-frequency = <100000>;
|
|
spi-cpol;
|
|
spi-cpha;
|
|
|
|
label = "lcd";
|
|
|
|
enable-gpios = <&gpio7 7 0>;
|
|
|
|
port {
|
|
lcd_in: endpoint {
|
|
remote-endpoint = <&dpi_out>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
...
|