arm64: dts: rockchip: rk3399-excavator-sapphire: enabled st sensor driver for mpu6500

Change-Id: I68b2029dcdeb873c92adaabdc99f66f5d5f943bf
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
This commit is contained in:
Wu Liangqing
2019-11-01 09:54:48 +08:00
committed by Tao Huang
parent 6f880e6cc8
commit 0c175338f6
2 changed files with 24 additions and 4 deletions

View File

@@ -778,7 +778,7 @@
irq_enable = <0>;
poll_delay_ms = <30>;
type = <SENSOR_TYPE_ACCEL>;
layout = <7>;
layout = <2>;
};
mpu6500_gyro: mpu_gyro@68 {
@@ -787,7 +787,7 @@
irq_enable = <0>;
poll_delay_ms = <30>;
type = <SENSOR_TYPE_GYROSCOPE>;
layout = <7>;
layout = <2>;
};
fusb0: fusb30x@22 {

View File

@@ -41,7 +41,7 @@
*/
#include "rk3399-sapphire.dtsi"
#include <dt-bindings/sensor-dev.h>
/ {
compatible = "rockchip,rk3399-sapphire-excavator", "rockchip,rk3399";
@@ -155,6 +155,7 @@
1894 3012 528000
3013 99999 800000
>;
auto-min-freq = <200000>;
};
@@ -197,7 +198,7 @@
i2c-scl-falling-time-ns = <20>;
mpu6500@68 {
status = "okay";
status = "disabled";
compatible = "invensense,mpu6500";
reg = <0x68>;
irq-gpio = <&gpio1 22 IRQ_TYPE_EDGE_RISING>;
@@ -209,6 +210,25 @@
orientation-z= <0>;
mpu-debug = <1>;
};
mpu6500_acc: mpu_acc@68 {
compatible = "mpu6500_acc";
reg = <0x68>;
irq-gpio = <&gpio1 22 IRQ_TYPE_EDGE_RISING>;
irq_enable = <0>;
poll_delay_ms = <30>;
type = <SENSOR_TYPE_ACCEL>;
layout = <2>;
};
mpu6500_gyro: mpu_gyro@68 {
compatible = "mpu6500_gyro";
reg = <0x68>;
irq_enable = <0>;
poll_delay_ms = <30>;
type = <SENSOR_TYPE_GYROSCOPE>;
layout = <2>;
};
};
&pcie0 {