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:
Srinivas Kandagatla 2016-04-12 10:34:02 +01:00 committed by Andy Gross
parent e0da214a88
commit 2b9d49d8c7
2 changed files with 21 additions and 0 deletions

View File

@ -31,6 +31,14 @@
output-low;
};
};
magneto_pins: magneto-pins {
mux {
pins = "gpio31", "gpio48";
function = "gpio";
bias-disable;
};
};
};
&pm8921_mpps {

View File

@ -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 */
};
};
};