ak8974.txt 799 B

1234567891011121314151617181920212223242526272829
  1. * Asahi Kasei AK8974 magnetometer sensor
  2. Required properties:
  3. - compatible : should be "asahi-kasei,ak8974"
  4. - reg : the I2C address of the magnetometer
  5. Optional properties:
  6. - avdd-supply: regulator supply for the analog voltage
  7. (see regulator/regulator.txt)
  8. - dvdd-supply: regulator supply for the digital voltage
  9. (see regulator/regulator.txt)
  10. - interrupts: data ready (DRDY) and interrupt (INT1) lines
  11. from the chip, the DRDY interrupt must be placed first.
  12. The interrupts can be triggered on rising or falling
  13. edges alike.
  14. - mount-matrix: an optional 3x3 mounting rotation matrix
  15. Example:
  16. ak8974@f {
  17. compatible = "asahi-kasei,ak8974";
  18. reg = <0x0f>;
  19. avdd-supply = <&foo_reg>;
  20. dvdd-supply = <&bar_reg>;
  21. interrupts = <0 IRQ_TYPE_EDGE_RISING>,
  22. <1 IRQ_TYPE_EDGE_RISING>;
  23. };