ARM: ux500: fix lsm303dlh magnetometer compat string
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Apr 2015 12:08:38 +0000 (14:08 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 13 May 2015 10:22:18 +0000 (12:22 +0200)
The magnetometer found on the Ux500 TVK and Snowball boards
is a LSM303DLH not a LSM303DLM, small differences but still
different. Put in the right compatible strings and things start
working smoothly.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-href-tvk1281618.dtsi
arch/arm/boot/dts/ste-snowball.dts

index 062c6aae3afa8406580976ddd95869a321d8d69c..0eeb4d4b52020613d9690de0b500e0321eca6336 100644 (file)
                                pinctrl-names = "default";
                                pinctrl-0 = <&accel_tvk_mode>;
                        };
-                       lsm303dlm@1e {
+                       lsm303dlh@1e {
                                /* Magnetometer */
-                               compatible = "st,lsm303dlm-magn";
+                               compatible = "st,lsm303dlh-magn";
                                reg = <0x1e>;
                                vdd-supply = <&ab8500_ldo_aux1_reg>;
                                vddio-supply = <&db8500_vsmps2_reg>;
index 206826a855c0dc0e5025539e5a8930405c8cdd56..3844bbe61d716d60110adbbca141f53f8c35014a 100644 (file)
                                pinctrl-names = "default";
                                pinctrl-0 = <&accel_snowball_mode>;
                        };
-                       lsm303dlm@1e {
+                       lsm303dlh@1e {
                                /* Magnetometer */
-                               compatible = "st,lsm303dlm-magn";
+                               compatible = "st,lsm303dlh-magn";
                                reg = <0x1e>;
                                vdd-supply = <&ab8500_ldo_aux1_reg>;
                                vddio-supply = <&db8500_vsmps2_reg>;