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 - Stephan Gerhold <stephan@gerhold.net> 12 13description: 14 3 axis accelerometers with varying range and I2C or SPI 15 4-wire interface. 16 17properties: 18 compatible: 19 enum: 20 # bmc150-accel driver in Linux 21 - bosch,bma222 22 - bosch,bma222e 23 - bosch,bma250e 24 - bosch,bma253 25 - bosch,bma254 26 - bosch,bma255 27 - bosch,bma280 28 - bosch,bmc150_accel 29 - bosch,bmi055_accel 30 31 # bma180 driver in Linux 32 - bosch,bma023 33 - bosch,bma150 34 - bosch,bma180 35 - bosch,bma250 36 - bosch,smb380 37 38 reg: 39 maxItems: 1 40 41 vdd-supply: true 42 vddio-supply: true 43 44 interrupts: 45 minItems: 1 46 maxItems: 2 47 description: | 48 The first interrupt listed must be the one connected to the INT1 pin, 49 the second (optional) interrupt listed must be the one connected to the 50 INT2 pin (if available). The type should be IRQ_TYPE_EDGE_RISING. 51 52 mount-matrix: 53 description: an optional 3x3 mounting rotation matrix. 54 55 spi-max-frequency: 56 maximum: 10000000 57 58required: 59 - compatible 60 - reg 61 62additionalProperties: false 63 64examples: 65 - | 66 #include <dt-bindings/interrupt-controller/irq.h> 67 i2c { 68 #address-cells = <1>; 69 #size-cells = <0>; 70 accelerometer@8 { 71 compatible = "bosch,bma222"; 72 reg = <0x08>; 73 vddio-supply = <&vddio>; 74 vdd-supply = <&vdd>; 75 interrupts = <57 IRQ_TYPE_EDGE_RISING>; 76 }; 77 }; 78 - | 79 # include <dt-bindings/interrupt-controller/irq.h> 80 spi { 81 #address-cells = <1>; 82 #size-cells = <0>; 83 accel@0 { 84 compatible = "bosch,bma222"; 85 reg = <0>; 86 spi-max-frequency = <10000000>; 87 }; 88 }; 89... 90