36 lines
994 B
Diff
36 lines
994 B
Diff
|
From aca4a04536d11b4061540bc599f01c28e468d979 Mon Sep 17 00:00:00 2001
|
||
|
From: Ondrej Jirman <megi@xff.cz>
|
||
|
Date: Fri, 9 Sep 2022 16:42:07 +0200
|
||
|
Subject: [PATCH 292/464] arm64: dts: pinephone-pro: Add magnetometer sensor
|
||
|
support
|
||
|
|
||
|
Pinephone Pro uses AF8133J.
|
||
|
|
||
|
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||
|
---
|
||
|
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts | 8 ++++++++
|
||
|
1 file changed, 8 insertions(+)
|
||
|
|
||
|
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
||
|
index 04760e0b917d..8f7580d7fa65 100644
|
||
|
--- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
||
|
+++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
||
|
@@ -943,6 +943,14 @@ accelerometer@68 {
|
||
|
"0", "-1", "0",
|
||
|
"0", "0", "1";
|
||
|
};
|
||
|
+
|
||
|
+ af8133j: compass@1c {
|
||
|
+ compatible = "voltafield,af8133j";
|
||
|
+ reg = <0x1c>;
|
||
|
+ reset-gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_LOW>;
|
||
|
+ avdd-supply = <&vcc_3v0>;
|
||
|
+ dvdd-supply = <&vcc_1v8>;
|
||
|
+ };
|
||
|
};
|
||
|
|
||
|
&i2s0 {
|
||
|
--
|
||
|
2.34.1
|
||
|
|