- mpu6500@69 { /* Gyroscope and accelerometer sensor combo */
- compatible = "mpu6500_acc";
-
- reg = <0x69>; //
- pinctrl-names = "default";
- pinctrl-0 = <&mpu6500_irq_gpio>;
- irq-gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_LOW>;
- type = <SENSOR_TYPE_ACCEL>;
- irp_enable = <1>;
- poll_delay_ms = <30>;
- layout = <4>;
- reprobe_en=<1>;
- status ="okay";
- //vdd-supply = <&pm8909_l17>;
- //invn,place = "Portrait Down Back Side";
- };
- mpu6500_gyro@69{
- reg = <0x69>;
- pinctrl-names = "default";
- compatible = "mpu6500_gyro";
- type = <SENSOR_TYPE_GYROSCOPE>;
- poll_delay_ms = <30>;
- status = "okay";
- reprobe_en=<1>;
- };
复制代码
通过getevent能识别到gyroscope。欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |