Change UART pins dynamically

Hello

Is is possible to change the UART pins dynamically?
I am thinking to predefine the pins on device tree as follows:

&uart1 {
    status = "okay";
    current-speed = <115200>;
    pinctrl-0 = <&uart1_default>;
    pinctrl-1 = <&uart1_sleep>;
    pinctrl-3 = <&uart1_3_default>;
    pinctrl-4 = <&uart1_4_sleep>;
 
};
and then choose between different pinctrl on runtime.
Is this something possible? Is there any other way to achieve that functionality?
Thank you
Parents Reply Children
No Data
Related