2023-03-09 09:41 AM
We want to change default uart from UART4 to UART8,
from:
aliases {
ethernet0 = ðernet0;
serial0 = &uart4;
....
};
we changed
serial0 = &uart8;
and implement uart8 as below:
&uart8 {
pinctrl-names = "default", "sleep", "idle";
pinctrl-0 = <&uart8_pins_a>;
pinctrl-1 = <&uart8_sleep_pins_a>;
pinctrl-2 = <&uart8_idle_pins_a>;
status = "okay";
};
uart8_pins_a: uart8-0 {
pins1 {
pinmux = <STM32_PINMUX('E', 1, AF8)>; /* UART8_TX */
bias-disable;
drive-push-pull;
slew-rate = <0>;
};
pins2 {
pinmux = <STM32_PINMUX('E', 0, AF8)>; /* UART8_RX */
bias-disable;
};
};
uart8_idle_pins_a: uart8-1 {
pins1 {
pinmux = <STM32_PINMUX('E', 1, ANALOG)>; /* UART8_TX */
};
pins2 {
pinmux = <STM32_PINMUX('E', 0, AF8)>; /* UART8_RX */
bias-disable;
};
};
uart8_sleep_pins_a: uart8-2 {
pins {
pinmux = <STM32_PINMUX('E', 1, ANALOG)>, /* UART8_TX */
<STM32_PINMUX('E', 0, ANALOG)>; /* UART8_RX */
};
};
Is there anything else we should take a look, please?
2023-03-17 08:41 AM
Hi Dat Tran (Community Member)
After changing the pin-muxing, you need to enable the UART8 status=okay in the DT board config for all the BSP DT (TF-A/U-boot/OP-TEE) and Kernel DT.