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

dt-bindings: iio: accel: 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-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Krzysztof Kozlowski and committed by
Jonathan Cameron
5f729300 80137388

+56 -38
+4 -3
Documentation/devicetree/bindings/iio/accel/adi,adis16201.yaml
··· 27 27 interrupts: 28 28 maxItems: 1 29 29 30 - spi-max-frequency: true 31 - 32 30 vdd-supply: true 33 31 34 32 required: 35 33 - compatible 36 34 - reg 37 35 38 - additionalProperties: false 36 + allOf: 37 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 38 + 39 + unevaluatedProperties: false 39 40 40 41 examples: 41 42 - |
+4 -3
Documentation/devicetree/bindings/iio/accel/adi,adis16240.yaml
··· 25 25 interrupts: 26 26 maxItems: 1 27 27 28 - spi-max-frequency: true 29 - 30 28 required: 31 29 - compatible 32 30 - reg 33 31 - interrupts 34 32 35 - additionalProperties: false 33 + allOf: 34 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 35 + 36 + unevaluatedProperties: false 36 37 37 38 examples: 38 39 - |
+4 -3
Documentation/devicetree/bindings/iio/accel/adi,adxl313.yaml
··· 24 24 25 25 spi-3wire: true 26 26 27 - spi-max-frequency: true 28 - 29 27 vs-supply: 30 28 description: Regulator that supplies power to the accelerometer 31 29 ··· 46 48 - compatible 47 49 - reg 48 50 49 - additionalProperties: false 51 + allOf: 52 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 53 + 54 + unevaluatedProperties: false 50 55 51 56 examples: 52 57 - |
+4 -3
Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml
··· 32 32 33 33 spi-cpol: true 34 34 35 - spi-max-frequency: true 36 - 37 35 interrupts: 38 36 maxItems: 1 39 37 ··· 40 42 - reg 41 43 - interrupts 42 44 43 - additionalProperties: false 45 + allOf: 46 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 47 + 48 + unevaluatedProperties: false 44 49 45 50 examples: 46 51 - |
+4 -3
Documentation/devicetree/bindings/iio/accel/adi,adxl355.yaml
··· 45 45 vddio-supply: 46 46 description: Regulator that provides power to the bus 47 47 48 - spi-max-frequency: true 49 - 50 48 required: 51 49 - compatible 52 50 - reg 53 51 54 - additionalProperties: false 52 + allOf: 53 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 54 + 55 + unevaluatedProperties: false 55 56 56 57 examples: 57 58 - |
+4 -3
Documentation/devicetree/bindings/iio/accel/adi,adxl367.yaml
··· 35 35 interrupts: 36 36 maxItems: 1 37 37 38 - spi-max-frequency: true 39 - 40 38 vdd-supply: true 41 39 vddio-supply: true 42 40 ··· 43 45 - reg 44 46 - interrupts 45 47 46 - additionalProperties: false 48 + allOf: 49 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 50 + 51 + unevaluatedProperties: false 47 52 48 53 examples: 49 54 - |
+4 -3
Documentation/devicetree/bindings/iio/accel/adi,adxl372.yaml
··· 25 25 interrupts: 26 26 maxItems: 1 27 27 28 - spi-max-frequency: true 29 - 30 28 required: 31 29 - compatible 32 30 - reg 33 31 - interrupts 34 32 35 - additionalProperties: false 33 + allOf: 34 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 35 + 36 + unevaluatedProperties: false 36 37 37 38 examples: 38 39 - |
+4 -3
Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml
··· 20 20 interrupts: 21 21 maxItems: 1 22 22 23 - spi-max-frequency: true 24 - 25 23 vdda-supply: true 26 24 vddd-supply: true 27 25 vddio-supply: true ··· 28 30 - compatible 29 31 - reg 30 32 31 - additionalProperties: false 33 + allOf: 34 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 35 + 36 + unevaluatedProperties: false 32 37 33 38 examples: 34 39 - |
+4 -1
Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml
··· 72 72 - compatible 73 73 - reg 74 74 75 - additionalProperties: false 75 + allOf: 76 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 77 + 78 + unevaluatedProperties: false 76 79 77 80 examples: 78 81 - |
+4 -3
Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml
··· 24 24 reg: 25 25 maxItems: 1 26 26 27 - spi-max-frequency: true 28 - 29 27 vdd-supply: true 30 28 31 29 vddio-supply: true ··· 48 50 - compatible 49 51 - reg 50 52 51 - additionalProperties: false 53 + allOf: 54 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 55 + 56 + unevaluatedProperties: false 52 57 53 58 examples: 54 59 - |
+4 -3
Documentation/devicetree/bindings/iio/accel/fsl,mma7455.yaml
··· 39 39 - "INT1" 40 40 - "INT2" 41 41 42 - spi-max-frequency: true 43 - 44 42 required: 45 43 - compatible 46 44 - reg 47 45 48 - additionalProperties: false 46 + allOf: 47 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 48 + 49 + unevaluatedProperties: false 49 50 50 51 examples: 51 52 - |
+4 -3
Documentation/devicetree/bindings/iio/accel/kionix,kxsd9.yaml
··· 29 29 mount-matrix: 30 30 description: an optional 3x3 mounting rotation matrix. 31 31 32 - spi-max-frequency: true 33 - 34 32 required: 35 33 - compatible 36 34 - reg 37 35 38 - additionalProperties: false 36 + allOf: 37 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 38 + 39 + unevaluatedProperties: false 39 40 40 41 examples: 41 42 - |
+4 -1
Documentation/devicetree/bindings/iio/accel/murata,sca3300.yaml
··· 29 29 - compatible 30 30 - reg 31 31 32 - additionalProperties: false 32 + allOf: 33 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 34 + 35 + unevaluatedProperties: false 33 36 34 37 examples: 35 38 - |
+4 -3
Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml
··· 27 27 vdd-supply: 28 28 description: phandle to the regulator that provides power to the accelerometer 29 29 30 - spi-max-frequency: true 31 - 32 30 interrupts: 33 31 maxItems: 1 34 32 ··· 42 44 - compatible 43 45 - reg 44 46 45 - additionalProperties: false 47 + allOf: 48 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 49 + 50 + unevaluatedProperties: false 46 51 47 52 examples: 48 53 - |