Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/iio/imu/adi,adis16460.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Analog Devices ADIS16460 and similar IMUs |
| 8 | |
| 9 | maintainers: |
| 10 | - Dragos Bogdan <dragos.bogdan@analog.com> |
| 11 | |
| 12 | description: | |
| 13 | Analog Devices ADIS16460 and similar IMUs |
| 14 | https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16460.pdf |
| 15 | |
| 16 | properties: |
| 17 | compatible: |
| 18 | enum: |
| 19 | - adi,adis16460 |
| 20 | |
| 21 | reg: |
| 22 | maxItems: 1 |
| 23 | |
| 24 | spi-cpha: true |
| 25 | |
| 26 | spi-cpol: true |
| 27 | |
| 28 | interrupts: |
| 29 | maxItems: 1 |
| 30 | |
| 31 | required: |
| 32 | - compatible |
| 33 | - reg |
| 34 | - interrupts |
| 35 | |
| 36 | allOf: |
| 37 | - $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 38 | |
| 39 | unevaluatedProperties: false |
| 40 | |
| 41 | examples: |
| 42 | - | |
| 43 | #include <dt-bindings/gpio/gpio.h> |
| 44 | #include <dt-bindings/interrupt-controller/irq.h> |
| 45 | spi { |
| 46 | #address-cells = <1>; |
| 47 | #size-cells = <0>; |
| 48 | |
| 49 | imu@0 { |
| 50 | compatible = "adi,adis16460"; |
| 51 | reg = <0>; |
| 52 | spi-max-frequency = <5000000>; |
| 53 | spi-cpol; |
| 54 | spi-cpha; |
| 55 | interrupt-parent = <&gpio0>; |
| 56 | interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; |
| 57 | }; |
| 58 | }; |