Hi,
We have a custom board with ls1021a processor.
Currently we need to communicate with the external serial device via lpuart interface.
We have settings for lpuart in dtsi file:
lpuart2: serial@2970000 {
compatible = "fsl,ls1021a-lpuart";
reg = <0x0 0x2970000 0x0 0x1000>;
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clockgen 4 1>;
clock-names = "ipg";
status = "disabled";
};
and added it to dts as follows.
&lpuart2 {
status = "okay";
};
Here is the RCW that is shown in the U-Boot booting log:
Reset Configuration Word (RCW):
00000000: 0608000c 00000000 00000000 00000000
00000010: 20000000 08447900 e0105a00 21046000
00000020: 00000000 00000000 00000000 000b0300
00000030: 20000000 2486b340 00000000 00000000
The problem is that currently we have "ttyLP2" under /dev directory, but we can't communicate through it.
If we try to use it with "microcom" utility we have an error:
# microcom /dev/ttyLP2
microcom: can't tcsetattr for /dev/ttyLP2: I/O error
Also:
# echo test > /dev/ttyLP2
ash: write error: I/O error
Could you advice a solution to resolve the issue?