|
发表于 2020-7-14 19:15:35
14207 浏览 3 回复
MTK各个平台如何通过ADB 查看GPIO口的状态
- MT8788/MT6771平台:cat /devices/platform/1000b000.pinctrl/mt_gpio
- MT6762/MT6765平台:cat /sys/bus/platform/drivers/mediatek-mt6765-pinctrl/1000b000.pinctrl/mt_gpio
- MT6739平台:cat /sys/bus/platform/drivers/mediatek-pinctrl/1000b000.pinctrl/mt_gpio
- MT6735.MT8735.MT6737:cat /sys/devices/virtual/misc/mtgpio/pin
- 含义如下:
- PIN: (MODE)(DIR)(DOUT)(DIN)(DRIVE)(SMT)(IES)(PULL_EN)(PULL_SEL)(R1 R0)
- 000: 0001 01100
- 001: 1001 01111
- 002: 3101 01111
- 003: 0001 01111
- 004: 0001 00111
- 005: 0000 00110
- 006: 0100 00100
- 007: 0100 00100
- 008: 7001 00111
- 009: 0001 00111
- 010: 0000 00110
- 011: 0001 00111
- 012: 0000 00111
- 013: 3000 00110
- 014: 3101 00100
- 015: 3100 00100
- 016: 3100 00100
- 017: 0000 00110
复制代码
|
|
手机微信同号:13682654092
|
|
|
|
|
|
楼主|
发表于 2020-9-15 15:56:48
本帖最后由 tangh 于 2020-9-17 15:06 编辑
- echo “mode 7 1”>sys/bus/platform/drivers/mediatek-mt6765-pinctrl/1000b000.pinctrl/mt_gpio
- echo “out 7 1” >sys/bus/platform/drivers/mediatek-mt6765-pinctrl/1000b000.pinctrl/mt_gpio
- echo “dir 7 1”>sys/bus/platform/drivers/mediatek-mt6765-pinctrl/1000b000.pinctrl/mt_gpio
复制代码
|
|
手机微信同号:13682654092
|
|
|
|
|
|
Android 11 XY6765 gpio节点路径:
- /sys/devices/platform/pinctrl@1000b000/mt_gpio
- 或者
- sys/bus/platform/drivers/mt6765-pinctrl/pinctrl@1000b000
复制代码 |
|
手机微信同号:13682654092
|
|
|
|
|
|
MT6853 Android11平台mt_gpio的节点路径:
- /sys/devices/platform/pinctrl/mt_gpio
复制代码
|
|
|
|
|
|
|
登录或注册
|