mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 10:44:23 +08:00
ARM: dts: db600c: add support to magnetometer
This patch adds support to on board LIS3MDLTR magnetometer. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Andy Gross <andy.gross@linaro.org>
This commit is contained in:
parent
e0da214a88
commit
2b9d49d8c7
@ -31,6 +31,14 @@
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
magneto_pins: magneto-pins {
|
||||
mux {
|
||||
pins = "gpio31", "gpio48";
|
||||
function = "gpio";
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pm8921_mpps {
|
||||
|
@ -153,6 +153,19 @@
|
||||
/* On Low speed expansion and Sensors */
|
||||
label = "LS-I2C0";
|
||||
status = "okay";
|
||||
lis3mdl_mag@1e {
|
||||
compatible = "st,lis3mdl-magn";
|
||||
reg = <0x1e>;
|
||||
vdd-supply = <&vcc3v3>;
|
||||
vddio-supply = <&pm8921_s4>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&magneto_pins>;
|
||||
interrupt-parent = <&tlmm_pinmux>;
|
||||
|
||||
st,drdy-int-pin = <2>;
|
||||
interrupts = <48 IRQ_TYPE_EDGE_RISING>, /* DRDY line */
|
||||
<31 IRQ_TYPE_EDGE_RISING>; /* INT */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user