xref: /linux/Documentation/devicetree/bindings/iio/imu/bosch,smi240.yaml (revision 2eff01ee2881becc9daaa0d53477ec202136b1f4)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/imu/bosch,smi240.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Bosch smi240 imu
8
9maintainers:
10  - Jianping Shen <Jianping.Shen@de.bosch.com>
11
12description:
13  Inertial Measurement Unit with Accelerometer and Gyroscope
14  with a measurement range of +/-300°/s and up to 16g.
15  https://www.bosch-semiconductors.com/mems-sensors/highly-automated-driving/smi240/
16
17properties:
18  compatible:
19    const: bosch,smi240
20
21  reg:
22    maxItems: 1
23
24  vdd-supply: true
25  vddio-supply: true
26
27required:
28  - compatible
29  - reg
30  - vdd-supply
31  - vddio-supply
32
33allOf:
34  - $ref: /schemas/spi/spi-peripheral-props.yaml#
35
36unevaluatedProperties: false
37
38examples:
39  - |
40    spi {
41        #address-cells = <1>;
42        #size-cells = <0>;
43
44        imu@0 {
45            compatible = "bosch,smi240";
46            reg = <0>;
47            vdd-supply = <&vdd>;
48            vddio-supply = <&vddio>;
49            spi-max-frequency = <10000000>;
50        };
51    };
52