Path: blob/main/sys/contrib/device-tree/Bindings/iio/imu/bosch,bmi160.yaml
48523 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/imu/bosch,bmi160.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Bosch BMI16078maintainers:9- Jonathan Cameron <jic23@kernel.org>1011description: |12Inertial Measurement Unit with Accelerometer, Gyroscope and externally13connectable Magnetometer14https://www.bosch-sensortec.com/bst/products/all_products/bmi1601516properties:17compatible:18oneOf:19- const: bosch,bmi16020- items:21- const: bosch,bmi12022- const: bosch,bmi1602324reg:25maxItems: 12627interrupts:28maxItems: 12930interrupt-names:31enum:32- INT133- INT234description: |35set to "INT1" if INT1 pin should be used as interrupt input, set36to "INT2" if INT2 pin should be used instead3738drive-open-drain:39description: |40set if the specified interrupt pin should be configured as41open drain. If not set, defaults to push-pull.4243vdd-supply:44description: provide VDD power to the sensor.4546vddio-supply:47description: provide VDD IO power to the sensor.4849mount-matrix:50description: an optional 3x3 mounting rotation matrix5152required:53- compatible54- reg5556allOf:57- $ref: /schemas/spi/spi-peripheral-props.yaml#5859unevaluatedProperties: false6061examples:62- |63// Example for I2C64#include <dt-bindings/interrupt-controller/irq.h>65i2c {66#address-cells = <1>;67#size-cells = <0>;6869bmi160@68 {70compatible = "bosch,bmi160";71reg = <0x68>;72vdd-supply = <&pm8916_l17>;73vddio-supply = <&pm8916_l6>;74interrupt-parent = <&gpio4>;75interrupts = <12 IRQ_TYPE_EDGE_RISING>;76interrupt-names = "INT1";77mount-matrix = "0", "1", "0",78"-1", "0", "0",79"0", "0", "1";80};81};82- |83// Example for SPI84#include <dt-bindings/interrupt-controller/irq.h>85spi {86#address-cells = <1>;87#size-cells = <0>;8889bmi160@0 {90compatible = "bosch,bmi160";91reg = <0>;92spi-max-frequency = <10000000>;93interrupt-parent = <&gpio2>;94interrupts = <12 IRQ_TYPE_EDGE_RISING>;95interrupt-names = "INT2";96};97};9899100