xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* FREESCALE MAG3110 magnetometer sensor
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun  - compatible : should be "fsl,mag3110"
6*4882a593Smuzhiyun  - reg : the I2C address of the magnetometer
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunOptional properties:
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun  - interrupts: the sole interrupt generated by the device
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun  Refer to interrupt-controller/interrupts.txt for generic interrupt client
13*4882a593Smuzhiyun  node bindings.
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun  - vdd-supply: phandle to the regulator that provides power to the sensor.
16*4882a593Smuzhiyun  - vddio-supply: phandle to the regulator that provides power to the sensor's IO.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunExample:
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunmagnetometer@e {
21*4882a593Smuzhiyun	compatible = "fsl,mag3110";
22*4882a593Smuzhiyun	reg = <0x0e>;
23*4882a593Smuzhiyun	pinctrl-names = "default";
24*4882a593Smuzhiyun	pinctrl-0 = <&pinctrl_i2c3_mag3110_int>;
25*4882a593Smuzhiyun	interrupt-parent = <&gpio3>;
26*4882a593Smuzhiyun	interrupts = <16 IRQ_TYPE_EDGE_RISING>;
27*4882a593Smuzhiyun};
28