Linux documentation is very clear on how to interact with GPIO from user space application and even use them as interrupts. Refer to Documentation/gpio.txt, section “Sysfs Interface for Userspace (OPTIONAL)” – also make sure you enable the sysfs portion of gpiolib in menuconfig (CONFIG_GPIO_SYSFS).
Christopher S. Pow Senior Engineer, Systems Honeywell SWCOE - RTOS o:612-951-5852 c:612-910-1271 "The number you have dialed is imaginary. Please rotate your phone 90 degrees and try again." From: [email protected] [mailto:[email protected]] On Behalf Of bmentink Sent: Friday, October 04, 2013 1:28 PM To: [email protected] Subject: [meta-ti] User space drivers Hi all, I am wanting to implement a user space driver complete with interrupt in yocto. I see that there is a sample generic platform driver in the kernel, but not sure how to use it. Say i want to talk to GPIO Is it simply a matter of pointing the .dts entry for the driver to the uio driver? Any pointers would be very helpful .. Cheers, Bernie Sent from Samsung tablet
_______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
