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

dt-bindings: iio: gyroscope: bosch,bmg160: add spi-max-frequency

Make use of the common spi-peripheral-props.yaml to pull in the common
spi device properties and limit the spi-max-frequency to 10 MHz as this
is the max. frequency if VDDIO >= 1.62V.

Note all listed devices can either operate in I2C or in SPI mode.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240221174305.3423039-1-m.felsch@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Marco Felsch and committed by
Jonathan Cameron
6b61aae3 ca1e2b91

+7 -1
+7 -1
Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
··· 22 22 vdd-supply: true 23 23 vddio-supply: true 24 24 25 + spi-max-frequency: 26 + maximum: 10000000 27 + 25 28 interrupts: 26 29 minItems: 1 27 30 maxItems: 2 ··· 36 33 - compatible 37 34 - reg 38 35 39 - additionalProperties: false 36 + allOf: 37 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 38 + 39 + unevaluatedProperties: false 40 40 41 41 examples: 42 42 - |