Commit 4828556d authored by Rob Herring's avatar Rob Herring

dt-bindings: Use 'additionalProperties' instead of 'unevaluatedProperties'

In cases where we don't reference another schema, 'additionalProperties'
can be used instead. This is preferred for now as 'unevaluatedProperties'
support isn't implemented yet.

In a few cases, this means adding some missing property definitions of
which most are for SPI bus properties. 'unevaluatedProperties' is not going
to work for the SPI bus properties anyways as they are evaluated from the
parent node, not the SPI child node.
Acked-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Acked-by: default avatarLee Jones <lee.jones@linaro.org>
Acked-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20201005183830.486085-3-robh@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 6fdc6e23
...@@ -134,7 +134,11 @@ properties: ...@@ -134,7 +134,11 @@ properties:
"#reset-cells": "#reset-cells":
const: 1 const: 1
unevaluatedProperties: false clocks: true
clock-names: true
additionalProperties: false
required: required:
- compatible - compatible
......
...@@ -101,7 +101,7 @@ properties: ...@@ -101,7 +101,7 @@ properties:
clock-names: clock-names:
const: ref_clk const: ref_clk
unevaluatedProperties: false additionalProperties: false
required: required:
- compatible - compatible
......
...@@ -96,7 +96,7 @@ allOf: ...@@ -96,7 +96,7 @@ allOf:
- const: clk_ext3 - const: clk_ext3
- const: clk_ext4 - const: clk_ext4
unevaluatedProperties: false additionalProperties: false
examples: examples:
# Clock Control Module node: # Clock Control Module node:
......
...@@ -79,7 +79,7 @@ properties: ...@@ -79,7 +79,7 @@ properties:
minimum: 0 minimum: 0
maximum: 7130 maximum: 7130
unevaluatedProperties: false additionalProperties: false
required: required:
- compatible - compatible
...@@ -99,7 +99,7 @@ examples: ...@@ -99,7 +99,7 @@ examples:
interrupts = <GIC_SHARED 31 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SHARED 31 IRQ_TYPE_LEVEL_HIGH>;
baikal,pvt-temp-trim-millicelsius = <1000>; baikal,pvt-temp-offset-millicelsius = <1000>;
clocks = <&ccu_sys>, <&ccu_sys>; clocks = <&ccu_sys>, <&ccu_sys>;
clock-names = "ref", "pclk"; clock-names = "ref", "pclk";
......
...@@ -25,12 +25,14 @@ properties: ...@@ -25,12 +25,14 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
- interrupts - interrupts
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -32,6 +32,8 @@ properties: ...@@ -32,6 +32,8 @@ properties:
spi-cpol: true spi-cpol: true
spi-max-frequency: true
interrupts: interrupts:
maxItems: 1 maxItems: 1
...@@ -40,7 +42,7 @@ required: ...@@ -40,7 +42,7 @@ required:
- reg - reg
- interrupts - interrupts
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -25,12 +25,14 @@ properties: ...@@ -25,12 +25,14 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
- interrupts - interrupts
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -52,6 +52,8 @@ properties: ...@@ -52,6 +52,8 @@ properties:
avdd-supply: avdd-supply:
description: avdd supply can be used as reference for conversion. description: avdd supply can be used as reference for conversion.
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
...@@ -108,7 +110,7 @@ patternProperties: ...@@ -108,7 +110,7 @@ patternProperties:
- reg - reg
- diff-channels - diff-channels
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -30,6 +30,8 @@ properties: ...@@ -30,6 +30,8 @@ properties:
spi-cpha: true spi-cpha: true
spi-max-frequency: true
clocks: clocks:
maxItems: 1 maxItems: 1
description: phandle to the master clock (mclk) description: phandle to the master clock (mclk)
...@@ -92,7 +94,7 @@ required: ...@@ -92,7 +94,7 @@ required:
- spi-cpol - spi-cpol
- spi-cpha - spi-cpha
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -30,6 +30,8 @@ properties: ...@@ -30,6 +30,8 @@ properties:
spi-cpha: true spi-cpha: true
spi-max-frequency: true
'#address-cells': '#address-cells':
const: 1 const: 1
...@@ -63,7 +65,7 @@ patternProperties: ...@@ -63,7 +65,7 @@ patternProperties:
required: required:
- reg - reg
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -31,6 +31,10 @@ properties: ...@@ -31,6 +31,10 @@ properties:
spi-cpha: true spi-cpha: true
spi-cpol: true
spi-max-frequency: true
avcc-supply: true avcc-supply: true
interrupts: interrupts:
...@@ -102,7 +106,7 @@ required: ...@@ -102,7 +106,7 @@ required:
- interrupts - interrupts
- adi,conversion-start-gpios - adi,conversion-start-gpios
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -43,11 +43,13 @@ properties: ...@@ -43,11 +43,13 @@ properties:
'#size-cells': '#size-cells':
const: 0 const: 0
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -39,13 +39,15 @@ properties: ...@@ -39,13 +39,15 @@ properties:
thus enabling power-down mode. thus enabling power-down mode.
maxItems: 1 maxItems: 1
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
- vdd-supply - vdd-supply
- vref-supply - vref-supply
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -49,6 +49,14 @@ properties: ...@@ -49,6 +49,14 @@ properties:
asserted during driver probe. asserted during driver probe.
maxItems: 1 maxItems: 1
spi-max-frequency: true
'#address-cells':
const: 1
'#size-cells':
const: 0
channel@0: channel@0:
description: Represents an external channel which are description: Represents an external channel which are
connected to the DAC. Channel 0 can act both as a current connected to the DAC. Channel 0 can act both as a current
...@@ -130,7 +138,7 @@ required: ...@@ -130,7 +138,7 @@ required:
- channel@4 - channel@4
- channel@5 - channel@5
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -40,13 +40,15 @@ properties: ...@@ -40,13 +40,15 @@ properties:
output stage will shut down until the ADF4371/ADF4372 achieves lock as output stage will shut down until the ADF4371/ADF4372 achieves lock as
measured by the digital lock detect circuitry. measured by the digital lock detect circuitry.
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -25,6 +25,8 @@ properties: ...@@ -25,6 +25,8 @@ properties:
spi-cpol: true spi-cpol: true
spi-max-frequency: true
interrupts: interrupts:
maxItems: 1 maxItems: 1
...@@ -33,7 +35,7 @@ required: ...@@ -33,7 +35,7 @@ required:
- reg - reg
- interrupts - interrupts
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -116,7 +116,7 @@ allOf: ...@@ -116,7 +116,7 @@ allOf:
dependencies: dependencies:
adi,sync-mode: [ clocks ] adi,sync-mode: [ clocks ]
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -46,11 +46,13 @@ properties: ...@@ -46,11 +46,13 @@ properties:
mount-matrix: mount-matrix:
description: an optional 3x3 mounting rotation matrix description: an optional 3x3 mounting rotation matrix
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -36,11 +36,13 @@ properties: ...@@ -36,11 +36,13 @@ properties:
drive-open-drain: drive-open-drain:
type: boolean type: boolean
spi-max-frequency: true
required: required:
- compatible - compatible
- reg - reg
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -95,7 +95,7 @@ properties: ...@@ -95,7 +95,7 @@ properties:
additionalProperties: false additionalProperties: false
unevaluatedProperties: false additionalProperties: false
required: required:
- compatible - compatible
......
...@@ -130,6 +130,14 @@ properties: ...@@ -130,6 +130,14 @@ properties:
type: object type: object
$ref: /schemas/pinctrl/cirrus,lochnagar.yaml# $ref: /schemas/pinctrl/cirrus,lochnagar.yaml#
lochnagar-hwmon:
type: object
$ref: /schemas/hwmon/cirrus,lochnagar.yaml#
lochnagar-sc:
type: object
$ref: /schemas/sound/cirrus,lochnagar.yaml#
VDDCORE: VDDCORE:
description: description:
Initialisation data for the VDDCORE regulator, which supplies the Initialisation data for the VDDCORE regulator, which supplies the
...@@ -249,7 +257,7 @@ required: ...@@ -249,7 +257,7 @@ required:
- lochnagar-clk - lochnagar-clk
- lochnagar-pinctrl - lochnagar-pinctrl
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -30,6 +30,9 @@ properties: ...@@ -30,6 +30,9 @@ properties:
- const: syscon - const: syscon
- const: simple-mfd - const: simple-mfd
reg:
maxItems: 1
"#address-cells": "#address-cells":
const: 1 const: 1
...@@ -54,7 +57,7 @@ required: ...@@ -54,7 +57,7 @@ required:
- "#size-cells" - "#size-cells"
- ranges - ranges
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -28,11 +28,13 @@ properties: ...@@ -28,11 +28,13 @@ properties:
description: GPIO uspecifier of the CMD pin description: GPIO uspecifier of the CMD pin
maxItems: 1 maxItems: 1
spi-cpha: true
required: required:
- compatible - compatible
- cmd-gpios - cmd-gpios
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -31,6 +31,8 @@ properties: ...@@ -31,6 +31,8 @@ properties:
Documentation/devicetree/bindings/nvmem/nvmem.txt and also Documentation/devicetree/bindings/nvmem/nvmem.txt and also
examples below. examples below.
opp-shared: true
required: required:
- compatible - compatible
- nvmem-cells - nvmem-cells
...@@ -53,7 +55,7 @@ patternProperties: ...@@ -53,7 +55,7 @@ patternProperties:
unevaluatedProperties: false unevaluatedProperties: false
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -47,7 +47,7 @@ properties: ...@@ -47,7 +47,7 @@ properties:
required: required:
- compatible - compatible
unevaluatedProperties: false additionalProperties: false
examples: examples:
- | - |
......
...@@ -45,7 +45,7 @@ properties: ...@@ -45,7 +45,7 @@ properties:
frequency in HZ, but is defined only for the backwards compatibility frequency in HZ, but is defined only for the backwards compatibility
with the picoxcell platform. with the picoxcell platform.
unevaluatedProperties: false additionalProperties: false
required: required:
- compatible - compatible
......
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