Hello Guys,
I am using SDK 7.0 with AM3352 and need some help with a custom driver. I have hardware which needs 3 GPIOs to be controlled in software - one of the GPIOs is used to detect rising edge. I would like to write a kernel driver so that I can control the 2 IOs and also detect the rising edge on the third IO line.
Can someone suggest how to add device tree entries for these 3 IOs? I've tried setting them up as Misc driver but I don't know how to pass the device tree information to a misc driver. I also tried setting it up as a platform device but I was not able to get the probe function working.
I did come across this ink and it makes some sense to me, but I don't know how to modify the am33xx.dtsi file to accomplish this task. http://stackoverflow.com/questions/16259580/probe-in-linux-devfreq-driver-not-being-called
Thanks for all your help. Please do let me know if you need more information from my side.
Thank you
Regards
Santhosh