This function seems to be present in RK805 only (that is, not in RK808).
Rock64 uses those pins to control the on-board LEDs.
Caveat: led(9) uses the mutex to protect its state and the mutex is held
when modifying a led state. This driver uses the sx lock in gpio calls.
rk_i2c sleeps in I2C transfers. Both do not play well with the mutex.
The solution is to modify the led driver to use a sleepable lock to allow
for various LED communication mechanisms (I2C, USB, etc).
That would not be a straightforward change as the lock is used in
a callout.