Part Number: AM3358
I am trying to use the Userspace I/O driver to access the GPIO interrupts in userspace. My device is AM335X. The kernel version is 4.14.78 and along with BSP it is 4.14.78-bsp-yocto-am335x-pd19.1.1. I successfully made it work for GPIO0_20. But when I am trying with GPIO3_7 I get the error below(Marked in Red):
I need help resolving this. I spent time doing web searches and browsing through kernel code but can't figure this one out. It's probably something simple for an expert.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
root@phyboard-wega-am335x-1:~#
root@phyboard-wega-am335x-1:~# modprobe -r uio_pdrv_genirq
root@phyboard-wega-am335x-1:~#
root@phyboard-wega-am335x-1:~# modprobe uio_pdrv_genirq of_id="mydevice1,generic-
-uio,ui_pdrv"
[ 30.710204] ------------[ cut here ]------------
[ 30.715390] WARNING: CPU: 0 PID: 219 at /usr/src/kernel/kernel/irq/irqdomain.c:522 irq_domain_associate+0x160/0x1e8
[ 30.726430] error: hwirq 0x67 is too large for :ocp:gpio@481ae000
[ 30.732884] Modules linked in: uio_pdrv_genirq(+) uio pvrsrvkm(O) snd_soc_evm snd_soc_davinci_mcasp snd_soc_edma snd_soc_omap snd_soc_tlv320aic3x snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer snd soundcore cpufreq_dt cryptodev(O) autofs4 [last unloaded: uio]
[ 30.757376] CPU: 0 PID: 219 Comm: modprobe Tainted: G W O 4.14.78-bsp-yocto-am335x-pd19.1.1 #1
[ 30.767464] Hardware name: Generic AM33XX (Flattened Device Tree)