Merge branch 'work.splice_read' of git://git.kernel.org/pub/scm/linux/kernel/git...
[cascardo/linux.git] / Documentation / devicetree / bindings / iio / magnetometer / ak8974.txt
1 * Asahi Kasei AK8974 magnetometer sensor
2
3 Required properties:
4
5 - compatible : should be "asahi-kasei,ak8974"
6 - reg : the I2C address of the magnetometer
7
8 Optional properties:
9
10 - avdd-supply: regulator supply for the analog voltage
11   (see regulator/regulator.txt)
12 - dvdd-supply: regulator supply for the digital voltage
13   (see regulator/regulator.txt)
14 - interrupts: data ready (DRDY) and interrupt (INT1) lines
15   from the chip, the DRDY interrupt must be placed first.
16   The interrupts can be triggered on rising or falling
17   edges alike.
18 - mount-matrix: an optional 3x3 mounting rotation matrix
19
20 Example:
21
22 ak8974@0f {
23         compatible = "asahi-kasei,ak8974";
24         reg = <0x0f>;
25         avdd-supply = <&foo_reg>;
26         dvdd-supply = <&bar_reg>;
27         interrupts = <0 IRQ_TYPE_EDGE_RISING>,
28                      <1 IRQ_TYPE_EDGE_RISING>;
29 };