Path: blob/main/sys/contrib/device-tree/Bindings/iio/imu/adi,adis16480.txt
48523 views
1Analog Devices ADIS16480 and similar IMUs23Required properties for the ADIS16480:45- compatible: Must be one of6* "adi,adis16375"7* "adi,adis16480"8* "adi,adis16485"9* "adi,adis16488"10* "adi,adis16490"11* "adi,adis16495-1"12* "adi,adis16495-2"13* "adi,adis16495-3"14* "adi,adis16497-1"15* "adi,adis16497-2"16* "adi,adis16497-3"17- reg: SPI chip select number for the device18- spi-max-frequency: Max SPI frequency to use19see: Documentation/devicetree/bindings/spi/spi-bus.txt20- spi-cpha: See Documentation/devicetree/bindings/spi/spi-bus.txt21- spi-cpol: See Documentation/devicetree/bindings/spi/spi-bus.txt22- interrupts: interrupt mapping for IRQ, accepted values are:23* IRQF_TRIGGER_RISING24* IRQF_TRIGGER_FALLING2526Optional properties:2728- interrupt-names: Data ready line selection. Valid values are:29* DIO130* DIO231* DIO332* DIO433If this field is left empty, DIO1 is assigned as default data ready34signal.35- reset-gpios: must be the device tree identifier of the RESET pin. As the line36is active low, it should be marked GPIO_ACTIVE_LOW.37- clocks: phandle to the external clock. Should be set according to38"clock-names".39If this field is left empty together with the "clock-names" field, then40the internal clock is used.41- clock-names: The name of the external clock to be used. Valid values are:42* sync: In sync mode, the internal clock is disabled and the frequency43of the external clock signal establishes therate of data44collection and processing. See Fig 14 and 15 in the datasheet.45The clock-frequency must be:46* 3000 to 4500 Hz for adis1649x devices.47* 700 to 2400 Hz for adis1648x devices.48* pps: In Pulse Per Second (PPS) Mode, the rate of data collection and49production is equal to the product of the external clock50frequency and the scale factor in the SYNC_SCALE register, see51Table 154 in the datasheet.52The clock-frequency must be:53* 1 to 128 Hz for adis1649x devices.54* This mode is not supported by adis1648x devices.55If this field is left empty together with the "clocks" field, then the56internal clock is used.57- adi,ext-clk-pin: The DIOx line to be used as an external clock input.58Valid values are:59* DIO160* DIO261* DIO362* DIO463Each DIOx pin supports only one function at a time (data ready line64selection or external clock input). When a single pin has two65two assignments, the enable bit for the lower priority function66automatically resets to zero (disabling the lower priority function).67Data ready has highest priority.68If this field is left empty, DIO2 is assigned as default external clock69input pin.7071Example:7273imu@0 {74compatible = "adi,adis16495-1";75reg = <0>;76spi-max-frequency = <3200000>;77spi-cpol;78spi-cpha;79interrupts = <25 IRQF_TRIGGER_FALLING>;80interrupt-parent = <&gpio>;81interrupt-names = "DIO2";82clocks = <&adis16495_sync>;83clock-names = "sync";84adi,ext-clk-pin = "DIO1";85};868788