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