Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/magnetometer/silabs,si7210.yaml
26309 views
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
7
title: Si7210 magnetic position and temperature sensor
8
9
maintainers:
10
- Antoni Pokusinski <apokusinski01@gmail.com>
11
12
description: |
13
Silabs Si7210 I2C Hall effect magnetic position and temperature sensor.
14
https://www.silabs.com/documents/public/data-sheets/si7210-datasheet.pdf
15
16
properties:
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
29
required:
30
- compatible
31
- reg
32
33
additionalProperties: false
34
35
examples:
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
50