15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 25def4c47SEmmanuel Vadot%YAML 1.2 35def4c47SEmmanuel Vadot--- 45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/accel/bosch,bma255.yaml# 55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65def4c47SEmmanuel Vadot 75def4c47SEmmanuel Vadottitle: Bosch BMA255 and Similar Accelerometers 85def4c47SEmmanuel Vadot 95def4c47SEmmanuel Vadotmaintainers: 105def4c47SEmmanuel Vadot - Linus Walleij <linus.walleij@linaro.org> 11354d7675SEmmanuel Vadot - Stephan Gerhold <stephan@gerhold.net> 125def4c47SEmmanuel Vadot 135def4c47SEmmanuel Vadotdescription: 145def4c47SEmmanuel Vadot 3 axis accelerometers with varying range and I2C or SPI 155def4c47SEmmanuel Vadot 4-wire interface. 165def4c47SEmmanuel Vadot 175def4c47SEmmanuel Vadotproperties: 185def4c47SEmmanuel Vadot compatible: 195def4c47SEmmanuel Vadot enum: 20354d7675SEmmanuel Vadot # bmc150-accel driver in Linux 21354d7675SEmmanuel Vadot - bosch,bma222 22354d7675SEmmanuel Vadot - bosch,bma222e 23354d7675SEmmanuel Vadot - bosch,bma250e 245956d97fSEmmanuel Vadot - bosch,bma253 255956d97fSEmmanuel Vadot - bosch,bma254 265def4c47SEmmanuel Vadot - bosch,bma255 275def4c47SEmmanuel Vadot - bosch,bma280 28354d7675SEmmanuel Vadot - bosch,bmc150_accel 29354d7675SEmmanuel Vadot - bosch,bmc156_accel 30354d7675SEmmanuel Vadot - bosch,bmi055_accel 31354d7675SEmmanuel Vadot 32354d7675SEmmanuel Vadot # bma180 driver in Linux 33354d7675SEmmanuel Vadot - bosch,bma023 34354d7675SEmmanuel Vadot - bosch,bma150 35354d7675SEmmanuel Vadot - bosch,bma180 36354d7675SEmmanuel Vadot - bosch,bma250 37354d7675SEmmanuel Vadot - bosch,smb380 385def4c47SEmmanuel Vadot 395def4c47SEmmanuel Vadot reg: 405def4c47SEmmanuel Vadot maxItems: 1 415def4c47SEmmanuel Vadot 425def4c47SEmmanuel Vadot vdd-supply: true 435def4c47SEmmanuel Vadot vddio-supply: true 445def4c47SEmmanuel Vadot 455def4c47SEmmanuel Vadot interrupts: 465956d97fSEmmanuel Vadot minItems: 1 475956d97fSEmmanuel Vadot maxItems: 2 485956d97fSEmmanuel Vadot description: | 49354d7675SEmmanuel Vadot Without interrupt-names, the first interrupt listed must be the one 50354d7675SEmmanuel Vadot connected to the INT1 pin, the second (optional) interrupt listed must be 51354d7675SEmmanuel Vadot the one connected to the INT2 pin (if available). The type should be 52354d7675SEmmanuel Vadot IRQ_TYPE_EDGE_RISING. 53354d7675SEmmanuel Vadot 54354d7675SEmmanuel Vadot BMC156 does not have an INT1 pin, therefore the first interrupt pin is 55354d7675SEmmanuel Vadot always treated as INT2. 56354d7675SEmmanuel Vadot 57354d7675SEmmanuel Vadot interrupt-names: 58354d7675SEmmanuel Vadot minItems: 1 59354d7675SEmmanuel Vadot maxItems: 2 60354d7675SEmmanuel Vadot items: 61354d7675SEmmanuel Vadot enum: 62354d7675SEmmanuel Vadot - INT1 63354d7675SEmmanuel Vadot - INT2 645def4c47SEmmanuel Vadot 655def4c47SEmmanuel Vadot mount-matrix: 665def4c47SEmmanuel Vadot description: an optional 3x3 mounting rotation matrix. 675def4c47SEmmanuel Vadot 685def4c47SEmmanuel Vadot spi-max-frequency: 695def4c47SEmmanuel Vadot maximum: 10000000 705def4c47SEmmanuel Vadot 715def4c47SEmmanuel Vadotrequired: 725def4c47SEmmanuel Vadot - compatible 735def4c47SEmmanuel Vadot - reg 745def4c47SEmmanuel Vadot 75*7ef62cebSEmmanuel VadotallOf: 76*7ef62cebSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 77*7ef62cebSEmmanuel Vadot 78*7ef62cebSEmmanuel VadotunevaluatedProperties: false 795def4c47SEmmanuel Vadot 805def4c47SEmmanuel Vadotexamples: 815def4c47SEmmanuel Vadot - | 825def4c47SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 835def4c47SEmmanuel Vadot i2c { 845def4c47SEmmanuel Vadot #address-cells = <1>; 855def4c47SEmmanuel Vadot #size-cells = <0>; 865def4c47SEmmanuel Vadot accelerometer@8 { 875def4c47SEmmanuel Vadot compatible = "bosch,bma222"; 885def4c47SEmmanuel Vadot reg = <0x08>; 895def4c47SEmmanuel Vadot vddio-supply = <&vddio>; 905def4c47SEmmanuel Vadot vdd-supply = <&vdd>; 91354d7675SEmmanuel Vadot interrupts = <57 IRQ_TYPE_EDGE_RISING>; 92354d7675SEmmanuel Vadot interrupt-names = "INT1"; 93354d7675SEmmanuel Vadot }; 94354d7675SEmmanuel Vadot }; 95354d7675SEmmanuel Vadot - | 96354d7675SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 97354d7675SEmmanuel Vadot i2c { 98354d7675SEmmanuel Vadot #address-cells = <1>; 99354d7675SEmmanuel Vadot #size-cells = <0>; 100354d7675SEmmanuel Vadot accelerometer@10 { 101354d7675SEmmanuel Vadot compatible = "bosch,bmc156_accel"; 102354d7675SEmmanuel Vadot reg = <0x10>; 103354d7675SEmmanuel Vadot vddio-supply = <&vddio>; 104354d7675SEmmanuel Vadot vdd-supply = <&vdd>; 105354d7675SEmmanuel Vadot interrupts = <116 IRQ_TYPE_EDGE_RISING>; 106354d7675SEmmanuel Vadot interrupt-names = "INT2"; 1075def4c47SEmmanuel Vadot }; 1085def4c47SEmmanuel Vadot }; 1095def4c47SEmmanuel Vadot - | 1105def4c47SEmmanuel Vadot # include <dt-bindings/interrupt-controller/irq.h> 1115def4c47SEmmanuel Vadot spi { 1125def4c47SEmmanuel Vadot #address-cells = <1>; 1135def4c47SEmmanuel Vadot #size-cells = <0>; 1145def4c47SEmmanuel Vadot accel@0 { 1155def4c47SEmmanuel Vadot compatible = "bosch,bma222"; 1165def4c47SEmmanuel Vadot reg = <0>; 1175def4c47SEmmanuel Vadot spi-max-frequency = <10000000>; 1185def4c47SEmmanuel Vadot }; 1195def4c47SEmmanuel Vadot }; 1205def4c47SEmmanuel Vadot... 121