How to set gpio4_IO15 as interrupt in the imx6ul

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

How to set gpio4_IO15 as interrupt in the imx6ul

1,447 Views
chaochengdo
Contributor I

I am trying set MCU gpio4_IO15(NAND_CLE) as interrupt pin.
Now I modify the .dts file firstly but kernel code donot modify yet.
I type "cat /proc/interrupts" to see but it does not show my device information.
Can I check the proc/interrupts inforamtion if correct without kernel code modified ?
Please help to check my dts if correct ?

inttest{
compatible = "fsl,imx6ul-inttest";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_inttest>;
gpios = <&gpio4 15 0>;
interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; <--actually I donot know how to put second number 13, i use 13 beacuse unused
interrupt-parent = <&gpio4>;
};

pinctrl_inttest: inttest {
fsl,pins =<
MX6UL_PAD_NAND_CLE__GPIO4_IO15 0x80000000
>;
};

attached file is my setting

0 Kudos
1 Reply

864 Views
igorpadykov
NXP Employee
NXP Employee

Hi chaocheng

interrupt example can be found on:

Configured GPIO interrupt but ISR is not hitting 

In general without kernel code modifications, you should have in

kernel some driver which uses : compatible = "fsl,imx6ul-inttest"..

You can debug it to find where problem happens.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos