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

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