Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: imu: add bmi270 bindings

Add device tree bindings for the bmi270 IMU

Signed-off-by: Alex Lanzano <lanzano.alex@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240912210749.3080157-2-lanzano.alex@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Alex Lanzano and committed by
Jonathan Cameron
242b6890 8b1e800b

+77
+77
Documentation/devicetree/bindings/iio/imu/bosch,bmi270.yaml
··· 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,bmi270.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Bosch BMI270 6-Axis IMU 8 + 9 + maintainers: 10 + - Alex Lanzano <lanzano.alex@gmail.com> 11 + 12 + description: | 13 + BMI270 is a 6-axis inertial measurement unit that can measure acceleration and 14 + angular velocity. The sensor also supports configurable interrupt events such 15 + as motion, step counter, and wrist motion gestures. The sensor can communicate 16 + I2C or SPI. 17 + https://www.bosch-sensortec.com/products/motion-sensors/imus/bmi270/ 18 + 19 + properties: 20 + compatible: 21 + const: bosch,bmi270 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + vdd-supply: true 27 + vddio-supply: true 28 + 29 + interrupts: 30 + minItems: 1 31 + maxItems: 2 32 + 33 + interrupt-names: 34 + minItems: 1 35 + maxItems: 2 36 + items: 37 + enum: 38 + - INT1 39 + - INT2 40 + 41 + drive-open-drain: 42 + description: 43 + set if the specified interrupt pins should be configured as 44 + open drain. If not set, defaults to push-pull. 45 + 46 + mount-matrix: 47 + description: 48 + an optional 3x3 mounting rotation matrix. 49 + 50 + required: 51 + - compatible 52 + - reg 53 + - vdd-supply 54 + - vddio-supply 55 + 56 + allOf: 57 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 58 + 59 + unevaluatedProperties: false 60 + 61 + examples: 62 + - | 63 + #include <dt-bindings/interrupt-controller/irq.h> 64 + i2c { 65 + #address-cells = <1>; 66 + #size-cells = <0>; 67 + 68 + imu@68 { 69 + compatible = "bosch,bmi270"; 70 + reg = <0x68>; 71 + vdd-supply = <&vdd>; 72 + vddio-supply = <&vddio>; 73 + interrupt-parent = <&gpio1>; 74 + interrupts = <16 IRQ_TYPE_EDGE_RISING>; 75 + interrupt-names = "INT1"; 76 + }; 77 + };