2022-03-18 10:09 AM
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('Z', 7, AF7)>, /* USART1_TX */
<STM32_PINMUX('A', 12, AF7)>; /* USART1_RTS */
bias-disable;
drive-push-pull;
slew-rate = <0>;
};
pins2 {
pinmux = <STM32_PINMUX('Z', 1, AF7)>, /* USART1_RX */
<STM32_PINMUX('A', 11, AF7)>; /* USART1_CTS_NSS */
bias-pull-up;
};
};
Does anybody know why this is happening?
Does the PZ7 require any specific setup to be used as USART1_TX?
Best regards,
--
Mike
Solved! Go to Solution.
2022-03-23 03:15 AM
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.
2022-03-23 03:15 AM
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.