};
};
+&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
+};