diff mbox series

[v2,3/3] LoongArch: dts: Update UART driver to Loongson-2K0500, Loongson-2K1000 and Loongson-2K2000.

Message ID 20240804063834.70022-3-zhenghaowei@loongson.cn
State New
Headers show
Series [v2,1/3] dt-bindings: serial: Add Loongson UART controller | expand

Commit Message

郑豪威 Aug. 4, 2024, 6:38 a.m. UTC
From: Haowei Zheng <zhenghaowei@loongson.cn>

Change to use the Loongson UART driver by default.

Signed-off-by: Haowei Zheng <zhenghaowei@loongson.cn>
---
 arch/loongarch/boot/dts/loongson-2k0500.dtsi | 6 +++++-
 arch/loongarch/boot/dts/loongson-2k1000.dtsi | 6 +++++-
 arch/loongarch/boot/dts/loongson-2k2000.dtsi | 5 ++++-
 3 files changed, 14 insertions(+), 3 deletions(-)

Comments

郑豪威 Aug. 7, 2024, 8:23 a.m. UTC | #1
在 2024/8/4 16:40, Krzysztof Kozlowski 写道:
> On 04/08/2024 08:38,zhenghaowei@loongson.cn wrote:
>> From: Haowei Zheng<zhenghaowei@loongson.cn>
>>
>> Change to use the Loongson UART driver by default.
>>
>> Signed-off-by: Haowei Zheng<zhenghaowei@loongson.cn>
> No changelog? Nothing improved?
>
> Best regards,
> Krzysztof

Sorry , I will include the update from V1 to V2 in the next patch update.

Here is the content of the update from V1 to V2:

Changes in V2:

- The compatible property for the UART is changed from "ns16650,loongson"

    to "loongson,ls7a-uart".


Best regards,

Haowei Zheng
diff mbox series

Patch

diff --git a/arch/loongarch/boot/dts/loongson-2k0500.dtsi b/arch/loongarch/boot/dts/loongson-2k0500.dtsi
index 3b38ff8853a7..aba6c0991b36 100644
--- a/arch/loongarch/boot/dts/loongson-2k0500.dtsi
+++ b/arch/loongarch/boot/dts/loongson-2k0500.dtsi
@@ -220,12 +220,16 @@  tsensor: thermal-sensor@1fe11500 {
 		};
 
 		uart0: serial@1ff40800 {
-			compatible = "ns16550a";
+			compatible = "loongson,ls7a-uart";
 			reg = <0x0 0x1ff40800 0x0 0x10>;
 			clock-frequency = <100000000>;
 			interrupt-parent = <&eiointc>;
 			interrupts = <2>;
 			no-loopback-test;
+			rts-invert;
+			dtr-invert;
+			cts-invert;
+			dsr-invert;
 			status = "disabled";
 		};
 
diff --git a/arch/loongarch/boot/dts/loongson-2k1000.dtsi b/arch/loongarch/boot/dts/loongson-2k1000.dtsi
index 92180140eb56..44c57d2e5dc2 100644
--- a/arch/loongarch/boot/dts/loongson-2k1000.dtsi
+++ b/arch/loongarch/boot/dts/loongson-2k1000.dtsi
@@ -297,12 +297,16 @@  dma-controller@1fe00c40 {
 		};
 
 		uart0: serial@1fe20000 {
-			compatible = "ns16550a";
+			compatible = "loongson,ls7a-uart";
 			reg = <0x0 0x1fe20000 0x0 0x10>;
 			clock-frequency = <125000000>;
 			interrupt-parent = <&liointc0>;
 			interrupts = <0x0 IRQ_TYPE_LEVEL_HIGH>;
 			no-loopback-test;
+			rts-invert;
+			dtr-invert;
+			cts-invert;
+			dsr-invert;
 			status = "disabled";
 		};
 
diff --git a/arch/loongarch/boot/dts/loongson-2k2000.dtsi b/arch/loongarch/boot/dts/loongson-2k2000.dtsi
index 0953c5707825..394494aaa242 100644
--- a/arch/loongarch/boot/dts/loongson-2k2000.dtsi
+++ b/arch/loongarch/boot/dts/loongson-2k2000.dtsi
@@ -174,12 +174,15 @@  rtc0: rtc@100d0100 {
 		};
 
 		uart0: serial@1fe001e0 {
-			compatible = "ns16550a";
+			compatible = "loongson,ls7a-uart";
 			reg = <0x0 0x1fe001e0 0x0 0x10>;
 			clock-frequency = <100000000>;
 			interrupt-parent = <&liointc>;
 			interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
 			no-loopback-test;
+			fractional-division;
+			rts-invert;
+			dtr-invert;
 			status = "disabled";
 		};