Skip to content

Commit 844c35c

Browse files
awaittrotwens
authored andcommitted
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>
1 parent 193b199 commit 844c35c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@
195195
reset-gpios = <&pio 1 1 GPIO_ACTIVE_LOW>;
196196
avdd-supply = <&reg_dldo1>;
197197
dvdd-supply = <&reg_dldo1>;
198+
mount-matrix = "0", "-1", "0",
199+
"-1", "0", "0",
200+
"0", "0", "-1";
198201

199202
/* status will be fixed up in firmware */
200203
status = "disabled";
@@ -206,6 +209,9 @@
206209
reg = <0x1e>;
207210
vdd-supply = <&reg_dldo1>;
208211
vddio-supply = <&reg_dldo1>;
212+
mount-matrix = "0", "1", "0",
213+
"-1", "0", "0",
214+
"0", "0", "1";
209215
};
210216

211217
/* Light/proximity sensor */

0 commit comments

Comments
 (0)