Path: blob/main/sys/contrib/device-tree/Bindings/iio/imu/adi,adis16480.yaml
48523 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:13enum:14- adi,adis1637515- adi,adis1648016- adi,adis1648517- adi,adis1648818- adi,adis1649019- adi,adis16495-120- adi,adis16495-221- adi,adis16495-322- adi,adis16497-123- adi,adis16497-224- adi,adis16497-325- adi,adis16545-126- adi,adis16545-227- adi,adis16545-328- adi,adis16547-129- adi,adis16547-230- adi,adis16547-33132reg:33maxItems: 13435interrupts:36minItems: 137maxItems: 238description: |39Accepted interrupt types are:40* IRQ_TYPE_EDGE_RISING41* IRQ_TYPE_EDGE_FALLING4243interrupt-names:44minItems: 145maxItems: 246description:47Default if not supplied is DIO1.48items:49enum:50- DIO151- DIO252- DIO353- DIO45455spi-cpha: true56spi-cpol: true5758reset-gpios:59maxItems: 160description: Connected to RESET pin which is active low.6162clocks:63maxItems: 164description: If not provided, then the internal clock is used.6566clock-names:67description: |68sync: In sync mode, the internal clock is disabled and the frequency69of the external clock signal establishes therate of data70collection and processing. See Fig 14 and 15 in the datasheet.71The clock-frequency must be:72* 3000 to 4500 Hz for adis1649x devices.73* 700 to 2400 Hz for adis1648x devices.74pps: In Pulse Per Second (PPS) Mode, the rate of data collection and75production is equal to the product of the external clock76frequency and the scale factor in the SYNC_SCALE register, see77Table 154 in the datasheet.78The clock-frequency must be:79* 1 to 128 Hz for adis1649x devices.80* This mode is not supported by adis1648x devices.81enum:82- sync83- pps8485adi,ext-clk-pin:86$ref: /schemas/types.yaml#/definitions/string87description: |88The DIOx line to be used as an external clock input.89Each DIOx pin supports only one function at a time (data ready line90selection or external clock input). When a single pin has two91two assignments, the enable bit for the lower priority function92automatically resets to zero (disabling the lower priority function).93Data ready has highest priority.94If not provided then DIO2 is assigned as default external clock95input pin.96enum:97- DIO198- DIO299- DIO3100- DIO4101102required:103- compatible104- reg105- interrupts106- spi-cpha107- spi-cpol108- spi-max-frequency109110allOf:111- $ref: /schemas/spi/spi-peripheral-props.yaml#112113unevaluatedProperties: false114115examples:116- |117#include <dt-bindings/interrupt-controller/irq.h>118spi {119#address-cells = <1>;120#size-cells = <0>;121122imu@0 {123compatible = "adi,adis16495-1";124reg = <0>;125spi-max-frequency = <3200000>;126spi-cpol;127spi-cpha;128interrupts = <25 IRQ_TYPE_EDGE_FALLING>;129interrupt-parent = <&gpio>;130interrupt-names = "DIO2";131clocks = <&adis16495_sync>;132clock-names = "sync";133adi,ext-clk-pin = "DIO1";134};135};136...137138139