]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/iio/accel/bma180.txt
Merge remote-tracking branch 'sunxi/sunxi/for-next'
[karo-tx-linux.git] / Documentation / devicetree / bindings / iio / accel / bma180.txt
1 * Bosch BMA180 / BMA250 triaxial acceleration sensor
2
3 http://omapworld.com/BMA180_111_1002839.pdf
4 http://ae-bst.resource.bosch.com/media/products/dokumente/bma250/bst-bma250-ds002-05.pdf
5
6 Required properties:
7
8   - compatible : should be "bosch,bma180" or "bosch,bma250"
9   - reg : the I2C address of the sensor
10
11 Optional properties:
12
13   - interrupt-parent : should be the phandle for the interrupt controller
14
15   - interrupts : interrupt mapping for GPIO IRQ, it should by configured with
16                 flags IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING
17                 For the bma250 the first interrupt listed must be the one
18                 connected to the INT1 pin, the second (optional) interrupt
19                 listed must be the one connected to the INT2 pin.
20
21 Example:
22
23 bma180@40 {
24         compatible = "bosch,bma180";
25         reg = <0x40>;
26         interrupt-parent = <&gpio6>;
27         interrupts = <18 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>;
28 };