mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 19:07:03 +07:00
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>
This commit is contained in:
parent
cad4d0a3d0
commit
9a8d64fa97
@ -0,0 +1,20 @@
|
||||
* PNI RM3100 3-axis magnetometer sensor
|
||||
|
||||
Required properties:
|
||||
|
||||
- compatible : should be "pni,rm3100"
|
||||
- reg : the I2C address or SPI chip select number of the sensor.
|
||||
|
||||
Optional properties:
|
||||
|
||||
- interrupts: data ready (DRDY) from the chip.
|
||||
The interrupts can be triggered on level high.
|
||||
|
||||
Example:
|
||||
|
||||
rm3100: rm3100@20 {
|
||||
compatible = "pni,rm3100";
|
||||
reg = <0x20>;
|
||||
interrupt-parent = <&gpio0>;
|
||||
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
|
||||
};
|
Loading…
Reference in New Issue
Block a user