提交 2b9d49d8 编写于 作者: S Srinivas Kandagatla 提交者: Andy Gross

ARM: dts: db600c: add support to magnetometer

This patch adds support to on board LIS3MDLTR magnetometer.
Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: NAndy Gross <andy.gross@linaro.org>
上级 e0da214a
......@@ -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 */
};
};
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册