串口0和串口1能正常工作
dts配置
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pe_pins>;
status = "okay";
};
&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pa_pins>;
status = "okay";
};
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pe_pins>;
status = "okay";
};
dtsi配置
uart0_pe_pins: uart0-pe-pins {
pins = "PE0", "PE1";
function = "uart0";
};
uart1_pa_pins: uart1-pa-pins {
pins = "PA2", "PA3";
function = "uart1";
};
uart2_pe_pins: uart2-pe-pins {
pins = "PE7", "PE8";
function = "uart2";
};
启动日志
[ 0.364037] printk: console [ttyS0] disabled
[ 0.384360] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[ 0.775548] printk: console [ttyS0] enabled
[ 0.780419] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[ 0.813538] 1c25400.serial: ttyS1 at MMIO 0x1c25400 (irq = 24, base_baud = 6250000) is a 16550A
[ 0.844140] 1c25800.serial: ttyS2 at MMIO 0x1c25800 (irq = 25, base_baud = 6250000) is a 16550A
离线
正准备换一块板子试一下
离线
硬件问题换了块歪朵拉的tiny200就没问题
离线