AnsweredAssumed Answered

Configure pca6416 as MPU6050 interrupt

Question asked by Khang Le Truong on May 18, 2020
Latest reply on May 18, 2020 by Khang Le Truong

Dear All,

 

I'm working on activating MPU6050 Linux driver for iMX8MM-EVK like below :

 

        inv-mpu6050@68 {
                compatible = "invensense,mpu6050";
                reg = <0x68>;
                /* interrupt-parent = <&gpio1>; */
                /* interrupts = <18 IRQ_TYPE_EDGE_RISING>; */
                mount-matrix = "-0.984807753012208",  /* x0 */
                               "0",                   /* y0 */
                               "-0.173648177666930",  /* z0 */
                               "0",                   /* x1 */
                               "-1",                  /* y1 */
                               "0",                   /* z1 */
                               "-0.173648177666930",  /* x2 */
                               "0",                   /* y2 */
                               "0.984807753012208";   /* z2 */
        };

 

I have the need to define the GPIO as interrupt pin for the IMU. But there's no direct GPIO available on the iMX8MM-EVK. Therefore, I would like to know how to configure the IO expander chip (PCA6416) for this task, please ?

 

Thank you in advance,

K.

Outcomes