2022-10-04 12:11:24

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH 5/8] dt-bindings: iio: imu: adi,adis16475: use spi-peripheral-props.yaml

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 <[email protected]>
---
Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml
index a7574210175a..5dbfae80bb28 100644
--- a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml
+++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml
@@ -79,6 +79,7 @@ required:
- spi-cpol

allOf:
+ - $ref: /schemas/spi/spi-peripheral-props.yaml#
- if:
properties:
compatible:
@@ -107,7 +108,7 @@ allOf:
dependencies:
adi,sync-mode: [ clocks ]

-additionalProperties: false
+unevaluatedProperties: false

examples:
- |
--
2.34.1


2022-10-04 14:13:50

by Nuno Sa

[permalink] [raw]
Subject: RE: [PATCH 5/8] dt-bindings: iio: imu: adi,adis16475: use spi-peripheral-props.yaml

> From: Krzysztof Kozlowski <[email protected]>
> Sent: Tuesday, October 4, 2022 1:57 PM
> To: Tanislav, Cosmin <[email protected]>; Lars-Peter Clausen
> <[email protected]>; Hennerich, Michael <[email protected]>;
> Jonathan Cameron <[email protected]>; Rob Herring <[email protected]>;
> Krzysztof Kozlowski <[email protected]>; Miclaus, Antoniu
> <[email protected]>; Nishant Malpani
> <[email protected]>; Rui Miguel Silva <[email protected]>; Sa,
> Nuno <[email protected]>; Cristian Pop <[email protected]>;
> Tomasz Duszynski <[email protected]>; Matt Ranostay
> <[email protected]>; Matheus Tavares
> <[email protected]>; [email protected];
> [email protected]; [email protected]
> Cc: Krzysztof Kozlowski <[email protected]>
> Subject: [PATCH 5/8] dt-bindings: iio: imu: adi,adis16475: use spi-peripheral-
> props.yaml
>
>
> 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 <[email protected]>
> ---

Reviewed-by: Nuno S? <[email protected]>

2022-10-05 14:02:03

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH 5/8] dt-bindings: iio: imu: adi,adis16475: use spi-peripheral-props.yaml

On Tue, 04 Oct 2022 13:56:39 +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 <[email protected]>
> ---
> Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>

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