2022-11-15 15:47:56

by Cosmin Tanislav

[permalink] [raw]
Subject: [PATCH] dt-bindings: iio: adc: ad4130: use spi-peripheral-props.yaml

Reference the "spi-peripheral-props.yaml" schema to allow using
all SPI device properties.

Signed-off-by: Cosmin Tanislav <[email protected]>
---
Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml
index 28ebd38b9db4..d00690a8d3fb 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml
@@ -190,7 +190,10 @@ patternProperties:
- reg
- diff-channels

-additionalProperties: false
+allOf:
+ - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false

examples:
- |
--
2.38.1



2022-11-16 22:25:57

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: iio: adc: ad4130: use spi-peripheral-props.yaml


On Tue, 15 Nov 2022 17:19:55 +0200, Cosmin Tanislav wrote:
> Reference the "spi-peripheral-props.yaml" schema to allow using
> all SPI device properties.
>
> Signed-off-by: Cosmin Tanislav <[email protected]>
> ---
> Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>

Acked-by: Rob Herring <[email protected]>

2022-11-23 21:16:13

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: iio: adc: ad4130: use spi-peripheral-props.yaml

On Wed, 16 Nov 2022 16:10:21 -0600
Rob Herring <[email protected]> wrote:

> On Tue, 15 Nov 2022 17:19:55 +0200, Cosmin Tanislav wrote:
> > Reference the "spi-peripheral-props.yaml" schema to allow using
> > all SPI device properties.
> >
> > Signed-off-by: Cosmin Tanislav <[email protected]>
> > ---
> > Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
> >
>
> Acked-by: Rob Herring <[email protected]>


Applied