ak8975.txt 1.0 KB

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