Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 # Copyright 2020 Analog Devices Inc.
0003 %YAML 1.2
0004 ---
0005 $id: http://devicetree.org/schemas/iio/gyroscope/adi,adxrs290.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007 
0008 title: Analog Devices ADXRS290 Dual-Axis MEMS Gyroscope
0009 
0010 maintainers:
0011   - Nishant Malpani <nish.malpani25@gmail.com>
0012 
0013 description: |
0014   Bindings for the Analog Devices ADXRS290 dual-axis MEMS gyroscope device.
0015   https://www.analog.com/media/en/technical-documentation/data-sheets/ADXRS290.pdf
0016 
0017 properties:
0018   compatible:
0019     const: adi,adxrs290
0020 
0021   reg:
0022     maxItems: 1
0023 
0024   spi-max-frequency:
0025     maximum: 5000000
0026 
0027   spi-cpol: true
0028 
0029   spi-cpha: true
0030 
0031   interrupts:
0032     maxItems: 1
0033 
0034 required:
0035   - compatible
0036   - reg
0037   - spi-max-frequency
0038   - spi-cpol
0039   - spi-cpha
0040 
0041 additionalProperties: false
0042 
0043 examples:
0044   - |
0045     #include <dt-bindings/interrupt-controller/irq.h>
0046     spi {
0047         #address-cells = <1>;
0048         #size-cells = <0>;
0049         gyro@0 {
0050                    compatible = "adi,adxrs290";
0051                    reg = <0>;
0052                    spi-max-frequency = <5000000>;
0053                    spi-cpol;
0054                    spi-cpha;
0055                    interrupt-parent = <&gpio>;
0056                    interrupts = <25 IRQ_TYPE_EDGE_RISING>;
0057         };
0058     };
0059 ...