Forum Discussion
Hi,
Please refer the below link for setting up the GHRD & GSRD for A10 SoC development kit. This link is having example for the gpio/pio and the Lightweight HPS-to-FPGA.
https://www.rocketboards.org/foswiki/Documentation/Arria10SoCGSRD
Also, refer the below link for the linux user space application to blink the LEDs.
https://github.com/altera-opensource/linux-refdesigns/blob/master/blink/blink.c
Let me know if have any questions on this?
Regards
Tiwari
- sunyeong2 years ago
New Contributor
Thank you for comment.
I would like to use lightweight HPS-FPGA features in HPS.
I have already checked the document (url) you mentioned. But I can't find an example.
I'm having trouble finding examples, so can you tell me where I can find examples related to usage of LightWeight-HPS-to-FPGA?As I understand, the lightweight HPS-FPGA bridge is connected to led_pio.
So, I tried to turn on/off led_pio by controlling the LightWeight-HPS-to-FPGA bridge in HPS.
So I don't need the blink.c example.I would appreciate it if you could tell me where I can find examples related to LightWeight-HPS-to-FPGA.
Regards,
Jung
- sunyeong2 years ago
New Contributor
I understand that you commented.
The blink.c example accesses peripheral address(0xff200010) using gpio driver(via sysfs interface).
I had misunderstood this as a gpio function and not a bridge function.
But, It seems that below content in your document(url, GSRD) is wrong.
The led_pio address of the attached device tree(socfpga_arria10_ghrd.dtsi) in your document is 0x100000010.
But, If you try following this document, the address is 0xff200010.
HOWTOCreateADevicetreeForArria10SoC
Which one is correct?
Regards,
Jung.
@Jeet14 wrote:Hi,
Please refer the below link for setting up the GHRD & GSRD for A10 SoC development kit. This link is having example for the gpio/pio and the Lightweight HPS-to-FPGA.
https://www.rocketboards.org/foswiki/Documentation/Arria10SoCGSRD
Also, refer the below link for the linux user space application to blink the LEDs.
https://github.com/altera-opensource/linux-refdesigns/blob/master/blink/blink.c
Let me know if have any questions on this?
Regards
Tiwari