Hello.
I need to interface iMX8MP with TLC5973 for controlling RGB led. I am planning to use libgpiod library to bit-bang the gpio. But I am really skeptical regarding obtaining the desired minimum frequency of 300kHz. Since libgpiod is a user-space library, numerous layers of delays may be involved in between. One alternative I can think of is kernel-space driver but again, handling the task-preemption might be next issue.
Here is a snapshot from TLC5973's datasheet where the information regarding frequency is provided. You may refer to the attached datasheet for further information.

Also, here is a post about the frequency limitation of libgpiod:

I am looking for suggestions that I can implement to obtain the desired frequency. Also, if it is not possible, what are my possible alternatives to control RGB led through a single gpio pin?
TLC5973 datasheet
RGB Led Datasheet