OSDN Git Service

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)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 23 May 2021 23:19:27 +0000 (01:19 +0200)
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>
arch/arm/boot/dts/ste-ux500-samsung-janice.dts

index eaf8039..25af066 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
                                        };