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 062c6aa..0eeb4d4 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 206826a..3844bbe 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>;