I have the following pinctrl entry in my 5.10 device tree to use the USART1 and the serial port fails, due to an incorrect pin configuration for PZ7 AF7.usart1_pins_c: usart1-2 {
pins1 {
pinmux = <STM32_PINMUX(...
I found the problem. For all the GPIOZ pin you need to specify them in the pinctrl_z DT node. Once I changed that the USART1 was detected correctly and initialized.