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

authored by

Krzysztof Kozlowski and committed by
Jonathan Cameron
8d98a8c6 d9ca9d28

+28 -22
+4 -3
Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml
··· 25 25 26 26 spi-cpol: true 27 27 28 - spi-max-frequency: true 29 - 30 28 interrupts: 31 29 maxItems: 1 32 30 ··· 33 35 - reg 34 36 - interrupts 35 37 36 - additionalProperties: false 38 + allOf: 39 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 40 + 41 + unevaluatedProperties: false 37 42 38 43 examples: 39 44 - |
+5 -4
Documentation/devicetree/bindings/iio/imu/adi,adis16480.yaml
··· 47 47 - DIO3 48 48 - DIO4 49 49 50 - spi-max-frequency: true 51 - 52 50 spi-cpha: true 53 51 spi-cpol: true 54 52 ··· 94 96 - DIO3 95 97 - DIO4 96 98 97 - additionalProperties: false 98 - 99 99 required: 100 100 - compatible 101 101 - reg ··· 101 105 - spi-cpha 102 106 - spi-cpol 103 107 - spi-max-frequency 108 + 109 + allOf: 110 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 111 + 112 + unevaluatedProperties: false 104 113 105 114 examples: 106 115 - |
+4 -3
Documentation/devicetree/bindings/iio/imu/bosch,bmi160.yaml
··· 46 46 mount-matrix: 47 47 description: an optional 3x3 mounting rotation matrix 48 48 49 - spi-max-frequency: true 50 - 51 49 required: 52 50 - compatible 53 51 - reg 54 52 55 - additionalProperties: false 53 + allOf: 54 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 55 + 56 + unevaluatedProperties: false 56 57 57 58 examples: 58 59 - |
+4 -2
Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml
··· 47 47 vddio-supply: 48 48 description: Regulator that provides power to the bus 49 49 50 - spi-max-frequency: true 51 50 spi-cpha: true 52 51 spi-cpol: true 53 52 ··· 55 56 - reg 56 57 - interrupts 57 58 58 - additionalProperties: false 59 + allOf: 60 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 61 + 62 + unevaluatedProperties: false 59 63 60 64 examples: 61 65 - |
+2 -3
Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml
··· 40 40 interrupts: 41 41 maxItems: 1 42 42 43 - spi-max-frequency: true 44 - 45 43 vdd-supply: true 46 44 vddio-supply: true 47 45 ··· 52 54 These devices also support an auxiliary i2c bus via an i2c-gate. 53 55 54 56 allOf: 57 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 55 58 - if: 56 59 not: 57 60 properties: ··· 66 67 properties: 67 68 i2c-gate: false 68 69 69 - additionalProperties: false 70 + unevaluatedProperties: false 70 71 71 72 required: 72 73 - compatible
+4 -3
Documentation/devicetree/bindings/iio/imu/nxp,fxos8700.yaml
··· 36 36 drive-open-drain: 37 37 type: boolean 38 38 39 - spi-max-frequency: true 40 - 41 39 required: 42 40 - compatible 43 41 - reg 44 42 45 - additionalProperties: false 43 + allOf: 44 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 45 + 46 + unevaluatedProperties: false 46 47 47 48 examples: 48 49 - |
+5 -4
Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
··· 45 45 description: 46 46 Supports up to 2 interrupt lines via the INT1 and INT2 pins. 47 47 48 - spi-max-frequency: true 49 - 50 48 vdd-supply: 51 49 description: if defined provides VDD power to the sensor. 52 50 ··· 79 81 wakeup-source: 80 82 $ref: /schemas/types.yaml#/definitions/flag 81 83 82 - additionalProperties: false 83 - 84 84 required: 85 85 - compatible 86 86 - reg 87 + 88 + allOf: 89 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 90 + 91 + unevaluatedProperties: false 87 92 88 93 examples: 89 94 - |