How to switch uart pins while runtime using pinctrl (Zephyr) (nrf52832) ?

To whom it may concern,

I have a project (using Zephyr) where I need to switch UART pins while runtime. Is there a way I can handle this? This is how I initialize pinctrl pins.

I split it into two different groups. Is it possible to initialize these two groups and switch between them at runtime?

Related