Libinput is an input stack for processes that need to provide events from commonly used input devices. That includes mice, keyboards, touchpads, touchscreens and graphics tablets.
To enable LVGL's FreeRTOS support, just set LV_USE_OS LV_OS_FREERTOS in lv_conf.h.