xref: /freebsd/sys/contrib/device-tree/Bindings/iio/magnetometer/silabs,si7210.yaml (revision 8ccc0d235c226d84112561d453c49904398d085c)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/magnetometer/silabs,si7210.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Si7210 magnetic position and temperature sensor
8
9maintainers:
10  - Antoni Pokusinski <apokusinski01@gmail.com>
11
12description: |
13  Silabs Si7210 I2C Hall effect magnetic position and temperature sensor.
14  https://www.silabs.com/documents/public/data-sheets/si7210-datasheet.pdf
15
16properties:
17  compatible:
18    const: silabs,si7210
19
20  reg:
21    maxItems: 1
22
23  interrupts:
24    maxItems: 1
25
26  vdd-supply:
27    description: Regulator that provides power to the sensor
28
29required:
30  - compatible
31  - reg
32
33additionalProperties: false
34
35examples:
36  - |
37    #include <dt-bindings/interrupt-controller/irq.h>
38    i2c {
39        #address-cells = <1>;
40        #size-cells = <0>;
41        magnetometer@30 {
42            compatible = "silabs,si7210";
43            reg = <0x30>;
44            interrupt-parent = <&gpio1>;
45            interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
46            vdd-supply = <&vdd_3v3_reg>;
47        };
48    };
49