dt-bindings: iio: adc: ad4130: use spi-peripheral-props.yaml

Message ID 20221115151955.394030-1-cosmin.tanislav@analog.com
State New
Headers
Series dt-bindings: iio: adc: ad4130: use spi-peripheral-props.yaml |

Commit Message

Cosmin Tanislav Nov. 15, 2022, 3:19 p.m. UTC
  Reference the "spi-peripheral-props.yaml" schema to allow using
all SPI device properties.

Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
---
 Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
  

Comments

Rob Herring Nov. 16, 2022, 10:10 p.m. UTC | #1
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 <cosmin.tanislav@analog.com>
> ---
>  Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 

Acked-by: Rob Herring <robh@kernel.org>
  
Jonathan Cameron Nov. 23, 2022, 9:04 p.m. UTC | #2
On Wed, 16 Nov 2022 16:10:21 -0600
Rob Herring <robh@kernel.org> 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 <cosmin.tanislav@analog.com>
> > ---
> >  Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml | 5 ++++-
> >  1 file changed, 4 insertions(+), 1 deletion(-)
> >   
> 
> Acked-by: Rob Herring <robh@kernel.org>


Applied
  

Patch

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:
   - |