Page 1 of 1

NanoPi M4 GPIO confusion..

Posted: Thu Feb 28, 2019 11:26 am
by Exie
Hi Folks,

I've been looking at the pinout and I'm a bit confused, the wiki page talks about

GPIO1_A1
GPIO1_C2
GPIO1_A3
GPIO1_A4
GPIO1_C6
GPIO1_C7
GPIO1_D0

That's 7 different pins on the 40 pin header, which one is actually GPIO1 ?

In Ubuntu, I found 5 GPIO's described in:
/sys/devices/platform/pinctrl/gpio/gpiochip0/label -> gpio0
/sys/devices/platform/pinctrl/gpio/gpiochip32/label -> gpio1
/sys/devices/platform/pinctrl/gpio/gpiochip64/label -> gpio2
/sys/devices/platform/pinctrl/gpio/gpiochip96/label -> gpio3
/sys/devices/platform/pinctrl/gpio/gpiochip128/label -> gpio4

It's not clear if the device tree (DTB) file is just screwed up or what. Please help me make sense of it. :)

Re: NanoPi M4 GPIO confusion..

Posted: Wed Mar 06, 2019 8:19 pm
by guidol
on the wiki page
http://wiki.friendlyarm.com/wiki/index.php/NanoPi_M4
they named the standard 40 pin Connector GPIO1 because of the additinal ports on the 24 pin row GPIO2 :(