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

iio: magnetometer: Add DT support for PNI RM3100

Signed-off-by: Song Qiang <songqiang1304521@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Song Qiang and committed by
Jonathan Cameron
9a8d64fa cad4d0a3

+20
+20
Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt
··· 1 + * PNI RM3100 3-axis magnetometer sensor 2 + 3 + Required properties: 4 + 5 + - compatible : should be "pni,rm3100" 6 + - reg : the I2C address or SPI chip select number of the sensor. 7 + 8 + Optional properties: 9 + 10 + - interrupts: data ready (DRDY) from the chip. 11 + The interrupts can be triggered on level high. 12 + 13 + Example: 14 + 15 + rm3100: rm3100@20 { 16 + compatible = "pni,rm3100"; 17 + reg = <0x20>; 18 + interrupt-parent = <&gpio0>; 19 + interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; 20 + };