IMX8NANO-EVK How to configure Gpio Interrupt on i2c expander

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8NANO-EVK How to configure Gpio Interrupt on i2c expander

381 Views
baptiste
Contributor I

Dear all,

On the IMX8NANO-EVK board, i need to test two GPIO in 3.3 V.
I have configured i2c3 in dts (imx8mm-evk.dtsi) as follow :

&i2c3 {
clock-frequency = <400000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
status = "okay";

pca6416: gpio@20 {
compatible = "ti,tca6416";
reg = <0x20>;
gpio-controller;
#gpio-cells = <2>;
vcc-supply = <&buck4_reg>
};
};

...

Now, in Linux, i can use libgpiod for Pin13 and Pin15.
I an get and set value, but i can not monitor events (error : no such device).

cat /sys/kernel/debug/gpio

gpiochip5: GPIOs 496-511, parent: i2c/2-0020, 2-0020, can sleep:
gpio-497 ( |regulator-audio-boar) out hi
gpio-507 ( |bt_gpio ) in lo
gpio-508 ( |bt_gpio ) out lo

cat /proc/interrupts | grep gpio

66: 0 0 0 0 gpio-mxc 3 Edge bd718xx-irq
78: 0 0 0 0 gpio-mxc 15 Edge 30b50000.mmc cd
106: 49 0 0 0 gpio-mxc 11 Level 1-0050
223: 0 0 0 0 bd718xx-irq 5 Edge gpio_keys

I think IRQ is not active for my GPIOs, what should i do in DTS file to add IRQ support for EXP_IO9 and EXP_IO10, connected to I2C3 Expander ?

Best regards,

Baptiste

 

 

 

0 Kudos
0 Replies