Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/imu/adi,adis16460.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Analog Devices ADIS16460 and similar IMUs
0008 
0009 maintainers:
0010   - Dragos Bogdan <dragos.bogdan@analog.com>
0011 
0012 description: |
0013   Analog Devices ADIS16460 and similar IMUs
0014   https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16460.pdf
0015 
0016 properties:
0017   compatible:
0018     enum:
0019       - adi,adis16460
0020 
0021   reg:
0022     maxItems: 1
0023 
0024   spi-cpha: true
0025 
0026   spi-cpol: true
0027 
0028   spi-max-frequency: true
0029 
0030   interrupts:
0031     maxItems: 1
0032 
0033 required:
0034   - compatible
0035   - reg
0036   - interrupts
0037 
0038 additionalProperties: false
0039 
0040 examples:
0041   - |
0042     #include <dt-bindings/gpio/gpio.h>
0043     #include <dt-bindings/interrupt-controller/irq.h>
0044     spi0 {
0045         #address-cells = <1>;
0046         #size-cells = <0>;
0047 
0048         imu@0 {
0049             compatible = "adi,adis16460";
0050             reg = <0>;
0051             spi-max-frequency = <5000000>;
0052             spi-cpol;
0053             spi-cpha;
0054             interrupt-parent = <&gpio0>;
0055             interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
0056         };
0057     };