Hi b45499,
Thanks very much for your quick reply. After consulting the link, I understand that is for enabling the interrupt from pca4616, isn't it ? However, in my case I need to generate the interrupt from the MPU's INT pin connected to one of EXP_IOx (x =0 .. 14) of pca6416. Therefore, I'm still confused and I'd like to know where should I put the following lines :
pinctrl-0 = <&pinctrl_imu_int>;
interrupt-parent = <&gpio1>;
interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
To the pca6416 node, like below :
pca6416: gpio@20 {
compatible = "ti,tca6416";
reg = <0x20>;
gpio-controller;
#gpio-cells = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_imu_int>:
interrupt-parent = <&gpio1>;
interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
};
or to the imu node, like below :
inv-mpu6050@68 {
compatible = "invensense,mpu6050";
reg = <0x68>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_imu_int>:
interrupt-parent = <&gpio1>;
interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
...
};
And how should I indicate the EXP_IOx that the IMU's interrupt signal is connected to?
Thanks and regards,
K.