36 lines
994 B
Diff
36 lines
994 B
Diff
From 6ce2e61435fabab58f117a0fb83ac384cc064e30 Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman <megi@xff.cz>
|
|
Date: Fri, 9 Sep 2022 16:42:07 +0200
|
|
Subject: [PATCH 289/389] 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 dd11208b0a7b..9444c54aefe4 100644
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
|
@@ -929,6 +929,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.35.3
|
|
|