xref: /freebsd/sys/contrib/device-tree/Bindings/iio/magnetometer/ak8975.txt (revision ec0ea6efa1ad229d75c394c1a9b9cac33af2b1d3)
1* AsahiKASEI AK8975 magnetometer sensor
2
3Required properties:
4
5  - compatible : should be "asahi-kasei,ak8975"
6  - reg : the I2C address of the magnetometer
7
8Optional properties:
9
10  - gpios : should be device tree identifier of the magnetometer DRDY pin
11  - vdd-supply: an optional regulator that needs to be on to provide VDD
12  - mount-matrix: an optional 3x3 mounting rotation matrix
13
14Example:
15
16ak8975@c {
17        compatible = "asahi-kasei,ak8975";
18        reg = <0x0c>;
19        gpios = <&gpj0 7 0>;
20        vdd-supply = <&ldo_3v3_gnss>;
21        mount-matrix = "-0.984807753012208",  /* x0 */
22                       "0",                   /* y0 */
23                       "-0.173648177666930",  /* z0 */
24                       "0",                   /* x1 */
25                       "-1",                  /* y1 */
26                       "0",                   /* z1 */
27                       "-0.173648177666930",  /* x2 */
28                       "0",                   /* y2 */
29                       "0.984807753012208";   /* z2 */
30};
31