12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 22eb4d8dcSEmmanuel Vadot%YAML 1.2 32eb4d8dcSEmmanuel Vadot--- 42eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/accel/bosch,bmi088.yaml# 52eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 62eb4d8dcSEmmanuel Vadot 72eb4d8dcSEmmanuel Vadottitle: Bosch BMI088 IMU accelerometer part 82eb4d8dcSEmmanuel Vadot 92eb4d8dcSEmmanuel Vadotmaintainers: 102eb4d8dcSEmmanuel Vadot - Mike Looijmans <mike.looijmans@topic.nl> 112eb4d8dcSEmmanuel Vadot 122eb4d8dcSEmmanuel Vadotdescription: | 132eb4d8dcSEmmanuel Vadot Acceleration part of the IMU sensor with an SPI interface 142eb4d8dcSEmmanuel Vadot Specifications about the sensor can be found at: 152eb4d8dcSEmmanuel Vadot https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmi088-ds001.pdf 162eb4d8dcSEmmanuel Vadot 172eb4d8dcSEmmanuel Vadotproperties: 182eb4d8dcSEmmanuel Vadot compatible: 192eb4d8dcSEmmanuel Vadot enum: 20b97ee269SEmmanuel Vadot - bosch,bmi085-accel 212eb4d8dcSEmmanuel Vadot - bosch,bmi088-accel 22b97ee269SEmmanuel Vadot - bosch,bmi090l-accel 232eb4d8dcSEmmanuel Vadot 242eb4d8dcSEmmanuel Vadot reg: 252eb4d8dcSEmmanuel Vadot maxItems: 1 262eb4d8dcSEmmanuel Vadot 272eb4d8dcSEmmanuel Vadot vdd-supply: true 282eb4d8dcSEmmanuel Vadot 292eb4d8dcSEmmanuel Vadot vddio-supply: true 302eb4d8dcSEmmanuel Vadot 312eb4d8dcSEmmanuel Vadot interrupts: 322eb4d8dcSEmmanuel Vadot minItems: 1 332eb4d8dcSEmmanuel Vadot maxItems: 2 342eb4d8dcSEmmanuel Vadot description: | 352eb4d8dcSEmmanuel Vadot Type should be either IRQ_TYPE_LEVEL_HIGH or IRQ_TYPE_LEVEL_LOW. 362eb4d8dcSEmmanuel Vadot Two configurable interrupt lines exist. 372eb4d8dcSEmmanuel Vadot 382eb4d8dcSEmmanuel Vadot interrupt-names: 392eb4d8dcSEmmanuel Vadot description: Specify which interrupt line is in use. 402eb4d8dcSEmmanuel Vadot items: 412eb4d8dcSEmmanuel Vadot enum: 422eb4d8dcSEmmanuel Vadot - INT1 432eb4d8dcSEmmanuel Vadot - INT2 442eb4d8dcSEmmanuel Vadot minItems: 1 452eb4d8dcSEmmanuel Vadot maxItems: 2 462eb4d8dcSEmmanuel Vadot 472eb4d8dcSEmmanuel Vadotrequired: 482eb4d8dcSEmmanuel Vadot - compatible 492eb4d8dcSEmmanuel Vadot - reg 502eb4d8dcSEmmanuel Vadot 51*7ef62cebSEmmanuel VadotallOf: 52*7ef62cebSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 53*7ef62cebSEmmanuel Vadot 54*7ef62cebSEmmanuel VadotunevaluatedProperties: false 552eb4d8dcSEmmanuel Vadot 562eb4d8dcSEmmanuel Vadotexamples: 572eb4d8dcSEmmanuel Vadot - | 582eb4d8dcSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 592eb4d8dcSEmmanuel Vadot spi { 602eb4d8dcSEmmanuel Vadot #address-cells = <1>; 612eb4d8dcSEmmanuel Vadot #size-cells = <0>; 622eb4d8dcSEmmanuel Vadot bmi088-accel@1 { 632eb4d8dcSEmmanuel Vadot compatible = "bosch,bmi088-accel"; 642eb4d8dcSEmmanuel Vadot reg = <1>; 652eb4d8dcSEmmanuel Vadot spi-max-frequency = <10000000>; 662eb4d8dcSEmmanuel Vadot interrupt-parent = <&gpio6>; 672eb4d8dcSEmmanuel Vadot interrupts = <19 IRQ_TYPE_LEVEL_LOW>; 682eb4d8dcSEmmanuel Vadot interrupt-names = "INT2"; 692eb4d8dcSEmmanuel Vadot }; 702eb4d8dcSEmmanuel Vadot }; 712eb4d8dcSEmmanuel Vadot... 72