Hi All,
I am trying to use timer4 capture mode of AM335x. After going through DMTimer.c I have understood that a specific DMTimer can be initialized using,
1) Requesting a specific timer (omap_dm_timer_request_specific)
2) Requesting a timer based on its capability (omap_dm_timer_request_by_cap)
3) Requesting a timer based on node entry in .dts file.
I have tried all three methods to access specific timer but every time these functions return NULL pointer indicating that I didn't get access to a specific timer.
My question is how to initialize and access a Particular DMTimer in input capture mode. I am open using any method as long as I get access to configure a particular timer in desired mode.
Details of my System
EVM – Beaglebone black
Linux – 4.1.13
SDK -02.00.01.07
am335x-boneblack.dts file
timer4_pins_default: timer4_pins_default {
pinctrl-single,pins = <
0x90 ( PIN_INPUT | MUX_MODE2 )
>;
};
&timer4 {
compatible = "ti,am335x-timer";
pinctrl-names = "default";
pinctrl-0 = <&timer4_pins_default>;
DMtimer = <&timer4>;
status = "okay";
};
cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pinmux-function
function: timer4_pins_default, groups = [ timer4_pins_default ]