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/gyroscope/bosch,bmg160.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Bosch BMG160 triaxial rotation sensor (gyroscope)
0008 
0009 maintainers:
0010   - H. Nikolaus Schaller <hns@goldelico.com>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - bosch,bmg160
0016       - bosch,bmi055_gyro
0017       - bosch,bmi088_gyro
0018 
0019   reg:
0020     maxItems: 1
0021 
0022   vdd-supply: true
0023   vddio-supply: true
0024 
0025   interrupts:
0026     minItems: 1
0027     maxItems: 2
0028     description:
0029       Should be configured with type IRQ_TYPE_EDGE_RISING.
0030       If two interrupts are provided, expected order is INT1 and INT2.
0031 
0032 required:
0033   - compatible
0034   - reg
0035 
0036 additionalProperties: false
0037 
0038 examples:
0039   - |
0040     #include <dt-bindings/interrupt-controller/irq.h>
0041     i2c {
0042         #address-cells = <1>;
0043         #size-cells = <0>;
0044         gyroscope@69 {
0045             compatible = "bosch,bmg160";
0046             reg = <0x69>;
0047             interrupt-parent = <&gpio6>;
0048             interrupts = <18 IRQ_TYPE_EDGE_RISING>;
0049         };
0050     };
0051 ...