Other Parts Discussed in Thread: AM1808
Hi,
I'm developing on a AM1808 based board (w sdk 5.03.02.00).
I've enabled the gpio sysfs support in the kernel tree.
Does anybody know how to extend the gpio number range beyond 144 ?
Regards,
Gabriele
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: AM1808
Hi,
I'm developing on a AM1808 based board (w sdk 5.03.02.00).
I've enabled the gpio sysfs support in the kernel tree.
Does anybody know how to extend the gpio number range beyond 144 ?
Regards,
Gabriele
Hi Filosofi,
What exactly you are trying here?
Generally maximum number of GPIO pins are depends on how many GPIO pins can that SoC supports. We can not extend beyond the maximum gpio lines.
You can check the GPIO pins used in the kernel by using these two commands (We can get maximum number of GPIO pins from these entries.
$ mount -t debugfs debugfs /sys/kernel/debug
$ cat /sys/kernel/debug/gpio
We can also check by using this command
$ cat /sys/class/gpio/gpiochip*/ngpio (count all the numbers)
Regards
AnilKumar
Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question. Thanks!
Hi, Anil
you are right.
the gpio debug method you pointed out helped me to
solve the issue.
I was doing wrong assumptions about the gpio resources for this microprocessor. The total number of gpios is 8 bank, 16 gpios each, i.e. 128 gpios (well below of 144). Now I can take control of all of them.
Thanks for your support
Gabriele