Skip to content

Commit c476d43

Browse files
committed
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
1 parent d8adf5b commit c476d43

10 files changed

Lines changed: 10 additions & 37 deletions

Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
66

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

9-
description: |
10-
The panel must obey the rules for a SPI slave device as specified in
11-
spi/spi-controller.yaml
12-
139
maintainers:
1410
- Paul Cercueil <paul@crapouillou.net>
1511

1612
allOf:
1713
- $ref: panel-common.yaml#
14+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
1815

1916
properties:
2017
compatible:

Documentation/devicetree/bindings/display/panel/ilitek,ili9322.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ description: |
1515
960 TFT source driver pins and 240 TFT gate driver pins, VCOM, VCOML and
1616
VCOMH outputs.
1717
18-
The panel must obey the rules for a SPI slave device as specified in
19-
spi/spi-controller.yaml
20-
2118
allOf:
2219
- $ref: panel-common.yaml#
20+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
2321

2422
properties:
2523
compatible:

Documentation/devicetree/bindings/display/panel/innolux,ej030na.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
66

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

9-
description: |
10-
The panel must obey the rules for a SPI slave device as specified in
11-
spi/spi-controller.yaml
12-
139
maintainers:
1410
- Paul Cercueil <paul@crapouillou.net>
1511

1612
allOf:
1713
- $ref: panel-common.yaml#
14+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
1815

1916
properties:
2017
compatible:

Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
66

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

9-
description: |
10-
The panel must obey the rules for a SPI slave device as specified in
11-
spi/spi-controller.yaml
12-
139
maintainers:
1410
- Paul Cercueil <paul@crapouillou.net>
1511

1612
allOf:
1713
- $ref: panel-common.yaml#
14+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
1815

1916
properties:
2017
compatible:

Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
66

77
title: LG.Philips LB035Q02 Panel
88

9-
description: |
10-
The panel must obey the rules for a SPI slave device as specified in
11-
spi/spi-controller.yaml
12-
139
maintainers:
1410
- Tomi Valkeinen <tomi.valkeinen@ti.com>
1511

1612
allOf:
1713
- $ref: panel-common.yaml#
14+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
1815

1916
properties:
2017
compatible:

Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
66

77
title: Samsung LD9040 AMOLED LCD parallel RGB panel with SPI control bus
88

9-
description: |
10-
The panel must obey the rules for a SPI slave device as specified in
11-
spi/spi-controller.yaml
12-
139
maintainers:
1410
- Andrzej Hajda <a.hajda@samsung.com>
1511

1612
allOf:
1713
- $ref: panel-common.yaml#
14+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
1815

1916
properties:
2017
compatible:
@@ -63,8 +60,6 @@ examples:
6360
6461
lcd@0 {
6562
compatible = "samsung,ld9040";
66-
#address-cells = <1>;
67-
#size-cells = <0>;
6863
6964
reg = <0>;
7065
vdd3-supply = <&ldo7_reg>;

Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ maintainers:
1212
allOf:
1313
- $ref: panel-common.yaml#
1414
- $ref: /schemas/leds/backlight/common.yaml#
15+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
1516

1617
properties:
1718
compatible:

Documentation/devicetree/bindings/display/panel/sitronix,st7789v.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
66

77
title: Sitronix ST7789V RGB panel with SPI control bus
88

9-
description: |
10-
The panel must obey the rules for a SPI slave device as specified in
11-
spi/spi-controller.yaml
12-
139
maintainers:
1410
- Maxime Ripard <mripard@kernel.org>
1511

1612
allOf:
1713
- $ref: panel-common.yaml#
14+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
1815

1916
properties:
2017
compatible:

Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
66

77
title: Sony ACX565AKM SDI Panel
88

9-
description: |
10-
The panel must obey the rules for a SPI slave device as specified in
11-
spi/spi-controller.yaml
12-
139
maintainers:
1410
- Tomi Valkeinen <tomi.valkeinen@ti.com>
1511

1612
allOf:
1713
- $ref: panel-common.yaml#
14+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
1815

1916
properties:
2017
compatible:

Documentation/devicetree/bindings/display/panel/tpo,td.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
66

77
title: Toppoly TD Panels
88

9-
description: |
10-
The panel must obey the rules for a SPI slave device as specified in
11-
spi/spi-controller.yaml
12-
139
maintainers:
1410
- Marek Belisko <marek@goldelico.com>
1511
- H. Nikolaus Schaller <hns@goldelico.com>
1612

1713
allOf:
1814
- $ref: panel-common.yaml#
15+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
1916

2017
properties:
2118
compatible:

0 commit comments

Comments
 (0)