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/bosch,bmi088.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Bosch BMI088 IMU accelerometer part
0008 
0009 maintainers:
0010   - Mike Looijmans <mike.looijmans@topic.nl>
0011 
0012 description: |
0013   Acceleration part of the IMU sensor with an SPI interface
0014   Specifications about the sensor can be found at:
0015     https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmi088-ds001.pdf
0016 
0017 properties:
0018   compatible:
0019     enum:
0020       - bosch,bmi085-accel
0021       - bosch,bmi088-accel
0022       - bosch,bmi090l-accel
0023 
0024   reg:
0025     maxItems: 1
0026 
0027   spi-max-frequency: true
0028 
0029   vdd-supply: true
0030 
0031   vddio-supply: true
0032 
0033   interrupts:
0034     minItems: 1
0035     maxItems: 2
0036     description: |
0037       Type should be either IRQ_TYPE_LEVEL_HIGH or IRQ_TYPE_LEVEL_LOW.
0038       Two configurable interrupt lines exist.
0039 
0040   interrupt-names:
0041     description: Specify which interrupt line is in use.
0042     items:
0043       enum:
0044         - INT1
0045         - INT2
0046     minItems: 1
0047     maxItems: 2
0048 
0049 required:
0050   - compatible
0051   - reg
0052 
0053 additionalProperties: false
0054 
0055 examples:
0056   - |
0057     #include <dt-bindings/interrupt-controller/irq.h>
0058     spi {
0059       #address-cells = <1>;
0060       #size-cells = <0>;
0061       bmi088-accel@1 {
0062         compatible = "bosch,bmi088-accel";
0063         reg = <1>;
0064         spi-max-frequency = <10000000>;
0065         interrupt-parent = <&gpio6>;
0066         interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
0067         interrupt-names = "INT2";
0068       };
0069     };
0070 ...