From 751d4524405050f6b6b0eec34a5dbbce2c1a334d Mon Sep 17 00:00:00 2001 From: Jianhui Wang Date: Tue, 3 Mar 2020 10:51:28 +0800 Subject: [PATCH] ARM: dts: rockchip: rk3288-evb-android-rk808-edp add mpu6050 sensor support Change-Id: I3dc9c9e867a7cef1527af01e845019da85ff9e46 Signed-off-by: Jianhui Wang --- .../dts/rk3288-evb-android-rk808-edp.dtsi | 54 ++++++++++++------- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/arch/arm/boot/dts/rk3288-evb-android-rk808-edp.dtsi b/arch/arm/boot/dts/rk3288-evb-android-rk808-edp.dtsi index acf6f168709a..705e2aefdd9a 100644 --- a/arch/arm/boot/dts/rk3288-evb-android-rk808-edp.dtsi +++ b/arch/arm/boot/dts/rk3288-evb-android-rk808-edp.dtsi @@ -7,6 +7,7 @@ /dts-v1/; #include "rk3288-evb.dtsi" #include "rk3288-android.dtsi" +#include / { 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 = ; + 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 = ; + layout = <4>; }; + + ak8963_compass: ak8963-compass@0d { + status = "okay"; + compatible = "ak8963"; + pinctrl-names = "default"; + pinctrl-0 = <&ak8963_irq_gpio>; + reg = <0x0d>; + type = ; + 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>; + }; + }; };