cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
6,450 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
Highlighted
Xilinx Employee
Xilinx Employee
6,442 Views
Registered: ‎07-11-2011

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
Highlighted
Xilinx Employee
Xilinx Employee
6,434 Views
Registered: ‎03-13-2012

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

Highlighted
Adventurer
Adventurer
6,426 Views
Registered: ‎03-27-2014

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