Firefly开源社区
标题:
kernel4.4 GPIO 统一编码计算公式
[打印本页]
作者:
erain
时间:
2018-3-13 18:15
标题:
kernel4.4 GPIO 统一编码计算公式
本帖最后由 erain 于 2018-3-13 18:17 编辑
首先查看GPIO映射关系 cat /sys/kernel/debug/gpio
如GPIO7 对应
216-247 :则
GPIO7_
B
3
=216+('
B
'-'A')*8+
3
=227
GPIOs 0-23, platform/pinctrl, gpio0:
gpio-5 ( |GPIO Power ) in hi
gpio-11 ( |rk3288_watchdog_rese) out hi
gpio-12 ( |vcc_otg_5v ) out hi
gpio-14 ( |vcc_host_5v ) out hi
GPIOs 24-55, platform/pinctrl, gpio1:
GPIOs 56-87, platform/pinctrl, gpio2:
GPIOs 88-119, platform/pinctrl, gpio3:
GPIOs 120-151, platform/pinctrl, gpio4:
gpio-128 ( |mdio-reset ) out hi
gpio-148 ( |reset ) out lo
GPIOs 152-183, platform/pinctrl, gpio5:
GPIOs 184-215, platform/pinctrl, gpio6:
GPIOs 216-247, platform/pinctrl, gpio7:
gpio-218 ( |vcc_lcd ) out hi
gpio-219 ( |enable ) out hi
gpio-220 ( |enable ) out lo
gpio-221 ( |? ) out lo
gpio-227 ( |vcc_sd ) out hi
gpio-237 ( |GTP_RST_PORT ) in hi
GPIOs 248-263, platform/pinctrl, gpio8:
gpio-249 ( |? ) out hi
gpio-250 ( |? ) out hi
复制代码
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1