GPIO Testing Driver

modulename: gpio-mockup.ko

configname: CONFIG_GPIO_MOCKUP

Linux Kernel Configuration
└─>Device Drivers
└─>GPIO Support
└─>Memory mapped GPIO drivers
└─>GPIO Testing Driver
In linux kernel since version 3.10 (release Date: 2013-06-30)  
This enables GPIO Testing driver, which provides a way to test GPIO
subsystem through sysfs(or char device) and debugfs. GPIO_SYSFS
must be selected for this test.
User could use it through the script in
tools/testing/selftests/gpio/gpio-mockup.sh. Reference the usage in
it.

source code: