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