Skip to content

Commit

Permalink
dt-bindings: iio: gyroscope: bosch,bmg160: add spi-max-frequency
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marco Felsch authored and Jonathan Cameron committed Feb 28, 2024
1 parent ca1e2b9 commit 6b61aae
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ properties:
vdd-supply: true
vddio-supply: true

spi-max-frequency:
maximum: 10000000

interrupts:
minItems: 1
maxItems: 2
Expand All @@ -33,7 +36,10 @@ required:
- compatible
- reg

additionalProperties: false
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down

0 comments on commit 6b61aae

Please sign in to comment.