I made changes in below dtsi
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. I am using The interrupt number (56/57) seem to be correct (reference manual numbers minus 32).
I am using 24 for EPIT and 25 for EPIT in request irq but after inserting the kernel module getting below interrupts.
root@GW-1000-NWE-1011945187000000 ~# cat /proc/interrupts
CPU0
16: 19241 GPC 55 Level i.MX Timer Tick
17: 0 GPC 94 Level arm-pmu
21: 0 GPC 20 Level caam-snvs
22: 416 GPC 26 Level 2020000.serial
24: 0 GPC 50 Level EPIT.1
25: 0 GPC 83 Level EPIT.2
43: 0 GPC 80 Level 20bc000.wdog
44: 0 GPC 49 Level imx_thermal
56: 0 GPC 2 Level sdma
-> In dtsi 50 is assign to asrc: asrc@02034000 and 83 is assign to pwm1: pwm@02080000
but for EPIT is have 56 and 57 in dtsi and sdma is 2
Can you please check it and share us correct dtsi configuration for imx6 solo x.
Thank you so much in advance.