From 1dea9f6991632525debe5c1b37e4bb59f1eef203 Mon Sep 17 00:00:00 2001 From: Ondrej Jirman Date: Fri, 9 Sep 2022 16:41:33 +0200 Subject: [PATCH 291/464] arm64: dts: pinephone-pro: Add accelerometer sensor support Pinephone Pro uses mpu6500. Signed-off-by: Ondrej Jirman --- .../boot/dts/rockchip/rk3399-pinephone-pro.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts index c62b5cf25cc8..04760e0b917d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts @@ -929,6 +929,20 @@ usbc_dp: endpoint { }; }; }; + + accelerometer@68 { + compatible = "invensense,mpu6500"; + reg = <0x68>; + interrupt-parent = <&gpio1>; + interrupts = ; + vdd-supply = <&vcc_1v8>; + vddio-supply = <&vcc_1v8>; + + mount-matrix = + "1", "0", "0", + "0", "-1", "0", + "0", "0", "1"; + }; }; &i2s0 { -- 2.34.1