ARM: dts: ux500: Fix orientation of Janice accelerometer
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 23 May 2021 23:14:29 +0000 (01:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jul 2021 12:37:25 +0000 (14:37 +0200)
[ Upstream commit e409c1e1d5cb164361229e3a3f084e4a32544fb6 ]

This fixes up the axis on the Janice accelerometer to give
the right orientation according to tests.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/boot/dts/ste-ux500-samsung-janice.dts

index eaf8039d10ad63442458c679f98fc87ac4988bea..25af066f6f3ae384a571b8a8eb2ef31c58c2606b 100644 (file)
                                        accelerometer@08 {
                                                compatible = "bosch,bma222";
                                                reg = <0x08>;
-                                               /* FIXME: no idea about this */
-                                               mount-matrix = "1", "0", "0",
-                                                              "0", "1", "0",
-                                                              "0", "0", "1";
+                                               mount-matrix = "0", "1", "0",
+                                                              "-1", "0", "0",
+                                                              "0", "0", "-1";
                                                vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
                                                vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
                                        };