Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/sys/contrib/device-tree/Bindings/iio/magnetometer/ak8974.txt
48525 views
1
* Asahi Kasei AK8974 magnetometer sensor
2
3
Required properties:
4
5
- compatible:
6
* "asahi-kasei,ak8974"
7
* "alps,hscdtd008a"
8
- reg : the I2C address of the magnetometer
9
10
Optional 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
22
Example:
23
24
ak8974@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
33