[Xiaomi Mi 4C] KopiJahe:
recovery:

cat: can't open '/sys/kernel/debug/gpio': No such file or directory

android (cm13):

GPIOs 543-574, platform/qcom,smp2pgpio-ssr-smp2p-1-out.16, master-kernel:

GPIOs 575-606, platform/qcom,smp2pgpio-ssr-smp2p-1-in.15, slave-kernel:

GPIOs 607-638, platform/qcom,smp2pgpio-ssr-smp2p-2-out.14, master-kernel:

GPIOs 639-670, platform/qcom,smp2pgpio-ssr-smp2p-2-in.13, slave-kernel:

GPIOs 671-702, platform/qcom,smp2pgpio-smp2p-2-out.11, smp2p:

GPIOs 703-734, platform/qcom,smp2pgpio-smp2p-2-in.9, smp2p:

GPIOs 735-766, platform/qcom,smp2pgpio-smp2p-1-out.7, smp2p:

GPIOs 767-798, platform/qcom,smp2pgpio-smp2p-1-in.5, smp2p:

GPIOs 799-830, platform/qcom,smp2pgpio-smp2p-7-out.3, smp2p:

GPIOs 831-862, platform/qcom,smp2pgpio-smp2p-7-in.1, smp2p:

GPIOs 863-863, spmi/qpnp-pin-ffffffc0c4a4ec00, pmi8994-mpp:

GPIOs 864-864, spmi/qpnp-pin-ffffffc0c4a4e800, pmi8994-gpio:
gpio-864 (usb_otg_vreg ) out lo

GPIOs 865-866, spmi/qpnp-pin-ffffffc0c4a4ac00, pm8994-mpp:

GPIOs 867-877, spmi/qpnp-pin-ffffffc0c4a4a800, pm8994-gpio:
gpio-867 (tp1v8_vreg ) out hi
gpio-868 (volume_up ) in hi
gpio-872 (f98a4900.sdhci cd ) in hi
gpio-873 (bt_vreg ) out hi
gpio-875 (TOMTOM_CODEC_PMIC_MC) in lo
gpio-877 (bt_sys_rst_n ) out hi

GPIOs 878-1023, platform/fd510000.pinctrl, msm_tlmm_gpio:
gpio-887 (silabs_fm_int_n ) in lo
gpio-889 (silabs_fm_stat_n ) in lo
gpio-899 (vibrator_en ) in lo
gpio-912 (lid_back ) in hi
gpio-913 (perst-gpio ) out hi
gpio-915 (wake-gpio ) in hi
gpio-920 (st_hub_gpio_wakeup ) out lo
gpio-931 (wlan-bootstrap-gpio ) out hi
gpio-932 (wlan-bootstrap-gpio ) out hi
gpio-935 (vibrator_vreg ) out hi
gpio-938 (mxt_reset_gpio ) out hi
gpio-939 (mxt_irq_gpio ) in hi
gpio-940 (fm_rst_gpio_n ) in lo
gpio-946 (CDC_RESET ) out hi
gpio-952 (st_hub_gpio_reset ) out hi
gpio-973 (lid_front ) in hi
gpio-974 (tpwdn_vreg ) out hi
gpio-988 (ts_vreg ) out hi
gpio-990 (wlan-bootstrap-gpio ) out hi
gpio-991 (wlan-en-gpio ) out hi
gpio-993 (fpc,gpio_irq ) in hi
gpio-994 (fpc,gpio_rst ) in hi

for comparison, here it is on cm13 without sdcard attached:

GPIOs 543-574, platform/qcom,smp2pgpio-ssr-smp2p-1-out.16, master-kernel:

GPIOs 575-606, platform/qcom,smp2pgpio-ssr-smp2p-1-in.15, slave-kernel:

GPIOs 607-638, platform/qcom,smp2pgpio-ssr-smp2p-2-out.14, master-kernel:

GPIOs 639-670, platform/qcom,smp2pgpio-ssr-smp2p-2-in.13, slave-kernel:

GPIOs 671-702, platform/qcom,smp2pgpio-smp2p-2-out.11, smp2p:

GPIOs 703-734, platform/qcom,smp2pgpio-smp2p-2-in.9, smp2p:

GPIOs 735-766, platform/qcom,smp2pgpio-smp2p-1-out.7, smp2p:

GPIOs 767-798, platform/qcom,smp2pgpio-smp2p-1-in.5, smp2p:

GPIOs 799-830, platform/qcom,smp2pgpio-smp2p-7-out.3, smp2p:

GPIOs 831-862, platform/qcom,smp2pgpio-smp2p-7-in.1, smp2p:

GPIOs 863-863, spmi/qpnp-pin-ffffffc0c4a4ec00, pmi8994-mpp:

GPIOs 864-864, spmi/qpnp-pin-ffffffc0c4a4e800, pmi8994-gpio:
gpio-864 (usb_otg_vreg ) out lo

GPIOs 865-866, spmi/qpnp-pin-ffffffc0c4a4ac00, pm8994-mpp:

GPIOs 867-877, spmi/qpnp-pin-ffffffc0c4a4a800, pm8994-gpio:
gpio-867 (tp1v8_vreg ) out hi
gpio-868 (volume_up ) in hi
gpio-872 (f98a4900.sdhci cd ) in hi
gpio-873 (bt_vreg ) out hi
gpio-875 (TOMTOM_CODEC_PMIC_MC) in lo
gpio-877 (bt_sys_rst_n ) out hi

GPIOs 878-1023, platform/fd510000.pinctrl, msm_tlmm_gpio:
gpio-887 (silabs_fm_int_n ) in lo
gpio-889 (silabs_fm_stat_n ) in lo
gpio-899 (vibrator_en ) in lo
gpio-912 (lid_back ) in hi
gpio-913 (perst-gpio ) out hi
gpio-915 (wake-gpio ) in hi
gpio-920 (st_hub_gpio_wakeup ) out lo
gpio-931 (wlan-bootstrap-gpio ) out hi
gpio-932 (wlan-bootstrap-gpio ) out hi
gpio-935 (vibrator_vreg ) out hi
gpio-938 (mxt_reset_gpio ) out hi
gpio-939 (mxt_irq_gpio ) in hi
gpio-940 (fm_rst_gpio_n ) in lo
gpio-946 (CDC_RESET ) out hi
gpio-952 (st_hub_gpio_reset ) out hi
gpio-956 (disp_rst_n ) in hi
gpio-973 (lid_front ) in hi
gpio-974 (tpwdn_vreg ) out hi
gpio-988 (ts_vreg ) out hi
gpio-990 (wlan-bootstrap-gpio ) out hi
gpio-991 (wlan-en-gpio ) out hi
gpio-993 (fpc,gpio_irq ) in hi
gpio-994 (fpc,gpio_rst ) in hi