1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/magnetometer/asahi-kasei,ak8975.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: AsahiKASEI AK8975 magnetometer sensor
10 - Jonathan Albrieux <jonathan.albrieux@gmail.com>
33 AK8975 has a "Data ready" pin (DRDY) which informs that data
34 is ready to be read and is possible to listen on it. If used,
35 this should be active high. Prefer interrupt over this.
39 description: interrupt for DRDY pin. Triggered on rising edge.
43 an optional regulator that needs to be on to provide VDD power to
47 description: an optional 3x3 mounting rotation matrix.
51 an optional pin needed for AK09911 to set the reset state. This should
58 additionalProperties: false
62 #include <dt-bindings/interrupt-controller/irq.h>
63 #include <dt-bindings/gpio/gpio.h>
69 compatible = "asahi-kasei,ak8975";
71 interrupt-parent = <&gpio6>;
72 interrupts = <15 IRQ_TYPE_EDGE_RISING>;
73 vdd-supply = <&ldo_3v3_gnss>;
74 reset-gpios = <&msmgpio 111 GPIO_ACTIVE_LOW>;
75 mount-matrix = "-0.984807753012208", /* x0 */
77 "-0.173648177666930", /* z0 */
81 "-0.173648177666930", /* x2 */
83 "0.984807753012208"; /* z2 */