AnsweredAssumed Answered

For a ZC706 Evaluation Board that we have working with an AD-FMCOMMS3 module, we need to know what the gpio numbers are in order to handle from Linux the pins of the Connector J58

Question asked by S.Garza on Nov 10, 2017
Latest reply on Nov 13, 2017 by S.Garza

For a ZC706 Evaluation Board that we have working with an AD-FMCOMMS3 module, we need to know what the gpio numbers are in order to handle from Linux the pins of the Connector J58 of the ZC706 board:
Pin 1. PMOD1_0
Pin 3. PMOD1_1
Pin 5. PMOD1_2
Pin 7. PMOD1_3
Pin 2. PMOD1_4
Pin 4. PMOD1_5
Pin 6. PMOD1_6
Pin 8. PMOD1_7

Explaining in more detail,

When we do ls on the directory /sys/class/gpio  we get
gpiochip890   gpiochip906

If somebody could please let us know the gpio numbers corresponding to the pins in the J58 connector of ZC706 Evaluation Board, we could make use of these pins as gpios on our application.

For example, let's suppose that the gpio for Pin 1. PMOD1_0  were 929, then (for an output) we could do:
/sys/class/gpio# echo 929 > export

Here we would have created the directory:
/sys/class/gpio/gpio929

So now we could do
/sys/class/gpio# echo out > gpio929/direction

And we could control its value (signal in Pin 1. PMOD1_0 of J58) like
/sys/class/gpio# echo 1 > gpio929/value
or
/sys/class/gpio# echo 0 > gpio929/value

We have been trying to find the gpio numbers corresponding to the pins of connector J58 (listed above), going thorough a lot of postings on Discussion/Support Forums without success, so we would really appreciate it if somebody could please provide this information for us.

 

Many Thanks in advance,

 

Sergio Garza

11.10.2017

Outcomes