1. /sys/kernel/debug/gpio
可以实时反馈系统中感兴趣的gpio引脚的状态
root@g6s:/sys/kernel/debug# cat gpio
gpiochip7: GPIOs -, parent: platform/e6055800.gpio, e6055800.gpio:
gpio- ( |IPOD.Reset ) out hi gpiochip6: GPIOs -, parent: platform/e6055400.gpio, e6055400.gpio:
gpio- ( |pdn ) out hi
gpio- ( |stb ) out hi
gpio- ( |reverse detect ) in lo IRQ
gpio- ( |pwdn ) out hi
gpio- ( |USB20_VBUS0 ) out hi
gpio- ( |USB20_VBUS1 ) out hi
gpio- ( |max9281-powerdown ) out hi
gpio- ( |? ) in hi IRQ
gpio- ( |max9275-powerdown ) out hi gpiochip5: GPIOs -, parent: platform/e6055000.gpio, e6055000.gpio:
gpio- ( |GPIO Key Power Low ) in hi IRQ
gpio- ( |mcu-irq ) in hi IRQ
gpio- ( |mcu-cs ) out hi gpiochip4: GPIOs -, parent: platform/e6054000.gpio, e6054000.gpio:
gpio- ( |backlight_main ) out hi
gpio- ( |backlight_vice ) out hi gpiochip3: GPIOs -, parent: platform/e6053000.gpio, e6053000.gpio:
gpio- ( |tuner_switch ) out hi
gpio- ( |cd ) in hi IRQ
gpio- ( |BT.Reset ) out hi gpiochip2: GPIOs -, parent: platform/e6052000.gpio, e6052000.gpio:
gpio- ( |clipping ) in hi
gpio- ( |sv-watchdog ) out lo
gpio- ( |reset ) out hi gpiochip1: GPIOs -, parent: platform/e6051000.gpio, e6051000.gpio:
gpio- ( |camera lock ) in hi IRQ
gpio- ( |cs ) out hi