summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/iio/accel/bma180.txt
blob: f53237270b32abda4626c4886a0a69339b5f9eff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
* Bosch BMA180 / BMA25x triaxial acceleration sensor

http://omapworld.com/BMA180_111_1002839.pdf
http://ae-bst.resource.bosch.com/media/products/dokumente/bma250/bst-bma250-ds002-05.pdf

Required properties:

  - compatible : should be one of:
    "bosch,bma180"
    "bosch,bma250"
    "bosch,bma254"
  - reg : the I2C address of the sensor

Optional properties:

  - interrupts : interrupt mapping for GPIO IRQ, it should by configured with
		flags IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING
		For the bma250 the first interrupt listed must be the one
		connected to the INT1 pin, the second (optional) interrupt
		listed must be the one connected to the INT2 pin.

Example:

bma180@40 {
	compatible = "bosch,bma180";
	reg = <0x40>;
	interrupt-parent = <&gpio6>;
	interrupts = <18 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>;
};