summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/iio/magnetometer/fsl,mag3110.yaml
blob: 6b54d32323fcc5605068a3aee59c9df0e25f39b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/magnetometer/fsl,mag3110.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Freescale MAG3110 magnetometer sensor

maintainers:
  - Anson Huang <Anson.Huang@nxp.com>

properties:
  compatible:
    const: fsl,mag3110

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  vdd-supply: true

  vddio-supply: true

additionalProperties: false

required:
  - compatible
  - reg

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        magnetometer@e {
            compatible = "fsl,mag3110";
            reg = <0x0e>;
            pinctrl-names = "default";
            pinctrl-0 = <&pinctrl_i2c3_mag3110_int>;
            interrupt-parent = <&gpio3>;
            interrupts = <16 IRQ_TYPE_EDGE_RISING>;
        };
    };
...