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: 
Adventurer
Adventurer
6,283 Views
Registered: ‎03-27-2014

Access LEDs from Linux on Zynq ZC706

Is there a mechanism to access (turn on/off) LEDs on Zynq ZC706 board from Linux? Accessing registers via mmap of /dev/mem would be fine. I am hoping that the LEDs are connected to the PS and no changes to PL are required/necessary.

 

Is that correct? I looked and searched a few user guide but didn't see anything on how to control LEDs from PS without building an FPGA image. Any tips/pointers greatly appreciated.

0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
6,275 Views
Registered: ‎07-11-2011

Re: Access LEDs from Linux on Zynq ZC706

Hi,

 

 

Please check if below discussion helps

http://forums.xilinx.com/t5/Embedded-Linux/How-do-I-access-GPIO-on-ZedBoard-using-the-latest-Petalinux/td-p/365741

 

Also this AR

http://www.xilinx.com/support/answers/51786.html

 

 

 

Regards,

Vanitha

---------------------------------------------------------------------------------------------
Please do google search before posting, you may find relavant information.
Mark the post - "Accept as solution" and give kudos if information provided is helpful and reply oriented
0 Kudos
Xilinx Employee
Xilinx Employee
6,267 Views
Registered: ‎03-13-2012

Re: Access LEDs from Linux on Zynq ZC706

AFAIK, all LEDs on the zc706 are connected to PL pins. So, at a bare minimum, you need a bitstream that routes those pins to the PS GPIO on the EMIO interface.

Once there you should use the gpio-led driver to control the LEDs.

http://forums.xilinx.com/t5/Embedded-Linux/Blink-LEDs-in-Linux-on-Zynq-through-dev-mem/m-p/534365/highlight/true#M10996

http://www.wiki.xilinx.com/Linux+GPIO+Driver#Linux%20Kernel%20Drivers-LEDS-GPIO%20Driver

Adventurer
Adventurer
6,259 Views
Registered: ‎03-27-2014

Re: Access LEDs from Linux on Zynq ZC706

Thanks sorenb. I was hoping that I don't hav eto build a bitstream for driving LEDs on ZC706 but will look into building one now. Thanks for the pointer to the Wiki page which is very useful.

0 Kudos