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

dt-bindings: iio: amplifiers: adi,ada4250: 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-4-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Krzysztof Kozlowski and committed by
Jonathan Cameron
1deca207 5f729300

+4 -3
+4 -3
Documentation/devicetree/bindings/iio/amplifiers/adi,ada4250.yaml
··· 27 27 Enable internal buffer to drive the reference pin. 28 28 type: boolean 29 29 30 - spi-max-frequency: true 31 - 32 30 required: 33 31 - compatible 34 32 - reg 35 33 - avdd-supply 36 34 37 - additionalProperties: false 35 + allOf: 36 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 37 + 38 + unevaluatedProperties: false 38 39 39 40 examples: 40 41 - |