Showing results for 
Show  only  | Search instead for 
Did you mean: 
Registered: ‎12-25-2014

Cannot read values from zc706 gpio leds in linux OS

I am working on zc706-fmcomms5 board. I am using the 4 gpio leds on zc706 (L, R, C, 0) for some purpose through PL. In the earlier version of kernel & device tree files (linux_2016_r2, downloaded about 2 years back), I was able to read correct values of each of these in linux os. I had to "unbind" them & then access them through "/sys/class/gpio" by exporting whichever I wanted.


Now when I upgrade my design (only kernel & device tree files) by downloading the latest "linux_master" kernel, the Leds (which are controlled by fpga) are glowing accordingly but I can't seem to get correct values in linux OS. It is always 0 even though the led is glowing.


For reference, I used the same "system_top.hdf" file to generate the Petalinux project. Then, from "linux-master" kernel, I used files

1. zynq-zc706-adv7511-ad9361-fmcomms5.dts (which I renamed to system-top.dts in petalinux device tree directory)

2. zynq-zc706-adv7511.dtsi

3. zynq-7000.dtsi

4. adi-fmcomms5.dtsi

Additionally, I included files generated by petalinux

5. system-conf.dtsi

6. skeleton.dtsi

7. pl.dtsi

8. pcw.dtsi


leds are not included by default in the petalinux created device tree so I copy pasted the "leds" node from zynq-zc706.dtsi into pl.dtsi.


So, why can't I read the led values correctly in this version.

0 Kudos
0 Replies