arm64: dts: sun50i-a64-pinephone: Add mount-matrix for PinePhone magnetometers

For lis3mdl, values are based on datasheet and PCB drawing
and tested on a real device.

For af8133j, values are from testing on a real device.

Signed-off-by: Shoji Keita <awaittrot@shjk.jp>
Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
Link: https://patch.msgid.link/20240908214718.36316-3-andrej.skvortzov@gmail.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
This commit is contained in:
Shoji Keita
2024-09-09 00:47:18 +03:00
committed by Chen-Yu Tsai
parent 193b199a92
commit 844c35cea6

View File

@@ -195,6 +195,9 @@ af8133j: magnetometer@1c {
reset-gpios = <&pio 1 1 GPIO_ACTIVE_LOW>;
avdd-supply = <&reg_dldo1>;
dvdd-supply = <&reg_dldo1>;
mount-matrix = "0", "-1", "0",
"-1", "0", "0",
"0", "0", "-1";
/* status will be fixed up in firmware */
status = "disabled";
@@ -206,6 +209,9 @@ lis3mdl: magnetometer@1e {
reg = <0x1e>;
vdd-supply = <&reg_dldo1>;
vddio-supply = <&reg_dldo1>;
mount-matrix = "0", "1", "0",
"-1", "0", "0",
"0", "0", "1";
};
/* Light/proximity sensor */