Commit c476d430 authored by Rob Herring's avatar Rob Herring
Browse files

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: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarPaul Cercueil <paul@crapouillou.net>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://lore.kernel.org/r/20211221125209.1195932-1-robh@kernel.org
parent d8adf5b9
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -6,15 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#


title: Asia Better Technology 3.0" (320x480 pixels) 24-bit IPS LCD panel
title: Asia Better Technology 3.0" (320x480 pixels) 24-bit IPS LCD panel


description: |
  The panel must obey the rules for a SPI slave device as specified in
  spi/spi-controller.yaml

maintainers:
maintainers:
  - Paul Cercueil <paul@crapouillou.net>
  - Paul Cercueil <paul@crapouillou.net>


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


properties:
properties:
  compatible:
  compatible:
+1 −3
Original line number Original line Diff line number Diff line
@@ -15,11 +15,9 @@ description: |
  960 TFT source driver pins and 240 TFT gate driver pins, VCOM, VCOML and
  960 TFT source driver pins and 240 TFT gate driver pins, VCOM, VCOML and
  VCOMH outputs.
  VCOMH outputs.


  The panel must obey the rules for a SPI slave device as specified in
  spi/spi-controller.yaml

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


properties:
properties:
  compatible:
  compatible:
+1 −4
Original line number Original line Diff line number Diff line
@@ -6,15 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#


title: Innolux EJ030NA 3.0" (320x480 pixels) 24-bit TFT LCD panel
title: Innolux EJ030NA 3.0" (320x480 pixels) 24-bit TFT LCD panel


description: |
  The panel must obey the rules for a SPI slave device as specified in
  spi/spi-controller.yaml

maintainers:
maintainers:
  - Paul Cercueil <paul@crapouillou.net>
  - Paul Cercueil <paul@crapouillou.net>


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


properties:
properties:
  compatible:
  compatible:
+1 −4
Original line number Original line Diff line number Diff line
@@ -6,15 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#


title: King Display KD035G6-54NT 3.5" (320x240 pixels) 24-bit TFT LCD panel
title: King Display KD035G6-54NT 3.5" (320x240 pixels) 24-bit TFT LCD panel


description: |
  The panel must obey the rules for a SPI slave device as specified in
  spi/spi-controller.yaml

maintainers:
maintainers:
  - Paul Cercueil <paul@crapouillou.net>
  - Paul Cercueil <paul@crapouillou.net>


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


properties:
properties:
  compatible:
  compatible:
+1 −4
Original line number Original line Diff line number Diff line
@@ -6,15 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#


title: LG.Philips LB035Q02 Panel
title: LG.Philips LB035Q02 Panel


description: |
  The panel must obey the rules for a SPI slave device as specified in
  spi/spi-controller.yaml

maintainers:
maintainers:
  - Tomi Valkeinen <tomi.valkeinen@ti.com>
  - Tomi Valkeinen <tomi.valkeinen@ti.com>


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


properties:
properties:
  compatible:
  compatible:
Loading