1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/iio/accel/bosch,bma255.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Bosch BMA255 and Similar Accelerometers 8 9maintainers: 10 - Linus Walleij <linus.walleij@linaro.org> 11 12description: 13 3 axis accelerometers with varying range and I2C or SPI 14 4-wire interface. 15 16properties: 17 compatible: 18 enum: 19 - bosch,bmc150_accel 20 - bosch,bmi055_accel 21 - bosch,bma253 22 - bosch,bma255 23 - bosch,bma250e 24 - bosch,bma222 25 - bosch,bma222e 26 - bosch,bma280 27 28 reg: 29 maxItems: 1 30 31 vdd-supply: true 32 vddio-supply: true 33 34 interrupts: 35 minItems: 1 36 maxItems: 2 37 description: | 38 The first interrupt listed must be the one connected to the INT1 pin, 39 the second (optional) interrupt listed must be the one connected to the 40 INT2 pin (if available). 41 42 mount-matrix: 43 description: an optional 3x3 mounting rotation matrix. 44 45 spi-max-frequency: 46 maximum: 10000000 47 48required: 49 - compatible 50 - reg 51 52additionalProperties: false 53 54examples: 55 - | 56 #include <dt-bindings/interrupt-controller/irq.h> 57 i2c { 58 #address-cells = <1>; 59 #size-cells = <0>; 60 accelerometer@8 { 61 compatible = "bosch,bma222"; 62 reg = <0x08>; 63 vddio-supply = <&vddio>; 64 vdd-supply = <&vdd>; 65 interrupts = <57 IRQ_TYPE_EDGE_FALLING>; 66 }; 67 }; 68 - | 69 # include <dt-bindings/interrupt-controller/irq.h> 70 spi { 71 #address-cells = <1>; 72 #size-cells = <0>; 73 accel@0 { 74 compatible = "bosch,bma222"; 75 reg = <0>; 76 spi-max-frequency = <10000000>; 77 }; 78 }; 79... 80