Skip to content

Commit 21f95c7

Browse files
andreamerellojic23
authored andcommitted
dt-bindings: iio/imu: Add Bosch BNO055
Introduce new documentation file for the Bosch BNO055 IMU. Signed-off-by: Andrea Merello <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent e4ea07c commit 21f95c7

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
7+
title: Bosch BNO055
8+
9+
maintainers:
10+
- Andrea Merello <[email protected]>
11+
12+
description: |
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+
17+
properties:
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+
31+
required:
32+
- compatible
33+
34+
additionalProperties: false
35+
36+
examples:
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+
};

0 commit comments

Comments
 (0)