diff mbox series

[6/8] dt-bindings: iio: pressure: use spi-peripheral-props.yaml

Message ID 20221004115642.63749-6-krzysztof.kozlowski@linaro.org (mailing list archive)
State Accepted
Headers show
Series [1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml | expand

Commit Message

Krzysztof Kozlowski Oct. 4, 2022, 11:56 a.m. UTC
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.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../devicetree/bindings/iio/pressure/meas,ms5611.yaml        | 5 ++++-
 .../devicetree/bindings/iio/pressure/murata,zpa2326.yaml     | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

Comments

Rob Herring (Arm) Oct. 5, 2022, 1:26 p.m. UTC | #1
On Tue, 04 Oct 2022 13:56:40 +0200, Krzysztof Kozlowski wrote:
> 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.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../devicetree/bindings/iio/pressure/meas,ms5611.yaml        | 5 ++++-
>  .../devicetree/bindings/iio/pressure/murata,zpa2326.yaml     | 5 ++++-
>  2 files changed, 8 insertions(+), 2 deletions(-)
> 

Acked-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml b/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml
index 4f06707450bf..7fed750fa3ff 100644
--- a/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml
+++ b/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml
@@ -30,7 +30,10 @@  required:
   - compatible
   - reg
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
diff --git a/Documentation/devicetree/bindings/iio/pressure/murata,zpa2326.yaml b/Documentation/devicetree/bindings/iio/pressure/murata,zpa2326.yaml
index d6103be03460..c33640ddde58 100644
--- a/Documentation/devicetree/bindings/iio/pressure/murata,zpa2326.yaml
+++ b/Documentation/devicetree/bindings/iio/pressure/murata,zpa2326.yaml
@@ -33,7 +33,10 @@  required:
   - compatible
   - reg
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |