NanoPi M4 GPIO confusion..
Posted: Thu Feb 28, 2019 11:26 am
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.
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.
