Hi All. I am trying to use EPIT. I have made some changes on below file.
imx6sx.dtsi - >
epit1: epit@020d0000 {
compatible = "fsl,imx6sx-epit", "fsl,imx31-epit";
reg = <0x020d0000 0x4000>;
interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6SX_CLK_EPIT1>;
clock-names = "ipg", "per";
status = "okay";
};
epit2: epit@020d4000 {
compatible = "fsl,imx6sx-epit", "fsl,imx31-epit";
reg = <0x020d4000 0x4000>;
interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6SX_CLK_EPIT2>;
clock-names = "ipg", "per";
status = "okay";
};
2- Please find the attached simple epit module.
3 - When I am inserting the module getting below error
" EPIT1 base address: c0dc0000
genirq: Flags mismatch irq 56. 00000004 (EPIT1) vs. 00000004 (sdma)
EPIT1 request_irq return -16
EPIT1 : request_irq() failure! ""
Can you please help me how to resolve this error.
Thanks in advance.
Hello,
Please refer to the Linux Reference Manual, available in the following link => Supporting information => Linux docs: https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...
There you will find information about the timer (chapter 2.1.3) and the files available to set it. Additionally, you can refer to the i.MX6 Solo X Reference Manual, chapter 25 for more information about the EPIT: https://www.nxp.com/webapp/Download?colCode=IMX6SXRM
Hope it helps!
BR,
Ivan.