kernel4.4 GPIO 统一编码计算公式
本帖最后由 erain 于 2018-3-13 18:17 编辑首先查看GPIO映射关系cat /sys/kernel/debug/gpio
如GPIO7 对应216-247:则GPIO7_B3=216+('B'-'A')*8+3=227
GPIOs 0-23, platform/pinctrl, gpio0:
gpio-5 ( |GPIO Power ) inhi
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 ) inhi
GPIOs 248-263, platform/pinctrl, gpio8:
gpio-249 ( |? ) out hi
gpio-250 ( |? ) out hi
页:
[1]