Commit c092a878 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown

spi: dt-bindings: allwinner: simplify with unevaluatedProperties

Remove properties already mentioned by common spi-controller.yaml and
switch to unevaluatedProperties:false to achieve same functional effect.
This makes the binding a bit smaller.  Similarly there is no need to
allow additionalProperties for children, because spi-controller.yaml
already does it.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230601095908.563865-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3ecd5a72
...@@ -14,9 +14,6 @@ maintainers: ...@@ -14,9 +14,6 @@ maintainers:
- Maxime Ripard <mripard@kernel.org> - Maxime Ripard <mripard@kernel.org>
properties: properties:
"#address-cells": true
"#size-cells": true
compatible: compatible:
const: allwinner,sun4i-a10-spi const: allwinner,sun4i-a10-spi
...@@ -46,12 +43,9 @@ properties: ...@@ -46,12 +43,9 @@ properties:
- const: rx - const: rx
- const: tx - const: tx
num-cs: true
patternProperties: patternProperties:
"^.*@[0-9a-f]+": "^.*@[0-9a-f]+":
type: object type: object
additionalProperties: true
properties: properties:
reg: reg:
items: items:
...@@ -71,7 +65,7 @@ required: ...@@ -71,7 +65,7 @@ required:
- clocks - clocks
- clock-names - clock-names
additionalProperties: false unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -14,9 +14,6 @@ maintainers: ...@@ -14,9 +14,6 @@ maintainers:
- Maxime Ripard <mripard@kernel.org> - Maxime Ripard <mripard@kernel.org>
properties: properties:
"#address-cells": true
"#size-cells": true
compatible: compatible:
oneOf: oneOf:
- const: allwinner,sun50i-r329-spi - const: allwinner,sun50i-r329-spi
...@@ -68,12 +65,9 @@ properties: ...@@ -68,12 +65,9 @@ properties:
- const: rx - const: rx
- const: tx - const: tx
num-cs: true
patternProperties: patternProperties:
"^.*@[0-9a-f]+": "^.*@[0-9a-f]+":
type: object type: object
additionalProperties: true
properties: properties:
reg: reg:
items: items:
...@@ -93,7 +87,7 @@ required: ...@@ -93,7 +87,7 @@ required:
- clocks - clocks
- clock-names - clock-names
additionalProperties: false unevaluatedProperties: false
examples: examples:
- | - |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment