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