ARM: dts: db600c: add support to magnetometer
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 12 Apr 2016 09:34:02 +0000 (10:34 +0100)
committerAndy Gross <andy.gross@linaro.org>
Wed, 20 Apr 2016 20:03:15 +0000 (15:03 -0500)
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>
arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi
arch/arm/boot/dts/qcom-apq8064-arrow-db600c.dts

index 3b55bb97c69677298e02b2bf203c5eeef84e5dc3..a3efb9704fcd964e0eaa1aa6ed0f2f41dac367ee 100644 (file)
                        output-low;
                };
        };
+
+       magneto_pins: magneto-pins {
+               mux {
+                       pins = "gpio31", "gpio48";
+                       function = "gpio";
+                       bias-disable;
+               };
+       };
 };
 
 &pm8921_mpps {
index 34bb4157872efb95768c21a0b5beea98c6cd699d..e01b27ea7fbaf6c2cfa100d5159b5658892684d1 100644 (file)
                                /* 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 */
+                               };
                        };
                };
 
This page took 0.026263 seconds and 5 git commands to generate.