I was wondering how are the nanoPI2 physical GPIO pins mapped into SYSFS. For example which SYSFS 'gpioxx' value would correspond to the physical GPIOB29?
NanoPi 2 GPIO pin mappings
hello,
If you want to use NanoPi 2 physical GPIO pins , you can refer to
the following steps:
# cd /sys/class/gpio
# for i in gpiochip* ; do echo `cat $i/label`: `cat $i/base` ; done
nxp-gpio.0:0
nxp-gpio.4:128
nxp-gpio.5:160
nxp-gpio.1:32
nxp-gpio.2:64
nxp-gpio.3:96
Actually the gpio.0 express GPIOA, gpio.1 express GPIOB...
For example , if you want to use GPIOB30 of NanoPi 2 , we can use the GPIO
such as :64 + 30 = 94.
Hi, if you want gpio port, fisrt echo 94 > /sys/class/gpio/export then you can see new gpio94 device have a good time


