ARM64: dts: rockchip: add sensor mpu6500 node for rk3399 mid board
authorZorro Liu <lyx@rock-chips.com>
Mon, 4 Jul 2016 01:16:43 +0000 (09:16 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Tue, 12 Jul 2016 07:19:55 +0000 (15:19 +0800)
Change-Id: If78d74fccf3195e3e81b91dc6d5981929ca16319
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-mid-818-android.dts

index b8931afe4552037f80b6061d238b7bd9d4f5947b..bd873a093ce1d972d4682528ae1ce67bba83ad13 100644 (file)
        };
 };
 
+&i2c4 {
+       status = "okay";
+       i2c-scl-rising-time-ns = <345>;
+       i2c-scl-falling-time-ns = <11>;
+       clock-frequency = <400000>;
+
+       mpu6500@68 {
+               status = "okay";
+               compatible = "invensense,mpu6500";
+               pinctrl-names = "default";
+               pinctrl-0 = <&mpu6500_irq_gpio>;
+               reg = <0x68>;
+               irq-gpio = <&gpio2 27 IRQ_TYPE_EDGE_RISING>;
+               mpu-int_config = <0x10>;
+               mpu-level_shifter = <0>;
+               mpu-orientation = <1 0 0 0 1 0 0 0 1>;
+               orientation-x= <1>;
+               orientation-y= <1>;
+               orientation-z= <0>;
+               mpu-debug = <1>;
+       };
+};
+
 &i2c5 {
        status = "okay";
        i2c-scl-rising-time-ns = <150>;
        status = "okay";
 };
 
+&spi1 {
+       status = "disabled";
+       max-freq = <50000000>;
+       mpu6500@0 {
+               status = "disabled";
+               compatible = "inv-spi,mpu6500";
+               pinctrl-names = "default";
+               pinctrl-0 = <&mpu6500_irq_gpio>;
+               irq-gpio = <&gpio2 27 IRQ_TYPE_EDGE_RISING>;
+               reg = <0>;
+               spi-max-frequency = <1000000>;
+               spi-cpha;
+               spi-cpol;
+               mpu-int_config = <0x00>;
+               mpu-level_shifter = <0>;
+               mpu-orientation = <1 0 0 0 1 0 0 0 1>;
+               orientation-x= <1>;
+               orientation-y= <0>;
+               orientation-z= <1>;
+               mpu-debug = <1>;
+       };
+};
+
 &tsadc {
        rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
        rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
                        rockchip,pins = <3 8 RK_FUNC_GPIO &pcfg_pull_up>;
                };
        };
+
+       mpu6500 {
+               mpu6500_irq_gpio: mpu6500-irq-gpio {
+                       rockchip,pins = <2 27 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
 };
 
 &rk_screen {
 
 &edp_rk_fb {
        status = "okay";
-};
\ No newline at end of file
+};