UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
1,848 Views
Registered: ‎06-15-2017

generating PWM signal using AXI timer in linux

Hi,

        I'm using microzed board which has zynq (XC7Z020) SOC to drive a motor, I'm able to boot the board with Linux  4.6.0 kernel.

But is there any driver for AXI-timer in Linux? How can I make the AXI-timer work in PWM mode?

The link below shows the boot log snippet for AXI-timer, But I didn't get any such lines in the boot log.

http://www.wiki.xilinx.com/Axi+timer

 

Can anybody tell me how can I use AXI - timer to generate PWM signal in Linux environment?

 

Thanks in advance.

0 Kudos
1 Reply
Observer jasons313
Observer
585 Views
Registered: ‎09-21-2012

Re: generating PWM signal using AXI timer in linux

I am running into a similar problem.  Out of curiosity, are you using the Petalinux SDK (what version?) or the Yocto workflow?

 

What I found in Petalinux 2015.2 at least, was the DTS generated showed this:

axi_timer_0: timer@42800000 {
.

.

.
compatible = "xlnx,xps-timer-1.00.a";
.

.
};

 

But... there are no drivers in the petalinux package that are compatible with xlnx,xps-timer-1.00.a (except for microblaze arch)

 

I haven't tried it yet, but I was going to patch the petalinux package with this driver:

https://github.com/btanghe/xilinx-pwm

 

Assuming this is your problem you might want to try as well

0 Kudos