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: potentiometer: 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-9-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Krzysztof Kozlowski and committed by
Jonathan Cameron
efcdb1ab 8d98a8c6

+10 -8
+5 -4
Documentation/devicetree/bindings/iio/potentiometer/microchip,mcp41010.yaml
··· 25 25 reg: 26 26 maxItems: 1 27 27 28 - spi-max-frequency: true 29 - 30 - additionalProperties: false 31 - 32 28 required: 33 29 - compatible 34 30 - reg 31 + 32 + allOf: 33 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 34 + 35 + unevaluatedProperties: false 35 36 36 37 examples: 37 38 - |
+5 -4
Documentation/devicetree/bindings/iio/potentiometer/microchip,mcp4131.yaml
··· 80 80 reg: 81 81 maxItems: 1 82 82 83 - spi-max-frequency: true 84 - 85 - additionalProperties: false 86 - 87 83 required: 88 84 - compatible 89 85 - reg 86 + 87 + allOf: 88 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 89 + 90 + unevaluatedProperties: false 90 91 91 92 examples: 92 93 - |