Commit 5b4248bf authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring
Browse files

dt-bindings: display: panel: use spi-peripheral-props.yaml



For devices connectable by SPI bus (e.g. already using
"spi-max-frequency" property), reference the "spi-peripheral-props.yaml"
schema to allow using all SPI device properties, even these which device
bindings author did not tried yet.

Change "additionalProperties" to "unevaluatedProperties", so the actual
other properties from "spi-peripheral-props.yaml" can be used.  This has
additional impact of allowing also other properties from
panel-common.yaml to be used.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221004120907.72767-1-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 91924d9b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ description:

allOf:
  - $ref: panel-common.yaml#
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

properties:
  compatible:
@@ -41,7 +42,7 @@ required:
  - dc-gpios
  - reset-gpios

additionalProperties: false
unevaluatedProperties: false

examples:
  - |
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ description: |

allOf:
  - $ref: panel-common.yaml#
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

properties:
  compatible:
+2 −1
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ maintainers:

allOf:
  - $ref: panel-common.yaml#
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

properties:
  compatible:
@@ -34,7 +35,7 @@ required:
  - reset-gpios
  - port

additionalProperties: false
unevaluatedProperties: false

examples:
  - |
+2 −3
Original line number Diff line number Diff line
@@ -9,14 +9,13 @@ title: Samsung LMS380KF01 display panel
description: The LMS380KF01 is a 480x800 DPI display panel from Samsung Mobile
  Displays (SMD) utilizing the WideChips WS2401 display controller. It can be
  used with internal or external backlight control.
  The panel must obey the rules for a SPI slave device as specified in
  spi/spi-controller.yaml

maintainers:
  - Linus Walleij <linus.walleij@linaro.org>

allOf:
  - $ref: panel-common.yaml#
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

properties:
  compatible:
@@ -59,7 +58,7 @@ required:
  - spi-cpol
  - port

additionalProperties: false
unevaluatedProperties: false

examples:
  - |
+2 −1
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ maintainers:

allOf:
  - $ref: panel-common.yaml#
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

properties:
  compatible:
@@ -51,7 +52,7 @@ required:
  - spi-cpol
  - port

additionalProperties: false
unevaluatedProperties: false

examples:
  - |
Loading