Skip to content

Commit bcdf177

Browse files
linuswjic23
authored andcommitted
iio: magn: DT bindings for AK8974
This adds device tree bindings for the AK8974 magnetometer, similar to those for the AK8975. Cc: [email protected] Cc: Samu Onkalo <[email protected]> Cc: Sebastian Reichel <[email protected]> Cc: Peter Meerwald-Stadler <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 3b8df5f commit bcdf177

File tree

1 file changed

+29
-0
lines changed
  • Documentation/devicetree/bindings/iio/magnetometer

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
};

0 commit comments

Comments
 (0)