dt-bindings: iio: Add missing (unevaluated|additional)Properties on child nodes
authorRob Herring <robh@kernel.org>
Tue, 23 Aug 2022 14:56:33 +0000 (09:56 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 30 Aug 2022 17:35:38 +0000 (18:35 +0100)
In order to ensure only documented properties are present, node schemas
must have unevaluatedProperties or additionalProperties set to false
(typically).

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220823145649.3118479-2-robh@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml
Documentation/devicetree/bindings/iio/adc/ti,ads1015.yaml
Documentation/devicetree/bindings/iio/adc/xlnx,zynqmp-ams.yaml
Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml
Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml
Documentation/devicetree/bindings/iio/dac/adi,ltc2688.yaml

index 74a4a9d95798c8d771d553ea4ead04c17a8c728c..8bac0c4120dd09b893ce08ee572807bc0dbf3b86 100644 (file)
@@ -58,6 +58,7 @@ required:
 patternProperties:
   "^.*@[0-9a-f]+$":
     type: object
+    additionalProperties: false
     description: |
       Represents the external channels which are connected to the ADC.
       For compatible property "qcom,spmi-vadc" following channels, also known as
index 92f9472a77ae1e5b46acfd2def91a5ec41bb24c1..1970503389aa9aacf88c356477b4ad6aff5e0bbc 100644 (file)
@@ -72,6 +72,7 @@ additionalProperties: false
 patternProperties:
   "^filter@[0-9]+$":
     type: object
+    unevaluatedProperties: false
     description: child node
 
     properties:
@@ -225,6 +226,7 @@ patternProperties:
           patternProperties:
             "^dfsdm-dai+$":
               type: object
+              additionalProperties: false
               description: child node
 
               properties:
index a3b79438a13a507e09f6af518b4e4c4c38bf046c..2c3c2cf2145c638ce84889d8f81b7ae16e4c8292 100644 (file)
@@ -43,6 +43,7 @@ additionalProperties: false
 patternProperties:
   "^channel@[0-7]+$":
     type: object
+    additionalProperties: false
     description:
       Child nodes needed for each channel that the platform uses.
 
index 3698b4b0900f5ad2df202a6d2b5692faee60e69a..be93c109d6ac6427cd1b70dd0ecbc75fc31017c3 100644 (file)
@@ -134,6 +134,7 @@ properties:
 
   ams-pl@400:
     type: object
+    additionalProperties: false
     description:
       PL-SYSMON is capable of monitoring off chip voltage and temperature.
       PL-SYSMON block has DRP, JTAG and I2C interface to enable monitoring
index baa65a521bad5b2cf533061ee331e023eb62bdd5..03bb90a7f4f888e13a0bf556d79948de7930b5f8 100644 (file)
@@ -63,6 +63,7 @@ additionalProperties: false
 patternProperties:
   "^channel@[0-3]$":
     type: object
+    additionalProperties: false
     description: Represents the external channels which are connected to the device.
 
     properties:
index 9c48c76993fec24f7ae91ae30c112c379aced290..fee0f023a8c81667988c513831252f32a7007c8f 100644 (file)
@@ -78,6 +78,7 @@ patternProperties:
 
       custom-output-range-config:
         type: object
+        additionalProperties: false
         description: Configuration of custom range when
           adi,output-range-microvolt is not present.
           The formulas for calculation the output voltages are
index ca5432ffdedb8c1d0f199487b53b8687815f2ed6..8e7da0de918ff88528018fef1cf425809fdb98ea 100644 (file)
@@ -60,6 +60,7 @@ properties:
       connected to the DAC. Channel 0 can act both as a current
       source and sink.
     type: object
+    additionalProperties: false
 
     properties:
       reg:
@@ -83,6 +84,7 @@ properties:
     description: Represents an external channel which are
       connected to the DAC.
     type: object
+    additionalProperties: false
 
     properties:
       reg:
@@ -99,6 +101,7 @@ properties:
     description: Represents an external channel which are
       connected to the DAC.
     type: object
+    additionalProperties: false
 
     properties:
       reg:
@@ -114,6 +117,7 @@ properties:
 patternProperties:
   "^channel@([3-5])$":
     type: object
+    additionalProperties: false
     description: Represents the external channels which are connected to the DAC.
     properties:
       reg:
index 48f9e7d29423571f0c3ec2fcc6ac63875dae5b6c..15cc6bf59b1309c71b5b276d93c63a98bc69e2ed 100644 (file)
@@ -48,6 +48,7 @@ properties:
 patternProperties:
   "^channel@([0-9]|1[0-5])$":
     type: object
+    additionalProperties: false
 
     properties:
       reg: