mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
On chips with SOC_LP_GPIO_MATRIX_SUPPORTED (esp32p4, esp32s31), when the default IOMUX pin is used for LP UART, calling rtc_gpio_iomux_func_sel() alone only selects the IOMUX function on the pad side but does not set sig_in_sel=0 on the peripheral side. This leaves the LP UART RX input still reading from the LP GPIO Matrix (where no signal is connected), causing RX to receive nothing. Apply the same fix that was already in the HP UART driver: use rtc_gpio_iomux_input() / rtc_gpio_iomux_output() which additionally configure the peripheral to bypass the LP GPIO Matrix for IOMUX pins.