xref: /freebsd/sys/contrib/device-tree/Bindings/iio/magnetometer/ak8974.txt (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1* Asahi Kasei AK8974 magnetometer sensor
2
3Required properties:
4
5- compatible:
6    * "asahi-kasei,ak8974"
7    * "alps,hscdtd008a"
8- reg : the I2C address of the magnetometer
9
10Optional properties:
11
12- avdd-supply: regulator supply for the analog voltage
13  (see regulator/regulator.txt)
14- dvdd-supply: regulator supply for the digital voltage
15  (see regulator/regulator.txt)
16- interrupts: data ready (DRDY) and interrupt (INT1) lines
17  from the chip, the DRDY interrupt must be placed first.
18  The interrupts can be triggered on rising or falling
19  edges alike.
20- mount-matrix: an optional 3x3 mounting rotation matrix
21
22Example:
23
24ak8974@f {
25	compatible = "asahi-kasei,ak8974";
26	reg = <0x0f>;
27	avdd-supply = <&foo_reg>;
28	dvdd-supply = <&bar_reg>;
29	interrupts = <0 IRQ_TYPE_EDGE_RISING>,
30		     <1 IRQ_TYPE_EDGE_RISING>;
31};
32