ARM: dts: rockchip: rk3288-evb-android-rk808-edp add mpu6050 sensor support

Change-Id: I3dc9c9e867a7cef1527af01e845019da85ff9e46
Signed-off-by: Jianhui Wang <wjh@rock-chips.com>
This commit is contained in:
Jianhui Wang
2020-03-03 10:51:28 +08:00
parent 75d777258b
commit 751d452440

View File

@@ -7,6 +7,7 @@
/dts-v1/;
#include "rk3288-evb.dtsi"
#include "rk3288-android.dtsi"
#include <dt-bindings/sensor-dev.h>
/ {
panel {
@@ -360,35 +361,42 @@
status = "okay";
clock-frequency = <400000>;
mpu6050@68 {
compatible = "invensense,mpu6050";
mpu6050_acc: mpu-acc@68 {
status = "okay";
compatible = "mpu6500_acc";
pinctrl-names = "default";
pinctrl-0 = <&mpu6050_irq_gpio>;
reg = <0x68>;
irq-gpio = <&gpio8 0 IRQ_TYPE_EDGE_RISING>;
mpu-int_config = <0x10>;
mpu-level_shifter = <0>;
mpu-orientation = <0 1 0 1 0 0 0 0 1>;
orientation-x= <0>;
orientation-y= <0>;
orientation-z= <1>;
support-hw-poweroff = <0>;
mpu-debug = <1>;
irq_enable = <0>;
poll_delay_ms = <30>;
type = <SENSOR_TYPE_ACCEL>;
layout = <4>;
};
ak8963:compass@0d{
compatible = "mpu_ak8963";
reg = <0x0d>;
compass-bus = <0>;
compass-adapt_num = <0>;
compass-orientation = <1 0 0 0 1 0 0 0 1>;
orientation-x= <0>;
orientation-y= <0>;
orientation-z= <1>;
compass-debug = <1>;
mpu6050_gyro: mpu-gyro@68 {
status = "okay";
compatible = "mpu6500_gyro";
reg = <0x68>;
irq_enable = <0>;
poll_delay_ms = <30>;
type = <SENSOR_TYPE_GYROSCOPE>;
layout = <4>;
};
ak8963_compass: ak8963-compass@0d {
status = "okay";
compatible = "ak8963";
pinctrl-names = "default";
pinctrl-0 = <&ak8963_irq_gpio>;
reg = <0x0d>;
type = <SENSOR_TYPE_COMPASS>;
irq-gpio = <&gpio8 1 IRQ_TYPE_EDGE_RISING>;
irq_enable = <0>;
poll_delay_ms = <30>;
layout = <7>;
};
};
&io_domains {
@@ -430,4 +438,10 @@
rockchip,pins = <8 0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
ak8963 {
ak8963_irq_gpio: ak8963-irq-gpio {
rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};