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 / BMA250 / 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,smb380 25 26 reg: 27 maxItems: 1 28 29 vdd-supply: true 30 31 vddio-supply: true 32 33 interrupts: 34 minItems: 1 35 maxItems: 2 36 description: | 37 Type should be either IRQ_TYPE_LEVEL_HIGH or IRQ_TYPE_EDGE_RISING. 38 For the bma250 the first interrupt listed must be the one 39 connected to the INT1 pin, the second (optional) interrupt 40 listed must be the one connected to the INT2 pin. 41 42required: 43 - compatible 44 - reg 45 46additionalProperties: false 47 48examples: 49 - | 50 #include <dt-bindings/interrupt-controller/irq.h> 51 i2c { 52 #address-cells = <1>; 53 #size-cells = <0>; 54 accel@40 { 55 compatible = "bosch,bma180"; 56 reg = <0x40>; 57 interrupt-parent = <&gpio6>; 58 interrupts = <18 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>; 59 }; 60 }; 61... 62