arm64: dts: rockchip: Enable PinePhone Pro IMU sensor
authorPeter Robinson <pbrobinson@gmail.com>
Sun, 23 Jun 2024 16:53:21 +0000 (17:53 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 24 Jun 2024 16:14:02 +0000 (18:14 +0200)
Enable the IMU sensor on the PinePhone Pro including
the i2c4 bus that it's attached to.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Link: https://lore.kernel.org/r/20240623165326.1273944-2-pbrobinson@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts

index f1209dc3f761b5bc01a1df5e1f0894d219dda6ab..6ce115db155aa64424679d655f4701166d86dbbf 100644 (file)
        };
 };
 
+&i2c4 {
+       i2c-scl-rising-time-ns = <600>;
+       i2c-scl-falling-time-ns = <20>;
+       status = "okay";
+
+       /* Accelerometer/gyroscope */
+       mpu6500@68 {
+               compatible = "invensense,mpu6500";
+               reg = <0x68>;
+               interrupt-parent = <&gpio1>;
+               interrupts = <RK_PC6 IRQ_TYPE_LEVEL_LOW>;
+               vddio-supply = <&vcc_1v8>;
+       };
+};
+
 &cluster0_opp {
        opp04 {
                status = "disabled";