ARM: dts: ux500: Fix orientation of accelerometer
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 15 May 2021 00:02:34 +0000 (02:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jul 2021 12:36:12 +0000 (14:36 +0200)
[ Upstream commit 4beba4011995a2c44ee27e1d358dc32e6b9211b3 ]

This adds a mounting matrix to the accelerometer
on the TVK1281618 R3.

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

index c0de1337bdaad86c3195be076c42faa2cb3b0f6a..457bddabc32c2aecfe496b9c8ba9eb984d80ac87 100644 (file)
@@ -19,6 +19,9 @@
                                             <19 IRQ_TYPE_EDGE_RISING>;
                                pinctrl-names = "default";
                                pinctrl-0 = <&accel_tvk_mode>;
+                               mount-matrix = "0", "-1", "0",
+                                              "-1", "0", "0",
+                                              "0", "0", "-1";
                        };
                        magnetometer@1e {
                                compatible = "st,lsm303dlm-magn";