Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: temperature: use spi-peripheral-props.yaml

Instead of listing directly properties typical for SPI peripherals,
reference the spi-peripheral-props.yaml schema. This allows using all
properties typical for SPI-connected devices, even these which device
bindings author did not tried yet.

Remove the spi-* properties which now come via spi-peripheral-props.yaml
schema, except for the cases when device schema adds some constraints
like maximum frequency.

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

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220816124321.67817-11-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Krzysztof Kozlowski and committed by
Jonathan Cameron
14a4d22e 6920f48e

+10 -6
+2 -2
Documentation/devicetree/bindings/iio/temperature/maxim,max31855k.yaml
··· 32 32 reg: 33 33 maxItems: 1 34 34 35 - spi-max-frequency: true 36 35 spi-cpha: true 37 36 38 37 required: ··· 39 40 - reg 40 41 41 42 allOf: 43 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 42 44 - if: 43 45 properties: 44 46 compatible: ··· 53 53 properties: 54 54 spi-cpha: false 55 55 56 - additionalProperties: false 56 + unevaluatedProperties: false 57 57 58 58 examples: 59 59 - |
+4 -2
Documentation/devicetree/bindings/iio/temperature/maxim,max31856.yaml
··· 19 19 reg: 20 20 maxItems: 1 21 21 22 - spi-max-frequency: true 23 22 spi-cpha: true 24 23 25 24 thermocouple-type: ··· 33 34 - reg 34 35 - spi-cpha 35 36 36 - additionalProperties: false 37 + allOf: 38 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 39 + 40 + unevaluatedProperties: false 37 41 38 42 examples: 39 43 - |
+4 -2
Documentation/devicetree/bindings/iio/temperature/maxim,max31865.yaml
··· 25 25 enables 3-wire RTD connection. Else 2-wire or 4-wire RTD connection. 26 26 type: boolean 27 27 28 - spi-max-frequency: true 29 28 spi-cpha: true 30 29 31 30 required: ··· 32 33 - reg 33 34 - spi-cpha 34 35 35 - additionalProperties: false 36 + allOf: 37 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 38 + 39 + unevaluatedProperties: false 36 40 37 41 examples: 38 42 - |