Hi NXP team,
I referenced S32G399ardb3 and designed out custom board and use Linux BSP 35.
Our S32G3 customized board can not receive UART data from PC,but PC can received UART data from S32G3
How do we know what function PINMUX FUNC X represents in device tree?
If we enable UART2 how should PINMUX FUNC X be set?
Below is our device tree (I follow BSP 43 to modify)
uart1_pins: uart1_pins {
uart1_pins_grp0 {
pinmux = <S32CC_PINMUX(40, FUNC2)>; // PC_08
output-enable;
slew-rate = <S32CC_GPIO_SLEW_50MHZ>;
};
uart1_pins_grp1 {
pinmux = <S32CC_PINMUX(36, FUNC0)>; // PC_04
input-enable;
slew-rate = <S32CC_GPIO_SLEW_50MHZ>;
};
uart1_pins_grp2 {
pinmux = <S32CC_PINMUX(736, FUNC2)>;
};
};
&uart1 {
pinctrl-0 = <&uart1_pins>;
pinctrl-names = "default";
status = "okay";
};I use command in S32G3 to send data
echo "Test" > /dev/ttyLF1
My PC can use command to received data
cat /dev/ttyUSB1
Thanks