Hello my name is François, Currently I work with imx6dl sabre. I want handle GPIO interrupts in userspace on linux with UIO.
I add in dts file
/ {
user_io {
compatible = "generic-uio";
status = "okay";
interrupt-parent=<&gpio7>;
interrupts = <12 2>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hog_3>;
};
};
and I add uio_pdrv_genirq.of_id=generic-uio in bootarg.
and I add config CONFIG_UIO=y
CONFIG_UIO_PDRV_GENIRQ=y in my kernel.
But after boot my /sys/class/uio directory is empty and I have not node /dev/uio0.
I don't understand why I have not node /dev/uio0.
Can you help me please.
Best Regards
François.
PS: I used the url Handling GPIO interrupts in userspace on Linux with UIO · /var/log/andrey
add following bootargs in bootloader args or dts file:
uio_pdrv_genirq.of_id=mydevice,generic-uio,ui_pdrv
Hello I tried modprobe command.
And I have the error :
uio_pdrv_genirq: `mydevice,generic-uio,ui_pdrv' invalid for parameter `of_id'
modprobe: can't load module uio_pdrv_genirq (kernel/drivers/uio/uio_pdrv_genirq.ko): Invalid argument
Can you help me please.
Best regards
François.
Hi François
please try to load irq module as in example:
modprobe uio_pdrv_genirq of_id="mydevice,generic-uio,ui_pdrv"
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------