linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml
@ 2022-10-04 11:56 Krzysztof Kozlowski
  2022-10-04 11:56 ` [PATCH 2/8] dt-bindings: iio: addac: adi,ad74413r: improve example Krzysztof Kozlowski
                   ` (7 more replies)
  0 siblings, 8 replies; 19+ messages in thread
From: Krzysztof Kozlowski @ 2022-10-04 11:56 UTC (permalink / raw)
  To: Cosmin Tanislav, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, Rob Herring, Krzysztof Kozlowski,
	Antoniu Miclaus, Nishant Malpani, Rui Miguel Silva, Nuno Sa,
	Cristian Pop, Tomasz Duszynski, Matt Ranostay, Matheus Tavares,
	linux-iio, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski

Reference the spi-peripheral-props.yaml schema to allow using all
properties typical for SPI-connected devices, even these which device
bindings author did not tried yet.

While changing additionalProperties->unevaluatedProperties, put it in
typical place, just before example DTS.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../devicetree/bindings/iio/addac/adi,ad74413r.yaml        | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
index 03bb90a7f4f8..2e8dad9278f2 100644
--- a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
+++ b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
@@ -58,8 +58,6 @@ required:
   - spi-cpol
   - refin-supply
 
-additionalProperties: false
-
 patternProperties:
   "^channel@[0-3]$":
     type: object
@@ -103,6 +101,11 @@ patternProperties:
     required:
       - reg
 
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
 examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 2/8] dt-bindings: iio: addac: adi,ad74413r: improve example
  2022-10-04 11:56 [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml Krzysztof Kozlowski
@ 2022-10-04 11:56 ` Krzysztof Kozlowski
  2022-10-05 13:25   ` Rob Herring
  2022-10-04 11:56 ` [PATCH 3/8] dt-bindings: iio: frequency: use spi-peripheral-props.yaml Krzysztof Kozlowski
                   ` (6 subsequent siblings)
  7 siblings, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2022-10-04 11:56 UTC (permalink / raw)
  To: Cosmin Tanislav, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, Rob Herring, Krzysztof Kozlowski,
	Antoniu Miclaus, Nishant Malpani, Rui Miguel Silva, Nuno Sa,
	Cristian Pop, Tomasz Duszynski, Matt Ranostay, Matheus Tavares,
	linux-iio, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski

Improve example by: dropping unrelated properties (status and cs-gpios)
and using generic node name.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../devicetree/bindings/iio/addac/adi,ad74413r.yaml          | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
index 2e8dad9278f2..58b3ae14ccaa 100644
--- a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
+++ b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
@@ -116,10 +116,7 @@ examples:
       #address-cells = <1>;
       #size-cells = <0>;
 
-      cs-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
-      status = "okay";
-
-      ad74413r@0 {
+      addac@0 {
         compatible = "adi,ad74413r";
         reg = <0>;
         spi-max-frequency = <1000000>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 3/8] dt-bindings: iio: frequency: use spi-peripheral-props.yaml
  2022-10-04 11:56 [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml Krzysztof Kozlowski
  2022-10-04 11:56 ` [PATCH 2/8] dt-bindings: iio: addac: adi,ad74413r: improve example Krzysztof Kozlowski
@ 2022-10-04 11:56 ` Krzysztof Kozlowski
  2022-10-05 13:26   ` Rob Herring
  2022-10-04 11:56 ` [PATCH 4/8] dt-bindings: iio: gyroscope: " Krzysztof Kozlowski
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2022-10-04 11:56 UTC (permalink / raw)
  To: Cosmin Tanislav, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, Rob Herring, Krzysztof Kozlowski,
	Antoniu Miclaus, Nishant Malpani, Rui Miguel Silva, Nuno Sa,
	Cristian Pop, Tomasz Duszynski, Matt Ranostay, Matheus Tavares,
	linux-iio, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski

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.

While changing additionalProperties->unevaluatedProperties, put it in
typical place, just before example DTS.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../devicetree/bindings/iio/frequency/adi,adf4350.yaml     | 7 +++++--
 .../devicetree/bindings/iio/frequency/adi,admv1013.yaml    | 5 ++++-
 .../devicetree/bindings/iio/frequency/adi,admv1014.yaml    | 5 ++++-
 .../devicetree/bindings/iio/frequency/adi,admv4420.yaml    | 6 +++++-
 .../devicetree/bindings/iio/frequency/adi,adrf6780.yaml    | 5 ++++-
 5 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,adf4350.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,adf4350.yaml
index d7f20b8518e0..43cbf27114c7 100644
--- a/Documentation/devicetree/bindings/iio/frequency/adi,adf4350.yaml
+++ b/Documentation/devicetree/bindings/iio/frequency/adi,adf4350.yaml
@@ -160,13 +160,16 @@ properties:
       2: +2dBm
       3: +5dBm
 
-additionalProperties: false
-
 required:
   - compatible
   - reg
   - clocks
 
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
 examples:
   - |
     spi {
diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml
index 23f1f3b55abb..fc813bcb6532 100644
--- a/Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml
+++ b/Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml
@@ -70,7 +70,10 @@ required:
   - clock-names
   - vcm-supply
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml
index 2716c1e8fe31..ab86daa2c56e 100644
--- a/Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml
+++ b/Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml
@@ -104,7 +104,10 @@ required:
   - clock-names
   - vcm-supply
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,admv4420.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,admv4420.yaml
index da7fe85ec92e..d4b92481af81 100644
--- a/Documentation/devicetree/bindings/iio/frequency/adi,admv4420.yaml
+++ b/Documentation/devicetree/bindings/iio/frequency/adi,admv4420.yaml
@@ -37,7 +37,11 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,adrf6780.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,adrf6780.yaml
index 3a8ea93f4e0c..f11391ab4b62 100644
--- a/Documentation/devicetree/bindings/iio/frequency/adi,adrf6780.yaml
+++ b/Documentation/devicetree/bindings/iio/frequency/adi,adrf6780.yaml
@@ -113,7 +113,10 @@ required:
   - clocks
   - clock-names
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 4/8] dt-bindings: iio: gyroscope: use spi-peripheral-props.yaml
  2022-10-04 11:56 [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml Krzysztof Kozlowski
  2022-10-04 11:56 ` [PATCH 2/8] dt-bindings: iio: addac: adi,ad74413r: improve example Krzysztof Kozlowski
  2022-10-04 11:56 ` [PATCH 3/8] dt-bindings: iio: frequency: use spi-peripheral-props.yaml Krzysztof Kozlowski
@ 2022-10-04 11:56 ` Krzysztof Kozlowski
  2022-10-05 13:26   ` Rob Herring
  2022-10-04 11:56 ` [PATCH 5/8] dt-bindings: iio: imu: adi,adis16475: " Krzysztof Kozlowski
                   ` (4 subsequent siblings)
  7 siblings, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2022-10-04 11:56 UTC (permalink / raw)
  To: Cosmin Tanislav, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, Rob Herring, Krzysztof Kozlowski,
	Antoniu Miclaus, Nishant Malpani, Rui Miguel Silva, Nuno Sa,
	Cristian Pop, Tomasz Duszynski, Matt Ranostay, Matheus Tavares,
	linux-iio, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski

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/gyroscope/adi,adxrs290.yaml      | 5 ++++-
 .../devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml    | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml
index 662ec59ca0af..0ae2464b9bc4 100644
--- a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml
+++ b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml
@@ -38,7 +38,10 @@ required:
   - spi-cpol
   - spi-cpha
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
diff --git a/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml b/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml
index 3f57a1b813e6..2c900e9dddc6 100644
--- a/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml
+++ b/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml
@@ -56,7 +56,10 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 5/8] dt-bindings: iio: imu: adi,adis16475: use spi-peripheral-props.yaml
  2022-10-04 11:56 [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2022-10-04 11:56 ` [PATCH 4/8] dt-bindings: iio: gyroscope: " Krzysztof Kozlowski
@ 2022-10-04 11:56 ` Krzysztof Kozlowski
  2022-10-04 14:00   ` Sa, Nuno
  2022-10-05 13:26   ` Rob Herring
  2022-10-04 11:56 ` [PATCH 6/8] dt-bindings: iio: pressure: " Krzysztof Kozlowski
                   ` (3 subsequent siblings)
  7 siblings, 2 replies; 19+ messages in thread
From: Krzysztof Kozlowski @ 2022-10-04 11:56 UTC (permalink / raw)
  To: Cosmin Tanislav, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, Rob Herring, Krzysztof Kozlowski,
	Antoniu Miclaus, Nishant Malpani, Rui Miguel Silva, Nuno Sa,
	Cristian Pop, Tomasz Duszynski, Matt Ranostay, Matheus Tavares,
	linux-iio, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski

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


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 6/8] dt-bindings: iio: pressure: use spi-peripheral-props.yaml
  2022-10-04 11:56 [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml Krzysztof Kozlowski
                   ` (3 preceding siblings ...)
  2022-10-04 11:56 ` [PATCH 5/8] dt-bindings: iio: imu: adi,adis16475: " Krzysztof Kozlowski
@ 2022-10-04 11:56 ` Krzysztof Kozlowski
  2022-10-05 13:26   ` Rob Herring
  2022-10-04 11:56 ` [PATCH 7/8] dt-bindings: iio: proximity: ams,as3935: " Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  7 siblings, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2022-10-04 11:56 UTC (permalink / raw)
  To: Cosmin Tanislav, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, Rob Herring, Krzysztof Kozlowski,
	Antoniu Miclaus, Nishant Malpani, Rui Miguel Silva, Nuno Sa,
	Cristian Pop, Tomasz Duszynski, Matt Ranostay, Matheus Tavares,
	linux-iio, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski

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(-)

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


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 7/8] dt-bindings: iio: proximity: ams,as3935: use spi-peripheral-props.yaml
  2022-10-04 11:56 [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml Krzysztof Kozlowski
                   ` (4 preceding siblings ...)
  2022-10-04 11:56 ` [PATCH 6/8] dt-bindings: iio: pressure: " Krzysztof Kozlowski
@ 2022-10-04 11:56 ` Krzysztof Kozlowski
  2022-10-05 13:27   ` Rob Herring
  2022-10-04 11:56 ` [PATCH 8/8] dt-bindings: iio: resolver: adi,ad2s90: " Krzysztof Kozlowski
  2022-10-05 13:25 ` [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: " Rob Herring
  7 siblings, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2022-10-04 11:56 UTC (permalink / raw)
  To: Cosmin Tanislav, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, Rob Herring, Krzysztof Kozlowski,
	Antoniu Miclaus, Nishant Malpani, Rui Miguel Silva, Nuno Sa,
	Cristian Pop, Tomasz Duszynski, Matt Ranostay, Matheus Tavares,
	linux-iio, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski

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/proximity/ams,as3935.yaml        | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml b/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml
index 7fcba5d6d508..710d3b9a86d9 100644
--- a/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml
+++ b/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml
@@ -49,7 +49,10 @@ required:
   - spi-cpha
   - interrupts
 
-additionalProperties: false
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 8/8] dt-bindings: iio: resolver: adi,ad2s90: use spi-peripheral-props.yaml
  2022-10-04 11:56 [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml Krzysztof Kozlowski
                   ` (5 preceding siblings ...)
  2022-10-04 11:56 ` [PATCH 7/8] dt-bindings: iio: proximity: ams,as3935: " Krzysztof Kozlowski
@ 2022-10-04 11:56 ` Krzysztof Kozlowski
  2022-10-05 13:27   ` Rob Herring
  2022-10-05 13:25 ` [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: " Rob Herring
  7 siblings, 1 reply; 19+ messages in thread
From: Krzysztof Kozlowski @ 2022-10-04 11:56 UTC (permalink / raw)
  To: Cosmin Tanislav, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, Rob Herring, Krzysztof Kozlowski,
	Antoniu Miclaus, Nishant Malpani, Rui Miguel Silva, Nuno Sa,
	Cristian Pop, Tomasz Duszynski, Matt Ranostay, Matheus Tavares,
	linux-iio, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski

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.

While changing additionalProperties->unevaluatedProperties, put it in
typical place, just before example DTS.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../devicetree/bindings/iio/resolver/adi,ad2s90.yaml       | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml b/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml
index 81e4bdfc17c4..b24e5a202a48 100644
--- a/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml
+++ b/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml
@@ -33,8 +33,6 @@ properties:
 
   spi-cpha: true
 
-additionalProperties: false
-
 required:
   - compatible
   - reg
@@ -43,6 +41,11 @@ dependencies:
   spi-cpol: [ spi-cpha ]
   spi-cpha: [ spi-cpol ]
 
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
 examples:
   - |
     spi {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* RE: [PATCH 5/8] dt-bindings: iio: imu: adi,adis16475: use spi-peripheral-props.yaml
  2022-10-04 11:56 ` [PATCH 5/8] dt-bindings: iio: imu: adi,adis16475: " Krzysztof Kozlowski
@ 2022-10-04 14:00   ` Sa, Nuno
  2022-10-05 13:26   ` Rob Herring
  1 sibling, 0 replies; 19+ messages in thread
From: Sa, Nuno @ 2022-10-04 14:00 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Tanislav, Cosmin, Lars-Peter Clausen,
	Hennerich, Michael, Jonathan Cameron, Rob Herring,
	Krzysztof Kozlowski, Miclaus, Antoniu, Nishant Malpani,
	Rui Miguel Silva, Cristian Pop, Tomasz Duszynski, Matt Ranostay,
	Matheus Tavares, linux-iio, devicetree, linux-kernel

> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Sent: Tuesday, October 4, 2022 1:57 PM
> To: Tanislav, Cosmin <Cosmin.Tanislav@analog.com>; Lars-Peter Clausen
> <lars@metafoo.de>; Hennerich, Michael <Michael.Hennerich@analog.com>;
> Jonathan Cameron <jic23@kernel.org>; Rob Herring <robh+dt@kernel.org>;
> Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>; Miclaus, Antoniu
> <Antoniu.Miclaus@analog.com>; Nishant Malpani
> <nish.malpani25@gmail.com>; Rui Miguel Silva <rmfrfs@gmail.com>; Sa,
> Nuno <Nuno.Sa@analog.com>; Cristian Pop <cristian.pop@analog.com>;
> Tomasz Duszynski <tduszyns@gmail.com>; Matt Ranostay
> <matt.ranostay@konsulko.com>; Matheus Tavares
> <matheus.bernardino@usp.br>; linux-iio@vger.kernel.org;
> devicetree@vger.kernel.org; linux-kernel@vger.kernel.org
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 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 <krzysztof.kozlowski@linaro.org>
> ---

Reviewed-by: Nuno Sá <nuno.sa@analog.com>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml
  2022-10-04 11:56 [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml Krzysztof Kozlowski
                   ` (6 preceding siblings ...)
  2022-10-04 11:56 ` [PATCH 8/8] dt-bindings: iio: resolver: adi,ad2s90: " Krzysztof Kozlowski
@ 2022-10-05 13:25 ` Rob Herring
  2022-10-09 16:16   ` Jonathan Cameron
  7 siblings, 1 reply; 19+ messages in thread
From: Rob Herring @ 2022-10-05 13:25 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Matheus Tavares, linux-iio, Cosmin Tanislav, Nuno Sa,
	linux-kernel, Nishant Malpani, Krzysztof Kozlowski,
	Michael Hennerich, Tomasz Duszynski, Jonathan Cameron,
	Cristian Pop, Lars-Peter Clausen, Rui Miguel Silva,
	Antoniu Miclaus, Matt Ranostay, devicetree, Rob Herring

On Tue, 04 Oct 2022 13:56:35 +0200, Krzysztof Kozlowski wrote:
> Reference the spi-peripheral-props.yaml schema to allow using all
> properties typical for SPI-connected devices, even these which device
> bindings author did not tried yet.
> 
> While changing additionalProperties->unevaluatedProperties, put it in
> typical place, just before example DTS.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../devicetree/bindings/iio/addac/adi,ad74413r.yaml        | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 2/8] dt-bindings: iio: addac: adi,ad74413r: improve example
  2022-10-04 11:56 ` [PATCH 2/8] dt-bindings: iio: addac: adi,ad74413r: improve example Krzysztof Kozlowski
@ 2022-10-05 13:25   ` Rob Herring
  0 siblings, 0 replies; 19+ messages in thread
From: Rob Herring @ 2022-10-05 13:25 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Cristian Pop, Rob Herring, Matheus Tavares, linux-iio,
	linux-kernel, devicetree, Antoniu Miclaus, Lars-Peter Clausen,
	Nuno Sa, Tomasz Duszynski, Jonathan Cameron, Matt Ranostay,
	Michael Hennerich, Krzysztof Kozlowski, Rui Miguel Silva,
	Cosmin Tanislav, Nishant Malpani

On Tue, 04 Oct 2022 13:56:36 +0200, Krzysztof Kozlowski wrote:
> Improve example by: dropping unrelated properties (status and cs-gpios)
> and using generic node name.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../devicetree/bindings/iio/addac/adi,ad74413r.yaml          | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 3/8] dt-bindings: iio: frequency: use spi-peripheral-props.yaml
  2022-10-04 11:56 ` [PATCH 3/8] dt-bindings: iio: frequency: use spi-peripheral-props.yaml Krzysztof Kozlowski
@ 2022-10-05 13:26   ` Rob Herring
  0 siblings, 0 replies; 19+ messages in thread
From: Rob Herring @ 2022-10-05 13:26 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Tomasz Duszynski, Antoniu Miclaus, Matt Ranostay,
	Matheus Tavares, Rui Miguel Silva, devicetree, Rob Herring,
	Jonathan Cameron, Nuno Sa, Cristian Pop, linux-iio, linux-kernel,
	Lars-Peter Clausen, Michael Hennerich, Nishant Malpani,
	Cosmin Tanislav, Krzysztof Kozlowski

On Tue, 04 Oct 2022 13:56:37 +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.
> 
> While changing additionalProperties->unevaluatedProperties, put it in
> typical place, just before example DTS.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../devicetree/bindings/iio/frequency/adi,adf4350.yaml     | 7 +++++--
>  .../devicetree/bindings/iio/frequency/adi,admv1013.yaml    | 5 ++++-
>  .../devicetree/bindings/iio/frequency/adi,admv1014.yaml    | 5 ++++-
>  .../devicetree/bindings/iio/frequency/adi,admv4420.yaml    | 6 +++++-
>  .../devicetree/bindings/iio/frequency/adi,adrf6780.yaml    | 5 ++++-
>  5 files changed, 22 insertions(+), 6 deletions(-)
> 

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 4/8] dt-bindings: iio: gyroscope: use spi-peripheral-props.yaml
  2022-10-04 11:56 ` [PATCH 4/8] dt-bindings: iio: gyroscope: " Krzysztof Kozlowski
@ 2022-10-05 13:26   ` Rob Herring
  0 siblings, 0 replies; 19+ messages in thread
From: Rob Herring @ 2022-10-05 13:26 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Nishant Malpani, Matheus Tavares, Nuno Sa, linux-iio,
	Tomasz Duszynski, devicetree, Rui Miguel Silva, linux-kernel,
	Jonathan Cameron, Cristian Pop, Antoniu Miclaus, Rob Herring,
	Matt Ranostay, Krzysztof Kozlowski, Michael Hennerich,
	Cosmin Tanislav, Lars-Peter Clausen

On Tue, 04 Oct 2022 13:56:38 +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/gyroscope/adi,adxrs290.yaml      | 5 ++++-
>  .../devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml    | 5 ++++-
>  2 files changed, 8 insertions(+), 2 deletions(-)
> 

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 5/8] dt-bindings: iio: imu: adi,adis16475: use spi-peripheral-props.yaml
  2022-10-04 11:56 ` [PATCH 5/8] dt-bindings: iio: imu: adi,adis16475: " Krzysztof Kozlowski
  2022-10-04 14:00   ` Sa, Nuno
@ 2022-10-05 13:26   ` Rob Herring
  1 sibling, 0 replies; 19+ messages in thread
From: Rob Herring @ 2022-10-05 13:26 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Antoniu Miclaus, linux-kernel, Krzysztof Kozlowski,
	Michael Hennerich, Jonathan Cameron, Rui Miguel Silva,
	Matt Ranostay, linux-iio, Nishant Malpani, Cristian Pop,
	Cosmin Tanislav, Tomasz Duszynski, Rob Herring, Nuno Sa,
	Lars-Peter Clausen, devicetree, Matheus Tavares

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 <krzysztof.kozlowski@linaro.org>
> ---
>  Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 6/8] dt-bindings: iio: pressure: use spi-peripheral-props.yaml
  2022-10-04 11:56 ` [PATCH 6/8] dt-bindings: iio: pressure: " Krzysztof Kozlowski
@ 2022-10-05 13:26   ` Rob Herring
  0 siblings, 0 replies; 19+ messages in thread
From: Rob Herring @ 2022-10-05 13:26 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Cristian Pop, Nishant Malpani, linux-iio, Antoniu Miclaus,
	Rui Miguel Silva, devicetree, Cosmin Tanislav, Rob Herring,
	Michael Hennerich, Tomasz Duszynski, Krzysztof Kozlowski,
	linux-kernel, Matt Ranostay, Jonathan Cameron, Nuno Sa,
	Lars-Peter Clausen, Matheus Tavares

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>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 7/8] dt-bindings: iio: proximity: ams,as3935: use spi-peripheral-props.yaml
  2022-10-04 11:56 ` [PATCH 7/8] dt-bindings: iio: proximity: ams,as3935: " Krzysztof Kozlowski
@ 2022-10-05 13:27   ` Rob Herring
  0 siblings, 0 replies; 19+ messages in thread
From: Rob Herring @ 2022-10-05 13:27 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Nishant Malpani, Matt Ranostay, Cosmin Tanislav,
	Michael Hennerich, Lars-Peter Clausen, Rob Herring,
	Krzysztof Kozlowski, Cristian Pop, Jonathan Cameron,
	Matheus Tavares, devicetree, Nuno Sa, linux-kernel,
	Antoniu Miclaus, Tomasz Duszynski, linux-iio, Rui Miguel Silva

On Tue, 04 Oct 2022 13:56:41 +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/proximity/ams,as3935.yaml        | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 8/8] dt-bindings: iio: resolver: adi,ad2s90: use spi-peripheral-props.yaml
  2022-10-04 11:56 ` [PATCH 8/8] dt-bindings: iio: resolver: adi,ad2s90: " Krzysztof Kozlowski
@ 2022-10-05 13:27   ` Rob Herring
  0 siblings, 0 replies; 19+ messages in thread
From: Rob Herring @ 2022-10-05 13:27 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Rob Herring, Matt Ranostay, Nishant Malpani, Cristian Pop,
	Rui Miguel Silva, Matheus Tavares, linux-iio, Michael Hennerich,
	Cosmin Tanislav, Jonathan Cameron, Antoniu Miclaus, devicetree,
	linux-kernel, Lars-Peter Clausen, Tomasz Duszynski, Nuno Sa,
	Krzysztof Kozlowski

On Tue, 04 Oct 2022 13:56:42 +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.
> 
> While changing additionalProperties->unevaluatedProperties, put it in
> typical place, just before example DTS.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../devicetree/bindings/iio/resolver/adi,ad2s90.yaml       | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml
  2022-10-05 13:25 ` [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: " Rob Herring
@ 2022-10-09 16:16   ` Jonathan Cameron
  2022-10-10 10:29     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 19+ messages in thread
From: Jonathan Cameron @ 2022-10-09 16:16 UTC (permalink / raw)
  To: Rob Herring
  Cc: Krzysztof Kozlowski, Matheus Tavares, linux-iio, Cosmin Tanislav,
	Nuno Sa, linux-kernel, Nishant Malpani, Krzysztof Kozlowski,
	Michael Hennerich, Tomasz Duszynski, Cristian Pop,
	Lars-Peter Clausen, Rui Miguel Silva, Antoniu Miclaus,
	Matt Ranostay, devicetree, Rob Herring

On Wed, 5 Oct 2022 08:25:27 -0500
Rob Herring <robh@kernel.org> wrote:

> On Tue, 04 Oct 2022 13:56:35 +0200, Krzysztof Kozlowski wrote:
> > Reference the spi-peripheral-props.yaml schema to allow using all
> > properties typical for SPI-connected devices, even these which device
> > bindings author did not tried yet.
> > 
> > While changing additionalProperties->unevaluatedProperties, put it in
> > typical place, just before example DTS.
> > 
> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > ---
> >  .../devicetree/bindings/iio/addac/adi,ad74413r.yaml        | 7 +++++--
> >  1 file changed, 5 insertions(+), 2 deletions(-)
> >   
> 
> Acked-by: Rob Herring <robh@kernel.org>

Series applied,.

Kryzsztof, thanks for your continuing work to clean this stuff up.
One small request for future similar series. Please add a cover
letter with a very minimal intro. If nothing else it gives me an
obviously place to reply to in order to say I applied them all!

Also works for anyone who wants to give series wide tags.

Thanks,

Jonathan

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml
  2022-10-09 16:16   ` Jonathan Cameron
@ 2022-10-10 10:29     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 19+ messages in thread
From: Krzysztof Kozlowski @ 2022-10-10 10:29 UTC (permalink / raw)
  To: Jonathan Cameron, Rob Herring
  Cc: Matheus Tavares, linux-iio, Cosmin Tanislav, Nuno Sa,
	linux-kernel, Nishant Malpani, Krzysztof Kozlowski,
	Michael Hennerich, Tomasz Duszynski, Cristian Pop,
	Lars-Peter Clausen, Rui Miguel Silva, Antoniu Miclaus,
	Matt Ranostay, devicetree, Rob Herring

On 09/10/2022 12:16, Jonathan Cameron wrote:
> On Wed, 5 Oct 2022 08:25:27 -0500
> Rob Herring <robh@kernel.org> wrote:
> 
>> On Tue, 04 Oct 2022 13:56:35 +0200, Krzysztof Kozlowski wrote:
>>> Reference the spi-peripheral-props.yaml schema to allow using all
>>> properties typical for SPI-connected devices, even these which device
>>> bindings author did not tried yet.
>>>
>>> While changing additionalProperties->unevaluatedProperties, put it in
>>> typical place, just before example DTS.
>>>
>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>> ---
>>>  .../devicetree/bindings/iio/addac/adi,ad74413r.yaml        | 7 +++++--
>>>  1 file changed, 5 insertions(+), 2 deletions(-)
>>>   
>>
>> Acked-by: Rob Herring <robh@kernel.org>
> 
> Series applied,.
> 
> Kryzsztof, thanks for your continuing work to clean this stuff up.
> One small request for future similar series. Please add a cover
> letter with a very minimal intro. If nothing else it gives me an
> obviously place to reply to in order to say I applied them all!
> 
> Also works for anyone who wants to give series wide tags.

Sure!

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-10-10 10:31 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 11:56 [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml Krzysztof Kozlowski
2022-10-04 11:56 ` [PATCH 2/8] dt-bindings: iio: addac: adi,ad74413r: improve example Krzysztof Kozlowski
2022-10-05 13:25   ` Rob Herring
2022-10-04 11:56 ` [PATCH 3/8] dt-bindings: iio: frequency: use spi-peripheral-props.yaml Krzysztof Kozlowski
2022-10-05 13:26   ` Rob Herring
2022-10-04 11:56 ` [PATCH 4/8] dt-bindings: iio: gyroscope: " Krzysztof Kozlowski
2022-10-05 13:26   ` Rob Herring
2022-10-04 11:56 ` [PATCH 5/8] dt-bindings: iio: imu: adi,adis16475: " Krzysztof Kozlowski
2022-10-04 14:00   ` Sa, Nuno
2022-10-05 13:26   ` Rob Herring
2022-10-04 11:56 ` [PATCH 6/8] dt-bindings: iio: pressure: " Krzysztof Kozlowski
2022-10-05 13:26   ` Rob Herring
2022-10-04 11:56 ` [PATCH 7/8] dt-bindings: iio: proximity: ams,as3935: " Krzysztof Kozlowski
2022-10-05 13:27   ` Rob Herring
2022-10-04 11:56 ` [PATCH 8/8] dt-bindings: iio: resolver: adi,ad2s90: " Krzysztof Kozlowski
2022-10-05 13:27   ` Rob Herring
2022-10-05 13:25 ` [PATCH 1/8] dt-bindings: iio: addac: adi,ad74413r: " Rob Herring
2022-10-09 16:16   ` Jonathan Cameron
2022-10-10 10:29     ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).