[PATCH v4 5/7] MIPS: Loongson64: dts: ls7a-pch: Bind UART nodes to miscellaneous clock

From: Rong Zhang

Date: Wed Dec 02 2026 - 06:21:43 EST


The Loongson-7A's UART controllers are driven by an internal 50MHz clock
source called miscellaneous clock. The clock is nonconfigurable for
board manufacturer and software.

Therefore, the LS7A UART nodes don't need to be fixed up by
lefi_fixup_fdt_serial(), and can safely use clocks nodes rather than
clock-frequency ones.

Suggested-by: Conor Dooley <conor@xxxxxxxxxx>
Link: https://msgid.link/20261111-oboe-shack-11c3e3ce0830@spud/
Signed-off-by: Rong Zhang <rongrong@xxxxxxxxxxxxxxxxx>
---
arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
index 1369f4f65a93..7e269688743b 100644
--- a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
+++ b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
@@ -38,7 +38,7 @@ lpc: interrupt-controller@10002000 {
ls7a_uart0: serial@10080000 {
compatible = "ns16550a";
reg = <0x0 0x10080000 0x0 0x100>;
- clock-frequency = <50000000>;
+ clocks = <&pch_misc_clk>;
interrupt-parent = <&pic>;
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
no-loopback-test;
@@ -48,7 +48,7 @@ ls7a_uart1: serial@10080100 {
status = "disabled";
compatible = "ns16550a";
reg = <0x0 0x10080100 0x0 0x100>;
- clock-frequency = <50000000>;
+ clocks = <&pch_misc_clk>;
interrupt-parent = <&pic>;
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
no-loopback-test;
@@ -58,7 +58,7 @@ ls7a_uart2: serial@10080200 {
status = "disabled";
compatible = "ns16550a";
reg = <0x0 0x10080200 0x0 0x100>;
- clock-frequency = <50000000>;
+ clocks = <&pch_misc_clk>;
interrupt-parent = <&pic>;
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
no-loopback-test;
@@ -68,7 +68,7 @@ ls7a_uart3: serial@10080300 {
status = "disabled";
compatible = "ns16550a";
reg = <0x0 0x10080300 0x0 0x100>;
- clock-frequency = <50000000>;
+ clocks = <&pch_misc_clk>;
interrupt-parent = <&pic>;
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
no-loopback-test;

--
2.55.0