Skip to content

Commit 944ad76

Browse files
krzkrobherring
authored andcommitted
dt-bindings: display: use spi-peripheral-props.yaml
Instead of listing directly properties typical for SPI peripherals, reference the spi-peripheral-props.yaml schema. This allows using all properties typical for SPI-connected devices, even these which device bindings author did not tried yet. Remove the spi-* properties which now come via spi-peripheral-props.yaml schema, except for the cases when device schema adds some constraints like maximum frequency. While changing additionalProperties->unevaluatedProperties, put it in typical place, just before example DTS. The sitronix,st7735r references also panel-common.yaml and lists explicitly allowed properties, thus here reference only spi-peripheral-props.yaml for purpose of documenting the SPI slave device and bringing spi-max-frequency type validation. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220727164312.385836-1-krzysztof.kozlowski@linaro.org
1 parent 60320e6 commit 944ad76

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ maintainers:
1515

1616
allOf:
1717
- $ref: panel-common.yaml#
18+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
1819

1920
properties:
2021
compatible:
2122
const: lg,lg4573
2223

2324
reg: true
24-
spi-max-frequency: true
2525

2626
required:
2727
- compatible

Documentation/devicetree/bindings/display/sitronix,st7735r.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ description:
1515

1616
allOf:
1717
- $ref: panel/panel-common.yaml#
18+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
1819

1920
properties:
2021
compatible:

Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ properties:
4949
vbat-supply:
5050
description: The supply for VBAT
5151

52-
# Only required for SPI
53-
spi-max-frequency: true
54-
5552
solomon,height:
5653
$ref: /schemas/types.yaml#/definitions/uint32
5754
default: 16
@@ -153,6 +150,8 @@ required:
153150
- reg
154151

155152
allOf:
153+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
154+
156155
- if:
157156
properties:
158157
compatible:
@@ -223,7 +222,7 @@ allOf:
223222
solomon,dclk-frq:
224223
default: 10
225224

226-
additionalProperties: false
225+
unevaluatedProperties: false
227226

228227
examples:
229228
- |

0 commit comments

Comments
 (0)