1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/imu/bosch,bno055.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Bosch BNO055
8
9maintainers:
10  - Andrea Merello <andrea.merello@iit.it>
11
12description: |
13  Inertial Measurement Unit with Accelerometer, Gyroscope, Magnetometer and
14  internal MCU for sensor fusion
15  https://www.bosch-sensortec.com/products/smart-sensors/bno055/
16
17properties:
18  compatible:
19    enum:
20      - bosch,bno055
21
22  reg:
23    maxItems: 1
24
25  reset-gpios:
26    maxItems: 1
27
28  clocks:
29    maxItems: 1
30
31required:
32  - compatible
33
34additionalProperties: false
35
36examples:
37  - |
38    #include <dt-bindings/gpio/gpio.h>
39    serial {
40      imu {
41        compatible = "bosch,bno055";
42        reset-gpios = <&gpio0 54 GPIO_ACTIVE_LOW>;
43        clocks = <&imu_clk>;
44      };
45    };
46
47  - |
48    #include <dt-bindings/gpio/gpio.h>
49    i2c {
50      #address-cells = <1>;
51      #size-cells = <0>;
52
53      imu@28 {
54        compatible = "bosch,bno055";
55        reg = <0x28>;
56        reset-gpios = <&gpio0 54 GPIO_ACTIVE_LOW>;
57        clocks = <&imu_clk>;
58      };
59    };
60