1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/iio/accel/bosch,bma180.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Bosch BMA023 / BMA150/ BMA180 / BMA25x / SMB380 triaxial accelerometers 8 9maintainers: 10 - Jonathan Cameron <jic23@kernel.org> 11 12description: | 13 https://media.digikey.com/pdf/Data%20Sheets/Bosch/BMA150.pdf 14 http://omapworld.com/BMA180_111_1002839.pdf 15 http://ae-bst.resource.bosch.com/media/products/dokumente/bma250/bst-bma250-ds002-05.pdf 16 17properties: 18 compatible: 19 enum: 20 - bosch,bma023 21 - bosch,bma150 22 - bosch,bma180 23 - bosch,bma250 24 - bosch,bma254 25 - bosch,smb380 26 27 reg: 28 maxItems: 1 29 30 vdd-supply: true 31 32 vddio-supply: true 33 34 interrupts: 35 minItems: 1 36 maxItems: 2 37 description: | 38 Type should be either IRQ_TYPE_LEVEL_HIGH or IRQ_TYPE_EDGE_RISING. 39 For the bma250 the first interrupt listed must be the one 40 connected to the INT1 pin, the second (optional) interrupt 41 listed must be the one connected to the INT2 pin. 42 43required: 44 - compatible 45 - reg 46 47additionalProperties: false 48 49examples: 50 - | 51 #include <dt-bindings/interrupt-controller/irq.h> 52 i2c { 53 #address-cells = <1>; 54 #size-cells = <0>; 55 accel@40 { 56 compatible = "bosch,bma180"; 57 reg = <0x40>; 58 interrupt-parent = <&gpio6>; 59 interrupts = <18 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>; 60 }; 61 }; 62... 63