HI to all, please help me!
ttyS0 and ttyS1 both used duart1 of p1010.
/dev/ttyS0 and /dev/ttyS1 can open success both, ttyS0 all is ok, but ttyS1 log input/output error when call tcgetattr().
The kernel message about serial in startup as following:
/////////////////////////////////////////
Serial 825016550 driver, 2 ports, IRQ sharing enabled
serial8250.0 ttyS0 at MMIO 0xffe04500 (irq = 42, base_baud = 25000000) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
//////////////////////////////////////////
As above showing, there is no about ttyS1 message,but this two uart is configured in dts, as following:
///////////////////////////////////////////////////
serial0:
serial@4500 {
cell-index = <0>;
device_type = "serial";
compatible = "fsl,ns16550", "ns16550";
reg = <0x4500 0x100>;
clock-frequency = <0>;
interrupts = <42 2 0 0>;
};
serial1: serial@4600 {
cell-index = <1>;
device_type = "serial";
compatible = "fsl,ns16550", "ns16550";
reg = <0x4600 0x100>;
clock-frequency = <0>;
interrupts = <42 2 0 0>;
};
///////////////////////////////////////////////
There is more as following:
///////////////////////////////////////////
root@p1010rdb-pb:/proc/tty/driver# cat serial
serinfo:1.0 driver revision:
0: uart:16550A mmio:0xFFE04500 irq:42 tx:1779 rx:236 RTS|DTR
1: uart:unknown port:00000000 irq:0
//////////////////////////////////////////////////////
Why no message about ttyS1? Why ttyS1 can not use?
Please help me !
Thanks.