[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240804063834.70022-3-zhenghaowei@loongson.cn>
Date: Sun, 4 Aug 2024 14:38:34 +0800
From: zhenghaowei@...ngson.cn
To: zhenghaowei@...ngson.cn,
gregkh@...uxfoundation.org,
jirislaby@...nel.org,
robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org,
chenhuacai@...nel.org,
kernel@...0n.name,
p.zabel@...gutronix.de
Cc: linux-serial@...r.kernel.org,
linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org,
loongarch@...ts.linux.dev
Subject: [PATCH v2 3/3] LoongArch: dts: Update UART driver to Loongson-2K0500, Loongson-2K1000 and Loongson-2K2000.
From: Haowei Zheng <zhenghaowei@...ngson.cn>
Change to use the Loongson UART driver by default.
Signed-off-by: Haowei Zheng <zhenghaowei@...ngson.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(-)
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@...11500 {
};
uart0: serial@...40800 {
- 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@...00c40 {
};
uart0: serial@...20000 {
- 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@...d0100 {
};
uart0: serial@...001e0 {
- 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";
};
--
2.43.0
Powered by blists - more mailing lists