summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/iio/dac
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2020-10-05 13:38:28 -0500
committerRob Herring <robh@kernel.org>2020-10-07 11:28:30 -0500
commit4828556dca12b294f1c548f05348068d141c3a36 (patch)
treea5fdca096d9724ed78536a048731d04f215755b3 /Documentation/devicetree/bindings/iio/dac
parent6fdc6e23a7d13e4f7f7908b42d39595195716a61 (diff)
downloadlinux-4828556dca12b294f1c548f05348068d141c3a36.tar.gz
linux-4828556dca12b294f1c548f05348068d141c3a36.tar.bz2
linux-4828556dca12b294f1c548f05348068d141c3a36.zip
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: Mark Brown <broonie@kernel.org> Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Acked-by: Lee Jones <lee.jones@linaro.org> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20201005183830.486085-3-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/dac')
-rw-r--r--Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml10
1 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml
index faef288b7148..fb2c48fc7ce4 100644
--- a/Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml
+++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml
@@ -49,6 +49,14 @@ properties:
asserted during driver probe.
maxItems: 1
+ spi-max-frequency: true
+
+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 0
+
channel@0:
description: Represents an external channel which are
connected to the DAC. Channel 0 can act both as a current
@@ -130,7 +138,7 @@ required:
- channel@4
- channel@5
-unevaluatedProperties: false
+additionalProperties: false
examples:
- |