I am interfacing with a part that uses the same pin, P0.6, for two purposes:
1) The pin is used for UART communication. MCU RX input.
2) The pin is used as a GPIO. MCU GPIO output.
I am using runtime power management. What I would like is that when the UART driver is in the default state then the pin is connected to the UART. When the UART driver is in the sleep state then the pin is used as a GPIO. Is this possible?
What I have right now in my dts as a (incorrect) starting point is: