xref: /freebsd/sys/contrib/device-tree/Bindings/iio/magnetometer/allegromicro,als31300.yaml (revision 5f62a964e9f8abc6a05d8338273fadd154f0a206)
1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*5f62a964SEmmanuel Vadot%YAML 1.2
3*5f62a964SEmmanuel Vadot---
4*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/magnetometer/allegromicro,als31300.yaml#
5*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5f62a964SEmmanuel Vadot
7*5f62a964SEmmanuel Vadottitle: Allegro MicroSystems ALS31300 3-D Linear Hall Effect sensor
8*5f62a964SEmmanuel Vadot
9*5f62a964SEmmanuel Vadotmaintainers:
10*5f62a964SEmmanuel Vadot  - Neil Armstrong <neil.armstrong@linaro.org>
11*5f62a964SEmmanuel Vadot
12*5f62a964SEmmanuel Vadotproperties:
13*5f62a964SEmmanuel Vadot  $nodename:
14*5f62a964SEmmanuel Vadot    pattern: '^magnetometer@[0-9a-f]+$'
15*5f62a964SEmmanuel Vadot
16*5f62a964SEmmanuel Vadot  compatible:
17*5f62a964SEmmanuel Vadot    enum:
18*5f62a964SEmmanuel Vadot      - allegromicro,als31300-500 # Factory configured at 500 Gauss input range
19*5f62a964SEmmanuel Vadot      - allegromicro,als31300-1000 # Factory configured at 1000 Gauss input range
20*5f62a964SEmmanuel Vadot      - allegromicro,als31300-2000 # Factory configured at 2000 Gauss input range
21*5f62a964SEmmanuel Vadot
22*5f62a964SEmmanuel Vadot  reg:
23*5f62a964SEmmanuel Vadot    maxItems: 1
24*5f62a964SEmmanuel Vadot
25*5f62a964SEmmanuel Vadot  vcc-supply:
26*5f62a964SEmmanuel Vadot    description: 5.5V supply
27*5f62a964SEmmanuel Vadot
28*5f62a964SEmmanuel Vadot  interrupts:
29*5f62a964SEmmanuel Vadot    maxItems: 1
30*5f62a964SEmmanuel Vadot
31*5f62a964SEmmanuel Vadotrequired:
32*5f62a964SEmmanuel Vadot  - compatible
33*5f62a964SEmmanuel Vadot
34*5f62a964SEmmanuel VadotadditionalProperties: false
35*5f62a964SEmmanuel Vadot
36*5f62a964SEmmanuel Vadotexamples:
37*5f62a964SEmmanuel Vadot  - |
38*5f62a964SEmmanuel Vadot    i2c {
39*5f62a964SEmmanuel Vadot      #address-cells = <1>;
40*5f62a964SEmmanuel Vadot      #size-cells = <0>;
41*5f62a964SEmmanuel Vadot      magnetometer@61 {
42*5f62a964SEmmanuel Vadot        compatible = "allegromicro,als31300-500";
43*5f62a964SEmmanuel Vadot        reg = <0x61>;
44*5f62a964SEmmanuel Vadot        vcc-supply = <&hall_vcc>;
45*5f62a964SEmmanuel Vadot      };
46*5f62a964SEmmanuel Vadot    };
47