我们定制的一个am4379板卡,项目需要使用4个串口,设计时使用了uart1、uart2、uart3、uart5;
目前uart2、uart3、uart5均可正常使用,uart1不能发送数据,接收功能不知;
dts:
uart1_pins: uart1_pins {
pinctrl-single,pins = <
0x180 (PIN_INPUT | MUX_MODE0) /* uart1_rxd.uart1_rxd */
0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
>;
};
uart2_pins: uart2_pins {
pinctrl-single,pins = <
0x10c (PIN_INPUT | MUX_MODE6) /* mii1_crs.uart2_rxd */
0x110 (PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* mii1_rx_er.uart2_txd */
>;
};
uart3_pins: uart3_pins {
pinctrl-single,pins = <
0x228 (PIN_INPUT | MUX_MODE0) /* uart3_rxd.uart3_rxd */
0x22c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_txd.uart3_txd */
>;
};
uart4_pins: uart4_pins {
pinctrl-single,pins = <
0x168 (PIN_INPUT | MUX_MODE1) /* uart0_ctsn.uart4_rxd */
0x16c (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* uart0_rtsn.uart4_txd */
>;
};
uart5_pins: uart5_pins {
pinctrl-single,pins = <
0x108 (PIN_INPUT | MUX_MODE3) /* mii1_col.uart5_rxd */
0x144 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* rmii1_refclk.uart5_txd */
>;
};
&uart1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>;
};
&uart2 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins>;
};
&uart3 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart3_pins>;
};
&uart5 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart5_pins>;
};
希望得到解答,谢谢!
yongqing wang:
查一下你用的系统终端串口是哪个,看看是不是复用了
Shine:
板子上的调试串口用的是uart几?是不是冲突了。