工具与软件:
在 Linux 控制台中:
root@j7200-evm:~# gpiodetect
gpiochip0 [1-0021] (8条线)
gpiochip1 [1-0020] (16行)
gpiochip2 [1-0022] (24线)
gpiochip3 [2-0020] (8行)
gpiochip4 [4211000.GPIO] (85行)
gpiochip5 [6000.GPIO] (69条线)
gpiochip6 [0-0048] (11行)
gpiochip7 [0-004C] (11行)
产品说明书选项中
主域 GPIO:GPIO0_0至 GPIO0_68
WKUP 域 GPIO:WKUP_GPIO0_0至 WKUP_GPIO0_84
RefManual 提到:
GPIO 组:
WKUP_GPIO0
WKUP_GPIO1
GPIO0
GPIO2
GPIO4
GPIO6
问:如何知道 GPIO 引脚属于哪个 gpiochip 和行号? 例如、我想设置 WKUP_GPIO0_11输出并将其设置为0或1、我应该如何使用 Linux 命令进行测试?
您是否有文档 描述 gpiochip 编号、行号、GPIO 域、GPIO 组和 GPIO 编号之间的关系?
谢谢