ARM64: dts: rockchip: rk3399-vr-android.dts: add mpuxxx spi node and disabled i2c...
authorZorro Liu <lyx@rock-chips.com>
Mon, 13 Jun 2016 06:26:25 +0000 (14:26 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 13 Jun 2016 10:08:54 +0000 (18:08 +0800)
Change-Id: I0e19ce5c7e9982ccdd995bd273a9833463be4c68
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-vr-android.dts

index aa275975adcac1a35426e5dcc886cc1d006744a6..5992449326aa1f0baefaaee030600d47bcd666d9 100644 (file)
 };
 
 &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>;
        };
 };