AnsweredAssumed Answered

Handling GPIO interrupts in userspace on Linux with UIO

Question asked by delauratfrançois on Mar 9, 2016
Latest reply on Feb 20, 2017 by lingku xia


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

Outcomes