Reputation: 303
I’m connecting the MPU6050 to my RISC-V milkv duo board after compiling in the built-in driver. I get the following in dmesg
:
[ 0.805674] inv-mpu6050-i2c 0-0068: mounting matrix not found: using identity...
[ 0.813447] inv-mpu6050-i2c 0-0068: Could not find IRQ 0
[ 0.819145] inv-mpu6050-i2c: probe of 0-0068 failed with error -22
# i2cdetect -ry 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- 56 -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
I’m connecting the Interrupt pin to GPIOA26 and using the following DTS:
&i2c0 {
status = "okay";
clock-frequency = <100000>;
mpu6050@68 {
compatible = "invensense,mpu6050";
reg = <0x68>;
interrupt-parent = <&gpio0>;
interrupts = <26 IRQ_TYPE_EDGE_RISING>;
};
};
What is the correct values for interrupt-parent and interrupts?
EDIT: full boot log: https://pastebin.com/ErNQxwB1
Upvotes: 0
Views: 106