16259551cSLinus Walleij# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 26259551cSLinus Walleij%YAML 1.2 36259551cSLinus Walleij--- 46259551cSLinus Walleij$id: http://devicetree.org/schemas/iio/accel/bosch,bma255.yaml# 56259551cSLinus Walleij$schema: http://devicetree.org/meta-schemas/core.yaml# 66259551cSLinus Walleij 76259551cSLinus Walleijtitle: Bosch BMA255 and Similar Accelerometers 86259551cSLinus Walleij 96259551cSLinus Walleijmaintainers: 106259551cSLinus Walleij - Linus Walleij <linus.walleij@linaro.org> 116259551cSLinus Walleij 126259551cSLinus Walleijdescription: 136259551cSLinus Walleij 3 axis accelerometers with varying range and I2C or SPI 146259551cSLinus Walleij 4-wire interface. 156259551cSLinus Walleij 166259551cSLinus Walleijproperties: 176259551cSLinus Walleij compatible: 186259551cSLinus Walleij enum: 19b6bc1b4fSStephan Gerhold - bosch,bmc150_accel 20b6bc1b4fSStephan Gerhold - bosch,bmi055_accel 21c3a16200SStephan Gerhold - bosch,bma253 225640fed3SStephan Gerhold - bosch,bma254 236259551cSLinus Walleij - bosch,bma255 246259551cSLinus Walleij - bosch,bma250e 256259551cSLinus Walleij - bosch,bma222 266259551cSLinus Walleij - bosch,bma222e 276259551cSLinus Walleij - bosch,bma280 286259551cSLinus Walleij 296259551cSLinus Walleij reg: 306259551cSLinus Walleij maxItems: 1 316259551cSLinus Walleij 326259551cSLinus Walleij vdd-supply: true 336259551cSLinus Walleij vddio-supply: true 346259551cSLinus Walleij 356259551cSLinus Walleij interrupts: 36d1e7ff89SStephan Gerhold minItems: 1 37d1e7ff89SStephan Gerhold maxItems: 2 38d1e7ff89SStephan Gerhold description: | 39d1e7ff89SStephan Gerhold The first interrupt listed must be the one connected to the INT1 pin, 40d1e7ff89SStephan Gerhold the second (optional) interrupt listed must be the one connected to the 41*39361c99SStephan Gerhold INT2 pin (if available). The type should be IRQ_TYPE_EDGE_RISING. 426259551cSLinus Walleij 436259551cSLinus Walleij mount-matrix: 446259551cSLinus Walleij description: an optional 3x3 mounting rotation matrix. 456259551cSLinus Walleij 466259551cSLinus Walleij spi-max-frequency: 476259551cSLinus Walleij maximum: 10000000 486259551cSLinus Walleij 496259551cSLinus Walleijrequired: 506259551cSLinus Walleij - compatible 516259551cSLinus Walleij - reg 526259551cSLinus Walleij 536259551cSLinus WalleijadditionalProperties: false 546259551cSLinus Walleij 556259551cSLinus Walleijexamples: 566259551cSLinus Walleij - | 576259551cSLinus Walleij #include <dt-bindings/interrupt-controller/irq.h> 586259551cSLinus Walleij i2c { 596259551cSLinus Walleij #address-cells = <1>; 606259551cSLinus Walleij #size-cells = <0>; 616259551cSLinus Walleij accelerometer@8 { 626259551cSLinus Walleij compatible = "bosch,bma222"; 636259551cSLinus Walleij reg = <0x08>; 646259551cSLinus Walleij vddio-supply = <&vddio>; 656259551cSLinus Walleij vdd-supply = <&vdd>; 66*39361c99SStephan Gerhold interrupts = <57 IRQ_TYPE_EDGE_RISING>; 676259551cSLinus Walleij }; 686259551cSLinus Walleij }; 696259551cSLinus Walleij - | 706259551cSLinus Walleij # include <dt-bindings/interrupt-controller/irq.h> 716259551cSLinus Walleij spi { 726259551cSLinus Walleij #address-cells = <1>; 736259551cSLinus Walleij #size-cells = <0>; 746259551cSLinus Walleij accel@0 { 756259551cSLinus Walleij compatible = "bosch,bma222"; 766259551cSLinus Walleij reg = <0>; 776259551cSLinus Walleij spi-max-frequency = <10000000>; 786259551cSLinus Walleij }; 796259551cSLinus Walleij }; 806259551cSLinus Walleij... 81