Hi Nikhil ,
I think it is silicon bug issue with ls1021a rev.1 board . I have ls1021a silicon Rev.2 custom board and SDK v0.4. All my lpuarts are working properly. I just have to modify the compatible in device tree and driver files. Please try it with ls1021a Rev. 2 board and SDK v0.4. Make sure to add support in device tree bindings.
Portions of my worked dts and dtsi files are given below.
---------------------------------------------------------------------------------------------
dtsi
---------------------------------------------------------------------------------------------
lpuart0: serial@2950000 {
compatible = "fsl,vf610-lpuart";
reg = <0x0 0x2950000 0x0 0x1000>;
interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&platform_clk 1>;
clock-names = "ipg";
status = "disabled";
};
lpuart1: serial@2960000 {
compatible = "fsl,vf610-lpuart";
reg = <0x0 0x2960000 0x0 0x1000>;
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&platform_clk 1>;
clock-names = "ipg";
status = "disabled";
};
----------------------------------------------------------------------------------------------
dts
----------------------------------------------------------------------------------------------
&lpuart0 {
status = "okay";
};
&lpuart1 {
status = "okay";
};
----------------------------------------------------------------------------------------------
Use the same compatible in the driver file too, which may be fsl,ls1021a-lpuart. If worked please share.