Skip to content

Commit b240a04

Browse files
Dragan Simicgregkh
authored andcommitted
arm64: dts: allwinner: pinephone: Add mount matrix to accelerometer
commit 2496b2a upstream. The way InvenSense MPU-6050 accelerometer is mounted on the user-facing side of the Pine64 PinePhone mainboard, which makes it rotated 90 degrees counter- clockwise, [1] requires the accelerometer's x- and y-axis to be swapped, and the direction of the accelerometer's y-axis to be inverted. Rectify this by adding a mount-matrix to the accelerometer definition in the Pine64 PinePhone dtsi file. [1] https://files.pine64.org/doc/PinePhone/PinePhone%20mainboard%20bottom%20placement%20v1.1%2020191031.pdf Fixes: 91f480d ("arm64: dts: allwinner: Add initial support for Pine64 PinePhone") Cc: [email protected] Suggested-by: Ondrej Jirman <[email protected]> Suggested-by: Andrey Skvortsov <[email protected]> Signed-off-by: Dragan Simic <[email protected]> Reviewed-by: Andrey Skvortsov <[email protected]> Link: https://patch.msgid.link/129f0c754d071cca1db5d207d9d4a7bd9831dff7.1726773282.git.dsimic@manjaro.org [[email protected]: Replaced Helped-by with Suggested-by] Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 711d99f commit b240a04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@
157157
interrupts = <7 5 IRQ_TYPE_EDGE_RISING>; /* PH5 */
158158
vdd-supply = <&reg_dldo1>;
159159
vddio-supply = <&reg_dldo1>;
160+
mount-matrix = "0", "1", "0",
161+
"-1", "0", "0",
162+
"0", "0", "1";
160163
};
161164
};
162165

0 commit comments

Comments
 (0)