NCS/Zephyr - Dynamically modifying pin's function at runtime

Hi,

What would be the best way to alter pin's functionality from UART TX ->RX->GPOUT ->GPIN in runtime? (NCS2.5/Zephyr nRF52840)

  • Is it supported by Zephyr/devicetree (this old thread says it's not, but maybe it has changed since)?
  • If such functionality is not supported, how do I modify the dt overlay to exclude these multi-function pins but keep rest of the dt functions intact?
  • What examples can I follow?

Thanks for any advice

Related