如何查看gpio 使用状态,以及被那些模块request
mkdir /data/debug
mount -t debugfs debugfs /data/debug
255|root@msm8610_t530_ee7736:/data/debug # cat gpio
cat gpio
GPIOs 0-101, platform/fd510000.gpio, msmgpio:
gpio-0 (rmi4_reset_gpio ) out hi
gpio-1 (rmi4_irq_gpio ) in hi
gpio-6 (pw_pwr ) out lo
gpio-7 (nfc_ven ) out lo
gpio-8 (reset ) out hi
gpio-18 (FLASH_EN ) in lo
gpio-19 (FLASH_NOW ) in lo
gpio-23 (wcnss_wlan ) in lo
gpio-24 (wcnss_wlan ) in lo
gpio-25 (wcnss_wlan ) in lo
gpio-26 (wcnss_wlan ) in lo
gpio-27 (wcnss_wlan ) in lo
gpio-41 (disp_rst_n ) in hi
gpio-42 (sm_sdcc.2 cd ) in lo
gpio-56 (BD_EN ) in lo
gpio-60 (BD_UART_EN ) in lo
gpio-72 (volume_up ) in hi
gpio-74 (camera_focus ) in hi
gpio-75 (nfc_firm ) out lo
gpio-80 (ltr558 ) in hi
gpio-83 (volume_down ) in hi
gpio-96 (nfc_irq ) in lo
GPIOs 570-571, spmi/qpnp-pin-f4108a00, pm8110-mpp:
GPIOs 572-575, spmi/qpnp-pin-f4108800, pm8110-gpio:
GPIOs 576-607, platform/qcom,smp2pgpio-ssr-smp2p-4-out.25, master-kernel:
GPIOs 608-639, platform/qcom,smp2pgpio-ssr-smp2p-4-in.24, slave-kernel:
GPIOs 640-671, platform/qcom,smp2pgpio-smp2p-4-out.23, smp2p:
GPIOs 672-703, platform/qcom,smp2pgpio-smp2p-4-in.21, smp2p:
GPIOs 704-735, platform/qcom,smp2pgpio-ssr-smp2p-2-out.20, master-kernel:
GPIOs 736-767, platform/qcom,smp2pgpio-ssr-smp2p-2-in.19, slave-kernel:
GPIOs 768-799, platform/qcom,smp2pgpio-smp2p-2-out.17, smp2p:
GPIOs 800-831, platform/qcom,smp2pgpio-smp2p-2-in.15, smp2p:
GPIOs 832-863, platform/qcom,smp2pgpio-ssr-smp2p-1-out.14, master-kernel:
GPIOs 864-895, platform/qcom,smp2pgpio-ssr-smp2p-1-in.13, slave-kernel:
GPIOs 896-927, platform/qcom,smp2pgpio-smp2p-1-out.11, smp2p:
GPIOs 928-959, platform/qcom,smp2pgpio-smp2p-1-in.9, smp2p:
GPIOs 960-991, platform/qcom,smp2pgpio-smp2p-7-out.7, smp2p: