Path: blob/master/Documentation/devicetree/bindings/iio/imu/bosch,bmi160.yaml
26309 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:39type: boolean40description: |41set if the specified interrupt pin should be configured as42open drain. If not set, defaults to push-pull.4344vdd-supply:45description: provide VDD power to the sensor.4647vddio-supply:48description: provide VDD IO power to the sensor.4950mount-matrix:51description: an optional 3x3 mounting rotation matrix5253required:54- compatible55- reg5657allOf:58- $ref: /schemas/spi/spi-peripheral-props.yaml#5960unevaluatedProperties: false6162examples:63- |64// Example for I2C65#include <dt-bindings/interrupt-controller/irq.h>66i2c {67#address-cells = <1>;68#size-cells = <0>;6970bmi160@68 {71compatible = "bosch,bmi160";72reg = <0x68>;73vdd-supply = <&pm8916_l17>;74vddio-supply = <&pm8916_l6>;75interrupt-parent = <&gpio4>;76interrupts = <12 IRQ_TYPE_EDGE_RISING>;77interrupt-names = "INT1";78mount-matrix = "0", "1", "0",79"-1", "0", "0",80"0", "0", "1";81};82};83- |84// Example for SPI85#include <dt-bindings/interrupt-controller/irq.h>86spi {87#address-cells = <1>;88#size-cells = <0>;8990bmi160@0 {91compatible = "bosch,bmi160";92reg = <0>;93spi-max-frequency = <10000000>;94interrupt-parent = <&gpio2>;95interrupts = <12 IRQ_TYPE_EDGE_RISING>;96interrupt-names = "INT2";97};98};99100101