42 lines
1.3 KiB
Diff
42 lines
1.3 KiB
Diff
From 8f92c91ef37f35177c6abd6f0ced135bf04fab8a Mon Sep 17 00:00:00 2001
|
|
From: Shoji Keita <awaittrot@shjk.jp>
|
|
Date: Wed, 14 Jul 2021 07:17:18 +0900
|
|
Subject: [PATCH 107/464] arm64: dts: sun50i-a64-pinephone: Add mount-matrix
|
|
for PinePhone magnetometers.
|
|
|
|
For lis3mdl, values are based on datasheet and PCB drawing.
|
|
For af8133j, values are from testing on a real device.
|
|
|
|
Signed-off-by: Shoji Keita <awaittrot@shjk.jp>
|
|
---
|
|
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
|
|
index e174c3cfc34f..dd7b27a6597c 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
|
|
@@ -499,6 +499,9 @@ af8133j: magnetometer@1c {
|
|
reset-gpios = <&pio 1 1 GPIO_ACTIVE_LOW>;
|
|
avdd-supply = <®_dldo1>;
|
|
dvdd-supply = <®_dldo1>;
|
|
+ mount-matrix = "0", "-1", "0",
|
|
+ "-1", "0", "0",
|
|
+ "0", "0", "-1";
|
|
};
|
|
|
|
/* Magnetometer */
|
|
@@ -507,6 +510,9 @@ lis3mdl: magnetometer@1e {
|
|
reg = <0x1e>;
|
|
vdd-supply = <®_dldo1>;
|
|
vddio-supply = <®_dldo1>;
|
|
+ mount-matrix = "0", "1", "0",
|
|
+ "-1", "0", "0",
|
|
+ "0", "0", "1";
|
|
};
|
|
|
|
/* Light/proximity sensor */
|
|
--
|
|
2.34.1
|
|
|