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