Path: blob/master/Documentation/devicetree/bindings/iio/imu/adi,adis16480.yaml
29539 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- Marcelo Schmitt <marcelo.schmitt@analog.com>10- Nuno Sá <nuno.sa@analog.com>1112properties:13compatible:14oneOf:15- enum:16- adi,adis1637517- adi,adis1648018- adi,adis1648519- adi,adis1648620- adi,adis1648821- adi,adis1648922- adi,adis1649023- adi,adis16495-124- adi,adis16495-225- adi,adis16495-326- adi,adis16497-127- adi,adis16497-228- adi,adis16497-329- adi,adis16545-130- adi,adis16545-231- adi,adis16545-332- adi,adis16547-133- adi,adis16547-234- adi,adis16547-335- items:36- const: adi,adis1648737- const: adi,adis164853839reg:40maxItems: 14142interrupts:43minItems: 144maxItems: 245description: |46Accepted interrupt types are:47* IRQ_TYPE_EDGE_RISING48* IRQ_TYPE_EDGE_FALLING4950interrupt-names:51minItems: 152maxItems: 253description:54Default if not supplied is DIO1.55items:56enum:57- DIO158- DIO259- DIO360- DIO46162spi-cpha: true63spi-cpol: true6465reset-gpios:66maxItems: 167description: Connected to RESET pin which is active low.6869clocks:70maxItems: 171description: If not provided, then the internal clock is used.7273clock-names:74description: |75sync: In sync mode, the internal clock is disabled and the frequency76of the external clock signal establishes therate of data77collection and processing. See Fig 14 and 15 in the datasheet.78The clock-frequency must be:79* 3000 to 4500 Hz for adis1649x devices.80* 700 to 2400 Hz for adis1648x devices.81pps: In Pulse Per Second (PPS) Mode, the rate of data collection and82production is equal to the product of the external clock83frequency and the scale factor in the SYNC_SCALE register, see84Table 154 in the datasheet.85The clock-frequency must be:86* 1 to 128 Hz for adis1649x devices.87* This mode is not supported by adis1648x devices.88enum:89- sync90- pps9192adi,ext-clk-pin:93$ref: /schemas/types.yaml#/definitions/string94description: |95The DIOx line to be used as an external clock input.96Each DIOx pin supports only one function at a time (data ready line97selection or external clock input). When a single pin has two98two assignments, the enable bit for the lower priority function99automatically resets to zero (disabling the lower priority function).100Data ready has highest priority.101If not provided then DIO2 is assigned as default external clock102input pin.103enum:104- DIO1105- DIO2106- DIO3107- DIO4108109required:110- compatible111- reg112- interrupts113- spi-cpha114- spi-cpol115- spi-max-frequency116117allOf:118- $ref: /schemas/spi/spi-peripheral-props.yaml#119120unevaluatedProperties: false121122examples:123- |124#include <dt-bindings/interrupt-controller/irq.h>125spi {126#address-cells = <1>;127#size-cells = <0>;128129imu@0 {130compatible = "adi,adis16495-1";131reg = <0>;132spi-max-frequency = <3200000>;133spi-cpol;134spi-cpha;135interrupts = <25 IRQ_TYPE_EDGE_FALLING>;136interrupt-parent = <&gpio>;137interrupt-names = "DIO2";138clocks = <&adis16495_sync>;139clock-names = "sync";140adi,ext-clk-pin = "DIO1";141};142};143...144145146