Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: magnetometer: add binding for Si7210

Silicon Labs Si7210 is an I2C Hall effect magnetic position
and temperature sensor.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Antoni Pokusinski <apokusinski01@gmail.com>
Link: https://patch.msgid.link/20250120215620.39766-2-apokusinski01@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Antoni Pokusinski and committed by
Jonathan Cameron
2b368419 46e28867

+48
+48
Documentation/devicetree/bindings/iio/magnetometer/silabs,si7210.yaml
··· 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 + };