Dynamically change devicetree configuration for UART in firmware

Hi,

In the nRF Connect SDK, is it possible to dynamically change devicetree overlay configurations in firmware?

Say for example, UART1 is defined in the devicetree overlay as:

&uart1 {
    compatible = "nordic,nrf-uarte";
    status = "okay";
    current-speed = <115200>;
    pinctrl-0 = <&uart1_default>;
    pinctrl-1 = <&uart1_sleep>;
    pinctrl-names = "default", "sleep";
};

Would it be possible to change the baud rate and pin configuration in my firmware application code?
Thanks in advance.
Related