]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
dt-bindings: iio: frequency: use spi-peripheral-props.yaml
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 4 Oct 2022 11:56:37 +0000 (13:56 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 23 Nov 2022 19:43:58 +0000 (19:43 +0000)
For devices connectable by SPI bus (e.g. already using
"spi-max-frequency" property), reference the "spi-peripheral-props.yaml"
schema to allow using all SPI device properties, even these which device
bindings author did not tried yet.

While changing additionalProperties->unevaluatedProperties, put it in
typical place, just before example DTS.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20221004115642.63749-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/frequency/adi,adf4350.yaml
Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml
Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml
Documentation/devicetree/bindings/iio/frequency/adi,admv4420.yaml
Documentation/devicetree/bindings/iio/frequency/adi,adrf6780.yaml

index d7f20b8518e06ea37c6fd50989dc82bc5b8dcd5c..43cbf27114c7b955b5fc03f83c0e239c64cafbe5 100644 (file)
@@ -160,13 +160,16 @@ properties:
       2: +2dBm
       3: +5dBm
 
-additionalProperties: false
-
 required:
   - compatible
   - reg
   - clocks
 
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
 examples:
   - |
     spi {
index 23f1f3b55abb30a123c90c7b34e807671f7629ba..fc813bcb65320637f0e42081bad301bc8c5cecfd 100644 (file)
@@ -70,7 +70,10 @@ required:
   - clock-names
   - vcm-supply
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
index 2716c1e8fe3163d73d3ac1196845c828b6242f4e..ab86daa2c56ec4e5eb57b8308974b90280cad308 100644 (file)
@@ -104,7 +104,10 @@ required:
   - clock-names
   - vcm-supply
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
index 071cda64865d34e12798ca1f06c82ddacd020a2c..64f2352aac3d512825037402a064956271a83878 100644 (file)
@@ -37,7 +37,11 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
index 3a8ea93f4e0c1e112dbcf6a04118094e9d317b42..f11391ab4b622d6ff380860ad0ff239e82771248 100644 (file)
@@ -113,7 +113,10 @@ required:
   - clocks
   - clock-names
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |