Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/accel/adi,adis16201.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: ADIS16201 Dual Axis Inclinometer and similar
0008 
0009 maintainers:
0010   - Jonathan Cameron <Jonathan.Cameron@huawei.com>
0011 
0012 description: |
0013   Two similar parts from external interface point of view.
0014   SPI interface.
0015     https://www.analog.com/en/products/adis16201.html
0016     https://www.analog.com/en/products/adis16209.html
0017 
0018 properties:
0019   compatible:
0020     enum:
0021       - adi,adis16201
0022       - adi,adis16209
0023 
0024   reg:
0025     maxItems: 1
0026 
0027   interrupts:
0028     maxItems: 1
0029 
0030   spi-max-frequency: true
0031 
0032   vdd-supply: true
0033 
0034 required:
0035   - compatible
0036   - reg
0037 
0038 additionalProperties: false
0039 
0040 examples:
0041   - |
0042     #include <dt-bindings/interrupt-controller/irq.h>
0043     spi0 {
0044         #address-cells = <1>;
0045         #size-cells = <0>;
0046 
0047         accelerometer@0 {
0048             compatible = "adi,adis16201";
0049             reg = <0>;
0050             spi-max-frequency = <2500000>;
0051             interrupt-parent = <&gpio0>;
0052             interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
0053         };
0054     };
0055 ...