GPIO Simulator Module

modulename: gpio-sim.ko

configname: CONFIG_GPIO_SIM

Linux Kernel Configuration
└─>Device Drivers
└─>GPIO Support
└─>Virtual GPIO drivers
└─>GPIO Simulator Module
In linux kernel since version 5.2 (release Date: 2019-07-07)  
This enables the GPIO simulator - a configfs-based GPIO testing
driver.

source code:
selects
CONFIG_IRQ_SIM
CONFIG_CONFIGFS_FS

depends
CONFIG_GPIOLIB