Path: blob/master/Documentation/devicetree/bindings/iio/imu/adi,adis16480.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/imu/adi,adis16480.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices ADIS16480 and similar IMUs78maintainers:9- Alexandru Tachici <alexandru.tachici@analog.com>1011properties:12compatible:13oneOf:14- enum:15- adi,adis1637516- adi,adis1648017- adi,adis1648518- adi,adis1648619- adi,adis1648820- adi,adis1648921- adi,adis1649022- adi,adis16495-123- adi,adis16495-224- adi,adis16495-325- adi,adis16497-126- adi,adis16497-227- adi,adis16497-328- adi,adis16545-129- adi,adis16545-230- adi,adis16545-331- adi,adis16547-132- adi,adis16547-233- adi,adis16547-334- items:35- const: adi,adis1648736- const: adi,adis164853738reg:39maxItems: 14041interrupts:42minItems: 143maxItems: 244description: |45Accepted interrupt types are:46* IRQ_TYPE_EDGE_RISING47* IRQ_TYPE_EDGE_FALLING4849interrupt-names:50minItems: 151maxItems: 252description:53Default if not supplied is DIO1.54items:55enum:56- DIO157- DIO258- DIO359- DIO46061spi-cpha: true62spi-cpol: true6364reset-gpios:65maxItems: 166description: Connected to RESET pin which is active low.6768clocks:69maxItems: 170description: If not provided, then the internal clock is used.7172clock-names:73description: |74sync: In sync mode, the internal clock is disabled and the frequency75of the external clock signal establishes therate of data76collection and processing. See Fig 14 and 15 in the datasheet.77The clock-frequency must be:78* 3000 to 4500 Hz for adis1649x devices.79* 700 to 2400 Hz for adis1648x devices.80pps: In Pulse Per Second (PPS) Mode, the rate of data collection and81production is equal to the product of the external clock82frequency and the scale factor in the SYNC_SCALE register, see83Table 154 in the datasheet.84The clock-frequency must be:85* 1 to 128 Hz for adis1649x devices.86* This mode is not supported by adis1648x devices.87enum:88- sync89- pps9091adi,ext-clk-pin:92$ref: /schemas/types.yaml#/definitions/string93description: |94The DIOx line to be used as an external clock input.95Each DIOx pin supports only one function at a time (data ready line96selection or external clock input). When a single pin has two97two assignments, the enable bit for the lower priority function98automatically resets to zero (disabling the lower priority function).99Data ready has highest priority.100If not provided then DIO2 is assigned as default external clock101input pin.102enum:103- DIO1104- DIO2105- DIO3106- DIO4107108required:109- compatible110- reg111- interrupts112- spi-cpha113- spi-cpol114- spi-max-frequency115116allOf:117- $ref: /schemas/spi/spi-peripheral-props.yaml#118119unevaluatedProperties: false120121examples:122- |123#include <dt-bindings/interrupt-controller/irq.h>124spi {125#address-cells = <1>;126#size-cells = <0>;127128imu@0 {129compatible = "adi,adis16495-1";130reg = <0>;131spi-max-frequency = <3200000>;132spi-cpol;133spi-cpha;134interrupts = <25 IRQ_TYPE_EDGE_FALLING>;135interrupt-parent = <&gpio>;136interrupt-names = "DIO2";137clocks = <&adis16495_sync>;138clock-names = "sync";139adi,ext-clk-pin = "DIO1";140};141};142...143144145