From: Zorro Liu Date: Mon, 13 Jun 2016 06:26:25 +0000 (+0800) Subject: ARM64: dts: rockchip: rk3399-vr-android.dts: add mpuxxx spi node and disabled i2c... X-Git-Tag: firefly_0821_release~2470 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d0caa4e9aafc797f1e9757581cd2634824e5c7a7;p=firefly-linux-kernel-4.4.55.git ARM64: dts: rockchip: rk3399-vr-android.dts: add mpuxxx spi node and disabled i2c node Change-Id: I0e19ce5c7e9982ccdd995bd273a9833463be4c68 Signed-off-by: Zorro Liu --- diff --git a/arch/arm64/boot/dts/rockchip/rk3399-vr-android.dts b/arch/arm64/boot/dts/rockchip/rk3399-vr-android.dts index aa275975adca..5992449326aa 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-vr-android.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-vr-android.dts @@ -522,16 +522,48 @@ }; &i2c4 { - status = "okay"; + status = "disabled"; i2c-scl-rising-time-ns = <600>; i2c-scl-falling-time-ns = <20>; mpu6500@68 { + status = "disabled"; compatible = "invensense,mpu6500"; pinctrl-names = "default"; pinctrl-0 = <&mpu6500_irq_gpio>; reg = <0x68>; irq-gpio = <&gpio1 4 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= <1>; + orientation-y= <1>; + orientation-z= <1>; + mpu-debug = <1>; + }; +}; + +&spi1 { + status = "okay"; + max-freq = <50000000>; + dma-names = "tx", "rx"; + mpu6500@0 { + status = "okay"; + compatible = "inv-spi,mpu6500"; + pinctrl-names = "default"; + pinctrl-0 = <&mpu6500_irq_gpio>; + irq-gpio = <&gpio1 4 IRQ_TYPE_EDGE_RISING>; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpha; + spi-cpol; + mpu-int_config = <0x10>; + mpu-level_shifter = <0>; + mpu-orientation = <0 1 0 1 0 0 0 0 1>; + orientation-x= <1>; + orientation-y= <1>; + orientation-z= <1>; + mpu-debug = <1>; }; };