cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
2,625 Views
Registered: ‎02-05-2008

Refering to EMIO GPIO pins on Device Tree

Hi,

 

I have connected an interrupt to PS GPIO via  EMIO 0. what would be the pin index for this at device tree? 

 

  interrupt-parent = <&gpio>;

  interrupts = <pin index  0>;

 

  gpios = <&gpio0 pin_index 0>;

 

Jothi

 

 

0 Kudos
4 Replies
Highlighted
Voyager
Voyager
2,613 Views
Registered: ‎09-14-2016

Hi @jothiadith,

 

You should take a look here: http://www.wiki.xilinx.com/Linux+GPIO+Driver

 

Regards,

Trigger

0 Kudos
Highlighted
Explorer
Explorer
2,593 Views
Registered: ‎02-05-2008

Hi,

 

I understand when ps_gpio is routed thro' MIO. The page doesnt explain well when the ps_gpio is routed thro' EMIO.

0 Kudos
Highlighted
2,580 Views
Registered: ‎04-20-2017

I agree, I find the wiki page utterly confusing as it keeps using terms without defining what they mean.

Look here
https://forums.xilinx.com/t5/Embedded-Linux/GPIO-control-in-Linux-sysfs/m-p/833075#M24402

The 3rd reply is from a xilinx mod that explains it very explicitly and I found it very helpful
Highlighted
Explorer
Explorer
2,571 Views
Registered: ‎02-05-2008

Thank you. I am using Zynq so the 54 is emio's 1st index.

it should be gipos = <&gpio0 51 0>;

correct?
0 Kudos