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 4.14.326 (release Date: 2023-09-23)  
This enables the GPIO simulator - a configfs-based GPIO testing
driver.

source code:
selects
CONFIG_IRQ_SIM
CONFIG_CONFIGFS_FS

depends
CONFIG_GPIOLIB