I will start by apologising myself as I think it is a newbie stupid question.
I have been struggling to understand all stuff from device tree passing through kernel source and trying to reach the processor specifics but I still see no connection between everything in the Linux kernel side and Atmel datasheet for SAM9G25, section 35 - Timer Counter (TC).
So, I will try to make some few objective questions hoping you can help to unstuck me.
- Is there an implementation of Atmel TC in Linux kernel?
- How can I (easily) tell which resources are being used by kernel and which are being spared?
- Finally, any guidances on how to use a spare TC channel for my own purposes?
I am currently developing on a custom board that was based in AT91SAM9x25-EK.
I succeeded to build Yocto and boot this board with minimal customization from the EK.
Now I need to develop a device driver that uses at least one TC channel to control a few stepper motors and it will probably take me to the FIQ in future, but I need to go one step at a time and I am not considering it now.
Any help will be greatly welcome.