20240626确认飞凌开发板OK3588-C使用的I2C扩展GPIO芯片io扩展芯片TCA6424ARGJR的GPIO号的对应关系!

20240626确认飞凌开发板OK3588-C使用的I2C扩展GPIO芯片io扩展芯片TCA6424ARGJR的GPIO号的对应关系!

2024/6/26 20:15

SDK:Linux R4/Buildroot

root@ok3588:/#
root@ok3588:/# cd /sys/class/gpio/

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:13 export

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32
lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485
lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

很容易确认GPIO好的对应关系:P00对应gpiochip485/gpio485

【请严重注意,扩展GPIO口分3段,不是连续的。P07之后P10,P17之后是P20。】

新手可能会在这里踩坑!

P00 485

P01 486

P02 487

P03 488

P04 489

P05 490

P06 491

P07 492

P10 493

P11 494

P12 495

P13 496

P14 497

P15 498

P16 499
P17 500
P20 501
P21 502
P22 503
P23 504
P24 505
P25 506
P26 507
P27 508

使用万用表实测:

高:3.3V/3.290V

低:OV/0.003v

详细的LOG:

root@ok3588:/#

root@ok3588:/#

root@ok3588:/# cd

root@ok3588:/#

root@ok3588:/#

root@ok3588:/#

root@ok3588:/# cd /sys/class/gpio/

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:13 export

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:13 export

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# echo 508 > export

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:32 export

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# cd gpio

sh: cd: gpio: No such file or directory

root@ok3588:/sys/class/gpio# cd gpio58

sh: cd: gpio58: No such file or directory

root@ok3588:/sys/class/gpio#

Display all 940 possibilities? (y or n)^C

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# cd gpio508

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508# ls -l

total 0

-rw-r--r-- 1 root root 4096 Jun 26 18:32 active_low

lrwxrwxrwx 1 root root 0 Jun 26 18:32 device -> ../../../gpiochip6

-rw-r--r-- 1 root root 4096 Jun 26 18:32 direction

drwxr-xr-x 2 root root 0 Jun 26 18:32 power

lrwxrwxrwx 1 root root 0 Jun 26 18:32 subsystem -> ../../../../../../../../class/gpio

-rw-r--r-- 1 root root 4096 Jun 26 18:32 uevent

-rw-r--r-- 1 root root 4096 Jun 26 18:32 value

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508# cat direction

in

root@ok3588:/sys/class/gpio/gpio508# cat value

0

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508# echo out > direction

root@ok3588:/sys/class/gpio/gpio508# echo 1 > value

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508# cat direction

out

root@ok3588:/sys/class/gpio/gpio508# cat value

1

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508# echo 0 > value

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508# echo 1 > value

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508# cat direction

out

root@ok3588:/sys/class/gpio/gpio508# cat value

1

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508#

root@ok3588:/sys/class/gpio/gpio508# cd ..

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:32 export

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# echo 507 > export

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:38 export

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# cd gpio57

sh: cd: gpio57: No such file or directory

root@ok3588:/sys/class/gpio# cd gpio507/

root@ok3588:/sys/class/gpio/gpio507#

root@ok3588:/sys/class/gpio/gpio507# ls -l

total 0

-rw-r--r-- 1 root root 4096 Jun 26 18:39 active_low

lrwxrwxrwx 1 root root 0 Jun 26 18:39 device -> ../../../gpiochip6

-rw-r--r-- 1 root root 4096 Jun 26 18:39 direction

drwxr-xr-x 2 root root 0 Jun 26 18:39 power

lrwxrwxrwx 1 root root 0 Jun 26 18:39 subsystem -> ../../../../../../../../class/gpio

-rw-r--r-- 1 root root 4096 Jun 26 18:38 uevent

-rw-r--r-- 1 root root 4096 Jun 26 18:39 value

root@ok3588:/sys/class/gpio/gpio507# echo out > direction

root@ok3588:/sys/class/gpio/gpio507# echo 1 > value

root@ok3588:/sys/class/gpio/gpio507#

root@ok3588:/sys/class/gpio/gpio507# cat direction

out

root@ok3588:/sys/class/gpio/gpio507# cat value

1

root@ok3588:/sys/class/gpio/gpio507# echo 0 > value

root@ok3588:/sys/class/gpio/gpio507#

root@ok3588:/sys/class/gpio/gpio507# cat direction

out

root@ok3588:/sys/class/gpio/gpio507# cat value

0

root@ok3588:/sys/class/gpio/gpio507#

root@ok3588:/sys/class/gpio/gpio507# cd ..

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:38 export

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# echo 506 > export

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:40 export

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio# cd gpio50

sh: cd: gpio50: No such file or directory

root@ok3588:/sys/class/gpio# cd gpio506/

root@ok3588:/sys/class/gpio/gpio506#

root@ok3588:/sys/class/gpio/gpio506# ls -l

total 0

-rw-r--r-- 1 root root 4096 Jun 26 18:40 active_low

lrwxrwxrwx 1 root root 0 Jun 26 18:40 device -> ../../../gpiochip6

-rw-r--r-- 1 root root 4096 Jun 26 18:40 direction

drwxr-xr-x 2 root root 0 Jun 26 18:40 power

lrwxrwxrwx 1 root root 0 Jun 26 18:40 subsystem -> ../../../../../../../../class/gpio

-rw-r--r-- 1 root root 4096 Jun 26 18:40 uevent

-rw-r--r-- 1 root root 4096 Jun 26 18:40 value

root@ok3588:/sys/class/gpio/gpio506# cat direction

in

root@ok3588:/sys/class/gpio/gpio506# cat value

0

root@ok3588:/sys/class/gpio/gpio506#

root@ok3588:/sys/class/gpio/gpio506# echo out > direction

root@ok3588:/sys/class/gpio/gpio506# echo 1 > value

root@ok3588:/sys/class/gpio/gpio506#

root@ok3588:/sys/class/gpio/gpio506# cat direction

out

root@ok3588:/sys/class/gpio/gpio506# cat value

1

root@ok3588:/sys/class/gpio/gpio506#

root@ok3588:/sys/class/gpio/gpio506# echo 0 > value

root@ok3588:/sys/class/gpio/gpio506#

root@ok3588:/sys/class/gpio/gpio506# cat direction

out

root@ok3588:/sys/class/gpio/gpio506# cat value

0

root@ok3588:/sys/class/gpio/gpio506# echo 1 > value

root@ok3588:/sys/class/gpio/gpio506#

root@ok3588:/sys/class/gpio/gpio506# cat direction

out

root@ok3588:/sys/class/gpio/gpio506# cat value

1

root@ok3588:/sys/class/gpio/gpio506#

root@ok3588:/sys/class/gpio/gpio506# cd ..

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -

ls: cannot access '-': No such file or directory

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:40 export

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# echo 505 > export

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:42 export

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio# cd gpio505/

root@ok3588:/sys/class/gpio/gpio505# ls -l

total 0

-rw-r--r-- 1 root root 4096 Jun 26 18:42 active_low

lrwxrwxrwx 1 root root 0 Jun 26 18:42 device -> ../../../gpiochip6

-rw-r--r-- 1 root root 4096 Jun 26 18:42 direction

drwxr-xr-x 2 root root 0 Jun 26 18:42 power

lrwxrwxrwx 1 root root 0 Jun 26 18:42 subsystem -> ../../../../../../../../class/gpio

-rw-r--r-- 1 root root 4096 Jun 26 18:42 uevent

-rw-r--r-- 1 root root 4096 Jun 26 18:42 value

root@ok3588:/sys/class/gpio/gpio505# cat direction

in

root@ok3588:/sys/class/gpio/gpio505# cat value

0

root@ok3588:/sys/class/gpio/gpio505#

root@ok3588:/sys/class/gpio/gpio505#

root@ok3588:/sys/class/gpio/gpio505# echo out > direction

root@ok3588:/sys/class/gpio/gpio505# echo 1 > value

root@ok3588:/sys/class/gpio/gpio505#

root@ok3588:/sys/class/gpio/gpio505# cat direction

out

root@ok3588:/sys/class/gpio/gpio505# cat value

1

root@ok3588:/sys/class/gpio/gpio505# echo 0 > value

root@ok3588:/sys/class/gpio/gpio505# cat direction

out

root@ok3588:/sys/class/gpio/gpio505# cat value

0

root@ok3588:/sys/class/gpio/gpio505#

root@ok3588:/sys/class/gpio/gpio505# echo 1 > value

root@ok3588:/sys/class/gpio/gpio505#

root@ok3588:/sys/class/gpio/gpio505#

root@ok3588:/sys/class/gpio/gpio505# cd ..

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:42 export

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# echo 504 > export

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:44 export

lrwxrwxrwx 1 root root 0 Jun 26 18:44 gpio504 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio504

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio# cd gpio504/

root@ok3588:/sys/class/gpio/gpio504# ls -l

total 0

-rw-r--r-- 1 root root 4096 Jun 26 18:44 active_low

lrwxrwxrwx 1 root root 0 Jun 26 18:44 device -> ../../../gpiochip6

-rw-r--r-- 1 root root 4096 Jun 26 18:44 direction

drwxr-xr-x 2 root root 0 Jun 26 18:44 power

lrwxrwxrwx 1 root root 0 Jun 26 18:44 subsystem -> ../../../../../../../../class/gpio

-rw-r--r-- 1 root root 4096 Jun 26 18:44 uevent

-rw-r--r-- 1 root root 4096 Jun 26 18:44 value

root@ok3588:/sys/class/gpio/gpio504#

root@ok3588:/sys/class/gpio/gpio504# cat direction

in

root@ok3588:/sys/class/gpio/gpio504# cat value

0

root@ok3588:/sys/class/gpio/gpio504#

root@ok3588:/sys/class/gpio/gpio504# echo out > direction

root@ok3588:/sys/class/gpio/gpio504# echo 1 > value

root@ok3588:/sys/class/gpio/gpio504#

root@ok3588:/sys/class/gpio/gpio504# cat direction

out

root@ok3588:/sys/class/gpio/gpio504# cat value

1

root@ok3588:/sys/class/gpio/gpio504# echo 0 > value

root@ok3588:/sys/class/gpio/gpio504# cat direction

out

root@ok3588:/sys/class/gpio/gpio504# cat value

0

root@ok3588:/sys/class/gpio/gpio504#

root@ok3588:/sys/class/gpio/gpio504#

root@ok3588:/sys/class/gpio/gpio504# cd ..

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:44 export

lrwxrwxrwx 1 root root 0 Jun 26 18:44 gpio504 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio504

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# echo 503 > export

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:45 export

lrwxrwxrwx 1 root root 0 Jun 26 18:45 gpio503 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio503

lrwxrwxrwx 1 root root 0 Jun 26 18:44 gpio504 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio504

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# cd gpio503/

root@ok3588:/sys/class/gpio/gpio503# ls -l

total 0

-rw-r--r-- 1 root root 4096 Jun 26 18:45 active_low

lrwxrwxrwx 1 root root 0 Jun 26 18:45 device -> ../../../gpiochip6

-rw-r--r-- 1 root root 4096 Jun 26 18:45 direction

drwxr-xr-x 2 root root 0 Jun 26 18:45 power

lrwxrwxrwx 1 root root 0 Jun 26 18:45 subsystem -> ../../../../../../../../class/gpio

-rw-r--r-- 1 root root 4096 Jun 26 18:45 uevent

-rw-r--r-- 1 root root 4096 Jun 26 18:45 value

root@ok3588:/sys/class/gpio/gpio503#

root@ok3588:/sys/class/gpio/gpio503# echo out > direction

root@ok3588:/sys/class/gpio/gpio503# echo 1 > value

root@ok3588:/sys/class/gpio/gpio503#

root@ok3588:/sys/class/gpio/gpio503# cat direction

out

root@ok3588:/sys/class/gpio/gpio503# cat value

1

root@ok3588:/sys/class/gpio/gpio503# echo 0 >value

root@ok3588:/sys/class/gpio/gpio503# cd ..

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:45 export

lrwxrwxrwx 1 root root 0 Jun 26 18:45 gpio503 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio503

lrwxrwxrwx 1 root root 0 Jun 26 18:44 gpio504 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio504

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# echo 502 > export

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:46 export

lrwxrwxrwx 1 root root 0 Jun 26 18:46 gpio502 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio502

lrwxrwxrwx 1 root root 0 Jun 26 18:45 gpio503 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio503

lrwxrwxrwx 1 root root 0 Jun 26 18:44 gpio504 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio504

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# cd gpio502

root@ok3588:/sys/class/gpio/gpio502# ls -l

total 0

-rw-r--r-- 1 root root 4096 Jun 26 18:46 active_low

lrwxrwxrwx 1 root root 0 Jun 26 18:46 device -> ../../../gpiochip6

-rw-r--r-- 1 root root 4096 Jun 26 18:46 direction

drwxr-xr-x 2 root root 0 Jun 26 18:46 power

lrwxrwxrwx 1 root root 0 Jun 26 18:46 subsystem -> ../../../../../../../../class/gpio

-rw-r--r-- 1 root root 4096 Jun 26 18:46 uevent

-rw-r--r-- 1 root root 4096 Jun 26 18:46 value

root@ok3588:/sys/class/gpio/gpio502# cat direction

in

root@ok3588:/sys/class/gpio/gpio502# cat value

0

root@ok3588:/sys/class/gpio/gpio502# echo out > direction

root@ok3588:/sys/class/gpio/gpio502# echo 1 > value

root@ok3588:/sys/class/gpio/gpio502#

root@ok3588:/sys/class/gpio/gpio502# cat direction

out

root@ok3588:/sys/class/gpio/gpio502# cat value

1

root@ok3588:/sys/class/gpio/gpio502#

root@ok3588:/sys/class/gpio/gpio502# echo 0 > value

root@ok3588:/sys/class/gpio/gpio502# cat value

0

root@ok3588:/sys/class/gpio/gpio502# cd ..

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:46 export

lrwxrwxrwx 1 root root 0 Jun 26 18:46 gpio502 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio502

lrwxrwxrwx 1 root root 0 Jun 26 18:45 gpio503 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio503

lrwxrwxrwx 1 root root 0 Jun 26 18:44 gpio504 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio504

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# echo 501 > export

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:47 export

lrwxrwxrwx 1 root root 0 Jun 26 18:47 gpio501 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio501

lrwxrwxrwx 1 root root 0 Jun 26 18:46 gpio502 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio502

lrwxrwxrwx 1 root root 0 Jun 26 18:45 gpio503 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio503

lrwxrwxrwx 1 root root 0 Jun 26 18:44 gpio504 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio504

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio# cd gpio501/

root@ok3588:/sys/class/gpio/gpio501# ls -l

total 0

-rw-r--r-- 1 root root 4096 Jun 26 18:47 active_low

lrwxrwxrwx 1 root root 0 Jun 26 18:47 device -> ../../../gpiochip6

-rw-r--r-- 1 root root 4096 Jun 26 18:47 direction

drwxr-xr-x 2 root root 0 Jun 26 18:47 power

lrwxrwxrwx 1 root root 0 Jun 26 18:47 subsystem -> ../../../../../../../../class/gpio

-rw-r--r-- 1 root root 4096 Jun 26 18:47 uevent

-rw-r--r-- 1 root root 4096 Jun 26 18:47 value

root@ok3588:/sys/class/gpio/gpio501# cat direction

in

root@ok3588:/sys/class/gpio/gpio501# cat value

0

root@ok3588:/sys/class/gpio/gpio501#

root@ok3588:/sys/class/gpio/gpio501# echo out > direction

root@ok3588:/sys/class/gpio/gpio501# echo 1 > value

root@ok3588:/sys/class/gpio/gpio501#

root@ok3588:/sys/class/gpio/gpio501# cat direction

out

root@ok3588:/sys/class/gpio/gpio501# cat value

1

root@ok3588:/sys/class/gpio/gpio501#

root@ok3588:/sys/class/gpio/gpio501# echo 0 > value

root@ok3588:/sys/class/gpio/gpio501# cd ..

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:47 export

lrwxrwxrwx 1 root root 0 Jun 26 18:47 gpio501 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio501

lrwxrwxrwx 1 root root 0 Jun 26 18:46 gpio502 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio502

lrwxrwxrwx 1 root root 0 Jun 26 18:45 gpio503 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio503

lrwxrwxrwx 1 root root 0 Jun 26 18:44 gpio504 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio504

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# echo 498 > export

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:48 export

lrwxrwxrwx 1 root root 0 Jun 26 18:48 gpio498 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio498

lrwxrwxrwx 1 root root 0 Jun 26 18:47 gpio501 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio501

lrwxrwxrwx 1 root root 0 Jun 26 18:46 gpio502 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio502

lrwxrwxrwx 1 root root 0 Jun 26 18:45 gpio503 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio503

lrwxrwxrwx 1 root root 0 Jun 26 18:44 gpio504 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio504

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio# cd gpio498

root@ok3588:/sys/class/gpio/gpio498# ls -l

total 0

-rw-r--r-- 1 root root 4096 Jun 26 18:48 active_low

lrwxrwxrwx 1 root root 0 Jun 26 18:48 device -> ../../../gpiochip6

-rw-r--r-- 1 root root 4096 Jun 26 18:48 direction

drwxr-xr-x 2 root root 0 Jun 26 18:48 power

lrwxrwxrwx 1 root root 0 Jun 26 18:48 subsystem -> ../../../../../../../../class/gpio

-rw-r--r-- 1 root root 4096 Jun 26 18:48 uevent

-rw-r--r-- 1 root root 4096 Jun 26 18:48 value

root@ok3588:/sys/class/gpio/gpio498# cat direction

in

root@ok3588:/sys/class/gpio/gpio498# cat value

0

root@ok3588:/sys/class/gpio/gpio498#

root@ok3588:/sys/class/gpio/gpio498# echo out > direction

root@ok3588:/sys/class/gpio/gpio498# echo 1 > value

root@ok3588:/sys/class/gpio/gpio498#

root@ok3588:/sys/class/gpio/gpio498# cat direction

out

root@ok3588:/sys/class/gpio/gpio498# cat value

1

root@ok3588:/sys/class/gpio/gpio498#

root@ok3588:/sys/class/gpio/gpio498# cd ..

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:48 export

lrwxrwxrwx 1 root root 0 Jun 26 18:48 gpio498 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio498

lrwxrwxrwx 1 root root 0 Jun 26 18:47 gpio501 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio501

lrwxrwxrwx 1 root root 0 Jun 26 18:46 gpio502 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio502

lrwxrwxrwx 1 root root 0 Jun 26 18:45 gpio503 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio503

lrwxrwxrwx 1 root root 0 Jun 26 18:44 gpio504 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio504

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# echo 500 > export

root@ok3588:/sys/class/gpio#

root@ok3588:/sys/class/gpio# ls -l

total 0

--w------- 1 root root 4096 Jun 26 18:49 export

lrwxrwxrwx 1 root root 0 Jun 26 18:48 gpio498 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio498

lrwxrwxrwx 1 root root 0 Jun 26 18:49 gpio500 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio500

lrwxrwxrwx 1 root root 0 Jun 26 18:47 gpio501 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio501

lrwxrwxrwx 1 root root 0 Jun 26 18:46 gpio502 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio502

lrwxrwxrwx 1 root root 0 Jun 26 18:45 gpio503 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio503

lrwxrwxrwx 1 root root 0 Jun 26 18:44 gpio504 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio504

lrwxrwxrwx 1 root root 0 Jun 26 18:42 gpio505 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio505

lrwxrwxrwx 1 root root 0 Jun 26 18:40 gpio506 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio506

lrwxrwxrwx 1 root root 0 Jun 26 18:38 gpio507 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio507

lrwxrwxrwx 1 root root 0 Jun 26 18:32 gpio508 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpiochip6/gpio/gpio508

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip0 -> ../../devices/platform/fd8a0000.gpio/gpio/gpiochip0

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip128 -> ../../devices/platform/fec50000.gpio/gpio/gpiochip128

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip32 -> ../../devices/platform/fec20000.gpio/gpio/gpiochip32

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip485 -> ../../devices/platform/feaa0000.i2c/i2c-2/2-0023/gpio/gpiochip485

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip509 -> ../../devices/platform/feb20000.spi/spi_master/spi2/spi2.0/rk806-pinctrl.1.auto/gpio/gpiochip509

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip64 -> ../../devices/platform/fec30000.gpio/gpio/gpiochip64

lrwxrwxrwx 1 root root 0 Jun 26 18:13 gpiochip96 -> ../../devices/platform/fec40000.gpio/gpio/gpiochip96

--w------- 1 root root 4096 Jun 26 18:13 unexport

root@ok3588:/sys/class/gpio# cd gpio500/

root@ok3588:/sys/class/gpio/gpio500# ls -l

total 0

-rw-r--r-- 1 root root 4096 Jun 26 18:49 active_low

lrwxrwxrwx 1 root root 0 Jun 26 18:49 device -> ../../../gpiochip6

-rw-r--r-- 1 root root 4096 Jun 26 18:49 direction

drwxr-xr-x 2 root root 0 Jun 26 18:49 power

lrwxrwxrwx 1 root root 0 Jun 26 18:49 subsystem -> ../../../../../../../../class/gpio

-rw-r--r-- 1 root root 4096 Jun 26 18:49 uevent

-rw-r--r-- 1 root root 4096 Jun 26 18:49 value

root@ok3588:/sys/class/gpio/gpio500# cat direction

in

root@ok3588:/sys/class/gpio/gpio500# cat value

0

root@ok3588:/sys/class/gpio/gpio500#

root@ok3588:/sys/class/gpio/gpio500# echo out > direction

root@ok3588:/sys/class/gpio/gpio500# echo 1 > value

root@ok3588:/sys/class/gpio/gpio500#

root@ok3588:/sys/class/gpio/gpio500# cat direction

out

root@ok3588:/sys/class/gpio/gpio500# cat value

1

root@ok3588:/sys/class/gpio/gpio500#

root@ok3588:/sys/class/gpio/gpio500# echo 0 > value

root@ok3588:/sys/class/gpio/gpio500# cat direction

out

root@ok3588:/sys/class/gpio/gpio500# cat value

0

root@ok3588:/sys/class/gpio/gpio500#

root@ok3588:/sys/class/gpio/gpio500# echo 1 > value

root@ok3588:/sys/class/gpio/gpio500#

相关推荐
湫ccc19 分钟前
《Python基础》之字符串格式化输出
开发语言·python
mqiqe1 小时前
Python MySQL通过Binlog 获取变更记录 恢复数据
开发语言·python·mysql
AttackingLin1 小时前
2024强网杯--babyheap house of apple2解法
linux·开发语言·python
Ysjt | 深2 小时前
C++多线程编程入门教程(优质版)
java·开发语言·jvm·c++
ephemerals__2 小时前
【c++丨STL】list模拟实现(附源码)
开发语言·c++·list
码农飞飞2 小时前
深入理解Rust的模式匹配
开发语言·后端·rust·模式匹配·解构·结构体和枚举
一个小坑货2 小时前
Rust 的简介
开发语言·后端·rust
湫ccc2 小时前
《Python基础》之基本数据类型
开发语言·python