xref: /freebsd/sys/contrib/device-tree/Bindings/iio/magnetometer/asahi-kasei,ak8974.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1*5def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*5def4c47SEmmanuel Vadot%YAML 1.2
3*5def4c47SEmmanuel Vadot---
4*5def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/magnetometer/asahi-kasei,ak8974.yaml#
5*5def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5def4c47SEmmanuel Vadot
7*5def4c47SEmmanuel Vadottitle: Asahi Kasei AK8974 magnetometer sensor
8*5def4c47SEmmanuel Vadot
9*5def4c47SEmmanuel Vadotmaintainers:
10*5def4c47SEmmanuel Vadot  - Linus Walleij <linus.walleij@linaro.org>
11*5def4c47SEmmanuel Vadot
12*5def4c47SEmmanuel Vadotproperties:
13*5def4c47SEmmanuel Vadot  compatible:
14*5def4c47SEmmanuel Vadot    enum:
15*5def4c47SEmmanuel Vadot      - alps,hscdtd008a
16*5def4c47SEmmanuel Vadot      - asahi-kasei,ak8974
17*5def4c47SEmmanuel Vadot
18*5def4c47SEmmanuel Vadot  reg:
19*5def4c47SEmmanuel Vadot    maxItems: 1
20*5def4c47SEmmanuel Vadot
21*5def4c47SEmmanuel Vadot  interrupts:
22*5def4c47SEmmanuel Vadot    minItems: 1
23*5def4c47SEmmanuel Vadot    maxItems: 2
24*5def4c47SEmmanuel Vadot    description: |
25*5def4c47SEmmanuel Vadot      Data ready (DRDY) and interrupt (INT1) lines from the chip. The DRDY
26*5def4c47SEmmanuel Vadot      interrupt must be placed first. The interrupts can be triggered on
27*5def4c47SEmmanuel Vadot      rising or falling edges.
28*5def4c47SEmmanuel Vadot
29*5def4c47SEmmanuel Vadot  avdd-supply: true
30*5def4c47SEmmanuel Vadot
31*5def4c47SEmmanuel Vadot  dvdd-supply: true
32*5def4c47SEmmanuel Vadot
33*5def4c47SEmmanuel Vadot  mount-matrix: true
34*5def4c47SEmmanuel Vadot
35*5def4c47SEmmanuel VadotadditionalProperties: false
36*5def4c47SEmmanuel Vadot
37*5def4c47SEmmanuel Vadotrequired:
38*5def4c47SEmmanuel Vadot  - compatible
39*5def4c47SEmmanuel Vadot  - reg
40*5def4c47SEmmanuel Vadot
41*5def4c47SEmmanuel Vadotexamples:
42*5def4c47SEmmanuel Vadot  - |
43*5def4c47SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
44*5def4c47SEmmanuel Vadot    i2c {
45*5def4c47SEmmanuel Vadot        #address-cells = <1>;
46*5def4c47SEmmanuel Vadot        #size-cells = <0>;
47*5def4c47SEmmanuel Vadot
48*5def4c47SEmmanuel Vadot        magnetometer@f {
49*5def4c47SEmmanuel Vadot            compatible = "asahi-kasei,ak8974";
50*5def4c47SEmmanuel Vadot            reg = <0x0f>;
51*5def4c47SEmmanuel Vadot            avdd-supply = <&foo_reg>;
52*5def4c47SEmmanuel Vadot            dvdd-supply = <&bar_reg>;
53*5def4c47SEmmanuel Vadot            interrupts = <0 IRQ_TYPE_EDGE_RISING>,
54*5def4c47SEmmanuel Vadot                         <1 IRQ_TYPE_EDGE_RISING>;
55*5def4c47SEmmanuel Vadot        };
56*5def4c47SEmmanuel Vadot    };
57*5def4c47SEmmanuel Vadot...
58