cancel
Showing results for 
Search instead for 
Did you mean: 

Linux 5.10 pinctrl driver fails to configure GPIO port Z pad 7 with AF7 (USART1_TX)

MEnge.3
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
MEnge.3
Associate II

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.

View solution in original post

1 REPLY 1
MEnge.3
Associate II

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.