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 21*c3a16200SStephan Gerhold - bosch,bma253 226259551cSLinus Walleij - bosch,bma255 236259551cSLinus Walleij - bosch,bma250e 246259551cSLinus Walleij - bosch,bma222 256259551cSLinus Walleij - bosch,bma222e 266259551cSLinus Walleij - bosch,bma280 276259551cSLinus Walleij 286259551cSLinus Walleij reg: 296259551cSLinus Walleij maxItems: 1 306259551cSLinus Walleij 316259551cSLinus Walleij vdd-supply: true 326259551cSLinus Walleij vddio-supply: true 336259551cSLinus Walleij 346259551cSLinus Walleij interrupts: 356259551cSLinus Walleij maxItems: 1 366259551cSLinus Walleij 376259551cSLinus Walleij mount-matrix: 386259551cSLinus Walleij description: an optional 3x3 mounting rotation matrix. 396259551cSLinus Walleij 406259551cSLinus Walleij spi-max-frequency: 416259551cSLinus Walleij maximum: 10000000 426259551cSLinus Walleij 436259551cSLinus Walleijrequired: 446259551cSLinus Walleij - compatible 456259551cSLinus Walleij - reg 466259551cSLinus Walleij 476259551cSLinus WalleijadditionalProperties: false 486259551cSLinus Walleij 496259551cSLinus Walleijexamples: 506259551cSLinus Walleij - | 516259551cSLinus Walleij #include <dt-bindings/interrupt-controller/irq.h> 526259551cSLinus Walleij i2c { 536259551cSLinus Walleij #address-cells = <1>; 546259551cSLinus Walleij #size-cells = <0>; 556259551cSLinus Walleij accelerometer@8 { 566259551cSLinus Walleij compatible = "bosch,bma222"; 576259551cSLinus Walleij reg = <0x08>; 586259551cSLinus Walleij vddio-supply = <&vddio>; 596259551cSLinus Walleij vdd-supply = <&vdd>; 606259551cSLinus Walleij interrupts = <57 IRQ_TYPE_EDGE_FALLING>; 616259551cSLinus Walleij }; 626259551cSLinus Walleij }; 636259551cSLinus Walleij - | 646259551cSLinus Walleij # include <dt-bindings/interrupt-controller/irq.h> 656259551cSLinus Walleij spi { 666259551cSLinus Walleij #address-cells = <1>; 676259551cSLinus Walleij #size-cells = <0>; 686259551cSLinus Walleij accel@0 { 696259551cSLinus Walleij compatible = "bosch,bma222"; 706259551cSLinus Walleij reg = <0>; 716259551cSLinus Walleij spi-max-frequency = <10000000>; 726259551cSLinus Walleij }; 736259551cSLinus Walleij }; 746259551cSLinus Walleij... 75