Path: blob/master/Documentation/devicetree/bindings/iio/imu/bosch,smi330.yaml
38303 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/imu/bosch,smi330.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Bosch SMI330 6-Axis IMU78maintainers:9- Stefan Gutmann <stefam.gutmann@de.bosch.com>1011description:12SMI330 is a 6-axis inertial measurement unit that supports acceleration and13gyroscopic measurements with hardware fifo buffering. Sensor also provides14events information such as motion, no-motion and tilt detection.1516properties:17compatible:18const: bosch,smi3301920reg:21maxItems: 12223vdd-supply:24description: provide VDD power to the sensor.2526vddio-supply:27description: provide VDD IO power to the sensor.2829interrupts:30minItems: 131maxItems: 23233interrupt-names:34minItems: 135maxItems: 236items:37enum:38- INT139- INT24041drive-open-drain:42type: boolean43description:44set if the interrupt pin(s) should be configured as45open drain. If not set, defaults to push-pull.4647required:48- compatible49- reg5051allOf:52- $ref: /schemas/spi/spi-peripheral-props.yaml#5354unevaluatedProperties: false5556examples:57- |58// Example for I2C59#include <dt-bindings/interrupt-controller/irq.h>60i2c {61#address-cells = <1>;62#size-cells = <0>;6364imu@68 {65compatible = "bosch,smi330";66reg = <0x68>;67vddio-supply = <&vddio>;68vdd-supply = <&vdd>;69interrupt-parent = <&gpio>;70interrupts = <26 IRQ_TYPE_EDGE_RISING>;71interrupt-names = "INT1";72};73};7475// Example for SPI76#include <dt-bindings/interrupt-controller/irq.h>77spi {78#address-cells = <1>;79#size-cells = <0>;8081imu@0 {82compatible = "bosch,smi330";83reg = <0>;84spi-max-frequency = <10000000>;85interrupt-parent = <&gpio>;86interrupts = <26 IRQ_TYPE_EDGE_RISING>;87interrupt-names = "INT1";88};89};909192