p1010 ttyS1 input/output error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

p1010 ttyS1 input/output error

2,399 Views
jungong
Contributor II

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.

0 Kudos
2 Replies

1,531 Views
alexander_yakov
NXP Employee
NXP Employee

Please look this community topic:

https://community.nxp.com/thread/387283

Hope it will be helpful


Have a great day,
Alexander
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,531 Views
jungong
Contributor II

Thank you very much!

It solves my problem.

0 Kudos