* [PATCH v4 1/7] MIPS: Loongson64: env: Don't warn if UART has clocks node when fixing up FDT
2026-12-02 11:19 [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support Rong Zhang
@ 2026-12-02 11:19 ` Rong Zhang
2026-12-02 11:19 ` [PATCH v4 2/7] MIPS: Loongson64: dts: ls7a-pch: Add missing #address-cells to pic node Rong Zhang
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Rong Zhang @ 2026-12-02 11:19 UTC (permalink / raw)
To: Keguang Zhang, Wim Van Sebroeck, Guenter Roeck, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Thomas Bogendoerfer,
Huacai Chen, Jiaxun Yang
Cc: Rong Zhang, Yao Zi, Icenowy Zheng, linux-mips, linux-watchdog,
devicetree, linux-kernel, Rong Zhang
A UART with clocks node cannot (and doesn't need to) be fixed up.
The fixup is solely for the case in which the UART use a dedicated clock
source on board (say, a crystal oscillator). IOW, when a UART has a
valid clocks node, it should use an internal clock source that is either
nonconfigurable by the board manufacturer, or retrievable by software.
When fixing up FDT using UART information from LEFI, don't warn if a
UART has a valid clocks node.
Signed-off-by: Rong Zhang <rongrong@oss.cipunited.com>
---
Currently no Loongson64 platform has such UART nodes, so this is not a
fix. Later changes will convert some nodes and depends on this.
---
arch/mips/loongson64/env.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/mips/loongson64/env.c b/arch/mips/loongson64/env.c
index 7abcca7ab4ed..8135d50c777e 100644
--- a/arch/mips/loongson64/env.c
+++ b/arch/mips/loongson64/env.c
@@ -73,6 +73,12 @@ static int __init lefi_fixup_fdt_serial(void *fdt, u64 uart_addr, u32 uart_clk)
if (!reg || len <= 8 || fdt64_ld(reg) != uart_addr)
continue;
+ if (fdt_getprop(fdt, node, "clocks", &len) && len >= 4) {
+ /* The UART cannot (and doesn't need to) be fixed up. */
+ pr_devel("UART 0x%llx has clocks property\n", uart_addr);
+ return 0;
+ }
+
clk = fdt_getprop_w(fdt, node, "clock-frequency", &len);
if (!clk) {
pr_warn("UART 0x%llx misses clock-frequency property\n",
--
2.55.0
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH v4 2/7] MIPS: Loongson64: dts: ls7a-pch: Add missing #address-cells to pic node
2026-12-02 11:19 [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support Rong Zhang
2026-12-02 11:19 ` [PATCH v4 1/7] MIPS: Loongson64: env: Don't warn if UART has clocks node when fixing up FDT Rong Zhang
@ 2026-12-02 11:19 ` Rong Zhang
2026-12-02 11:19 ` [PATCH v4 3/7] MIPS: Loongson64: dts: ls7a-pch: Use hex in ranges and reg properties Rong Zhang
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Rong Zhang @ 2026-12-02 11:19 UTC (permalink / raw)
To: Keguang Zhang, Wim Van Sebroeck, Guenter Roeck, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Thomas Bogendoerfer,
Huacai Chen, Jiaxun Yang
Cc: Rong Zhang, Yao Zi, Icenowy Zheng, linux-mips, linux-watchdog,
devicetree, linux-kernel, Rong Zhang
The pic node of Loongson-7A lacks an #address-cells property, causing a
lot of dtc warnings about them falling back to 0.
Add the missing #address-cells = <0> property.
Signed-off-by: Rong Zhang <rongrong@oss.cipunited.com>
---
This series will modify ls7a-pch.dtsi here and there, so I fix the
pre-existing warnings to make me more comfortable.
---
arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
index f304f99946f1..71d4c882d3f6 100644
--- a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
+++ b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
@@ -17,6 +17,7 @@ pic: interrupt-controller@10000000 {
interrupt-parent = <&htvec>;
loongson,pic-base-vec = <0>;
#interrupt-cells = <2>;
+ #address-cells = <0>;
};
lpc: interrupt-controller@10002000 {
--
2.55.0
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH v4 3/7] MIPS: Loongson64: dts: ls7a-pch: Use hex in ranges and reg properties
2026-12-02 11:19 [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support Rong Zhang
2026-12-02 11:19 ` [PATCH v4 1/7] MIPS: Loongson64: env: Don't warn if UART has clocks node when fixing up FDT Rong Zhang
2026-12-02 11:19 ` [PATCH v4 2/7] MIPS: Loongson64: dts: ls7a-pch: Add missing #address-cells to pic node Rong Zhang
@ 2026-12-02 11:19 ` Rong Zhang
2026-12-02 11:19 ` [PATCH v4 4/7] MIPS: Loongson64: dts: ls7a-pch: Add miscellaneous clock node Rong Zhang
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Rong Zhang @ 2026-12-02 11:19 UTC (permalink / raw)
To: Keguang Zhang, Wim Van Sebroeck, Guenter Roeck, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Thomas Bogendoerfer,
Huacai Chen, Jiaxun Yang
Cc: Rong Zhang, Yao Zi, Icenowy Zheng, linux-mips, linux-watchdog,
devicetree, linux-kernel, Rong Zhang, Conor Dooley
The ls7a-pch.dtsi mixes two different styles of addresses and sizes.
Some use a all-hex style while some use a semi-dec-semi-hex style.
The latter style is confusing and hard to read, so convent all ranges
and reg properties into the former style.
Suggested-by: Conor Dooley <conor@kernel.org>
Link: https://msgid.link/20261111-unlucky-parrot-eb416eb0c794@spud
Signed-off-by: Rong Zhang <rongrong@oss.cipunited.com>
---
The following changes will replace ls7a_uart*'s clock-frequency
properties. There are reg properties with the unfavoured style around
the context, so I decided that this series should fix them as well as
other properties for address and size.
---
arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
index 71d4c882d3f6..1a0484fa2a96 100644
--- a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
+++ b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
@@ -5,14 +5,14 @@ pch: bus@10000000 {
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <2>;
- ranges = <0 0x10000000 0 0x10000000 0 0x10000000 /* PIO & CONF & APB */
- 0 0x20000000 0 0x20000000 0 0x10000000
- 0 0x40000000 0 0x40000000 0 0x40000000 /* PCI MEM */
- 0xe00 0x00000000 0xe00 0x00000000 0x100 0x0000000>;
+ ranges = < 0x0 0x10000000 0x0 0x10000000 0x0 0x10000000 /* PIO & CONF & APB */
+ 0x0 0x20000000 0x0 0x20000000 0x0 0x10000000
+ 0x0 0x40000000 0x0 0x40000000 0x0 0x40000000 /* PCI MEM */
+ 0xe00 0x00000000 0xe00 0x00000000 0x100 0x00000000>;
pic: interrupt-controller@10000000 {
compatible = "loongson,pch-pic-1.0";
- reg = <0 0x10000000 0 0x400>;
+ reg = <0x0 0x10000000 0x0 0x400>;
interrupt-controller;
interrupt-parent = <&htvec>;
loongson,pic-base-vec = <0>;
@@ -22,7 +22,7 @@ pic: interrupt-controller@10000000 {
lpc: interrupt-controller@10002000 {
compatible = "loongson,ls7a-lpc";
- reg = <0 0x10002000 0 0x1000>;
+ reg = <0x0 0x10002000 0x0 0x1000>;
interrupt-controller;
interrupt-parent = <&pic>;
interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
@@ -31,7 +31,7 @@ lpc: interrupt-controller@10002000 {
ls7a_uart0: serial@10080000 {
compatible = "ns16550a";
- reg = <0 0x10080000 0 0x100>;
+ reg = <0x0 0x10080000 0x0 0x100>;
clock-frequency = <50000000>;
interrupt-parent = <&pic>;
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
@@ -41,7 +41,7 @@ ls7a_uart0: serial@10080000 {
ls7a_uart1: serial@10080100 {
status = "disabled";
compatible = "ns16550a";
- reg = <0 0x10080100 0 0x100>;
+ reg = <0x0 0x10080100 0x0 0x100>;
clock-frequency = <50000000>;
interrupt-parent = <&pic>;
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
@@ -51,7 +51,7 @@ ls7a_uart1: serial@10080100 {
ls7a_uart2: serial@10080200 {
status = "disabled";
compatible = "ns16550a";
- reg = <0 0x10080200 0 0x100>;
+ reg = <0x0 0x10080200 0x0 0x100>;
clock-frequency = <50000000>;
interrupt-parent = <&pic>;
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
@@ -61,7 +61,7 @@ ls7a_uart2: serial@10080200 {
ls7a_uart3: serial@10080300 {
status = "disabled";
compatible = "ns16550a";
- reg = <0 0x10080300 0 0x100>;
+ reg = <0x0 0x10080300 0x0 0x100>;
clock-frequency = <50000000>;
interrupt-parent = <&pic>;
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
@@ -70,7 +70,7 @@ ls7a_uart3: serial@10080300 {
rtc0: rtc@100d0100 {
compatible = "loongson,ls7a-rtc";
- reg = <0 0x100d0100 0 0x78>;
+ reg = <0x0 0x100d0100 0x0 0x78>;
interrupt-parent = <&pic>;
interrupts = <52 IRQ_TYPE_LEVEL_HIGH>;
};
@@ -82,8 +82,8 @@ pci@1a000000 {
#size-cells = <2>;
msi-parent = <&msi>;
- reg = <0 0x1a000000 0 0x02000000>,
- <0xefe 0x00000000 0 0x20000000>;
+ reg = < 0x0 0x1a000000 0x0 0x02000000>,
+ <0xefe 0x00000000 0x0 0x20000000>;
ranges = <0x01000000 0x0 0x00020000 0x0 0x18020000 0x0 0x00020000>,
<0x02000000 0x0 0x40000000 0x0 0x40000000 0x0 0x40000000>;
@@ -478,7 +478,7 @@ isa@18000000 {
compatible = "isa";
#address-cells = <2>;
#size-cells = <1>;
- ranges = <1 0 0 0x18000000 0x20000>;
+ ranges = <0x1 0x00000000 0x0 0x18000000 0x20000>;
};
};
};
--
2.55.0
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH v4 4/7] MIPS: Loongson64: dts: ls7a-pch: Add miscellaneous clock node
2026-12-02 11:19 [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support Rong Zhang
` (2 preceding siblings ...)
2026-12-02 11:19 ` [PATCH v4 3/7] MIPS: Loongson64: dts: ls7a-pch: Use hex in ranges and reg properties Rong Zhang
@ 2026-12-02 11:19 ` Rong Zhang
2026-12-02 11:19 ` [PATCH v4 5/7] MIPS: Loongson64: dts: ls7a-pch: Bind UART nodes to miscellaneous clock Rong Zhang
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Rong Zhang @ 2026-12-02 11:19 UTC (permalink / raw)
To: Keguang Zhang, Wim Van Sebroeck, Guenter Roeck, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Thomas Bogendoerfer,
Huacai Chen, Jiaxun Yang
Cc: Rong Zhang, Yao Zi, Icenowy Zheng, linux-mips, linux-watchdog,
devicetree, linux-kernel, Rong Zhang
The Loongson-7A has an internal clock source for miscellaneous
peripherals. The clock source is nonconfigurable and has a fixed 50MHz
clock frequency.
Add a 50MHz fixed-clock node with label "pch_misc_clk" to represent it.
Reviewed-by: Yao Zi <me@ziyao.cc>
Signed-off-by: Rong Zhang <rongrong@oss.cipunited.com>
---
Changes in v4:
- Move `compatible' on top (thanks Yao Zi)
---
arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
index 1a0484fa2a96..1369f4f65a93 100644
--- a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
+++ b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
@@ -1,6 +1,12 @@
// SPDX-License-Identifier: GPL-2.0
/ {
+ pch_misc_clk: clock-50000000 {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <50000000>;
+ };
+
pch: bus@10000000 {
compatible = "simple-bus";
#address-cells = <2>;
--
2.55.0
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH v4 5/7] MIPS: Loongson64: dts: ls7a-pch: Bind UART nodes to miscellaneous clock
2026-12-02 11:19 [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support Rong Zhang
` (3 preceding siblings ...)
2026-12-02 11:19 ` [PATCH v4 4/7] MIPS: Loongson64: dts: ls7a-pch: Add miscellaneous clock node Rong Zhang
@ 2026-12-02 11:19 ` Rong Zhang
2026-12-02 11:19 ` [PATCH v4 6/7] MIPS: Loongson64: dts: ls7a-pch: Add watchdog node Rong Zhang
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Rong Zhang @ 2026-12-02 11:19 UTC (permalink / raw)
To: Keguang Zhang, Wim Van Sebroeck, Guenter Roeck, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Thomas Bogendoerfer,
Huacai Chen, Jiaxun Yang
Cc: Rong Zhang, Yao Zi, Icenowy Zheng, linux-mips, linux-watchdog,
devicetree, linux-kernel, Rong Zhang, Conor Dooley
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@kernel.org>
Link: https://msgid.link/20261111-oboe-shack-11c3e3ce0830@spud/
Signed-off-by: Rong Zhang <rongrong@oss.cipunited.com>
---
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
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH v4 6/7] MIPS: Loongson64: dts: ls7a-pch: Add watchdog node
2026-12-02 11:19 [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support Rong Zhang
` (4 preceding siblings ...)
2026-12-02 11:19 ` [PATCH v4 5/7] MIPS: Loongson64: dts: ls7a-pch: Bind UART nodes to miscellaneous clock Rong Zhang
@ 2026-12-02 11:19 ` Rong Zhang
2026-12-02 11:19 ` [PATCH v4 7/7] MIPS: loongson3_defconfig: Enable LOONGSON1_WDT by default Rong Zhang
2026-12-02 12:37 ` [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support Jiaxun Yang
7 siblings, 0 replies; 9+ messages in thread
From: Rong Zhang @ 2026-12-02 11:19 UTC (permalink / raw)
To: Keguang Zhang, Wim Van Sebroeck, Guenter Roeck, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Thomas Bogendoerfer,
Huacai Chen, Jiaxun Yang
Cc: Rong Zhang, Yao Zi, Icenowy Zheng, linux-mips, linux-watchdog,
devicetree, linux-kernel, Rong Zhang
The Loongson-7A has a watchdog compatible with the one on Loongson
2K0300.
Add a watchdog node with appropriate compatible strings to wire it up.
Tested on Loongson-LS3A4000-7A1000-NUC-SE and Lenovo KaiTian M530Z.
Signed-off-by: Rong Zhang <rongrong@oss.cipunited.com>
---
arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
index 7e269688743b..4757e8c382e5 100644
--- a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
+++ b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
@@ -74,6 +74,12 @@ ls7a_uart3: serial@10080300 {
no-loopback-test;
};
+ watchdog: watchdog@100d0030 {
+ compatible = "loongson,ls7a-wdt", "loongson,ls2k0300-wdt";
+ reg = <0x0 0x100d0030 0x0 0xc>;
+ clocks = <&pch_misc_clk>;
+ };
+
rtc0: rtc@100d0100 {
compatible = "loongson,ls7a-rtc";
reg = <0x0 0x100d0100 0x0 0x78>;
--
2.55.0
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH v4 7/7] MIPS: loongson3_defconfig: Enable LOONGSON1_WDT by default
2026-12-02 11:19 [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support Rong Zhang
` (5 preceding siblings ...)
2026-12-02 11:19 ` [PATCH v4 6/7] MIPS: Loongson64: dts: ls7a-pch: Add watchdog node Rong Zhang
@ 2026-12-02 11:19 ` Rong Zhang
2026-12-02 12:37 ` [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support Jiaxun Yang
7 siblings, 0 replies; 9+ messages in thread
From: Rong Zhang @ 2026-12-02 11:19 UTC (permalink / raw)
To: Keguang Zhang, Wim Van Sebroeck, Guenter Roeck, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Thomas Bogendoerfer,
Huacai Chen, Jiaxun Yang
Cc: Rong Zhang, Yao Zi, Icenowy Zheng, linux-mips, linux-watchdog,
devicetree, linux-kernel, Rong Zhang
The Loongson-7A has a watchdog compatible with the one on Loongson
2K0300. With the relevant node added to ls7a-pch.dtsi, enable
LOONGSON1_WDT in defconfig to make it work by default.
This basically mirrors commit 5e73ad3ffceb ("MIPS: Loongson1: Add
watchdog support for Loongson1 board") except that the driver is built
as a module, since some LOONGSON64 platforms are not LS7A-based.
The defconfig file is outdated, so this also refreshes it with
savedefconfig.
Tested on Loongson-LS3A4000-7A1000-NUC-SE and Lenovo KaiTian M530Z.
Signed-off-by: Rong Zhang <rongrong@oss.cipunited.com>
---
arch/mips/configs/loongson3_defconfig | 54 ++++++-----------------------------
1 file changed, 9 insertions(+), 45 deletions(-)
diff --git a/arch/mips/configs/loongson3_defconfig b/arch/mips/configs/loongson3_defconfig
index 12cb1a6a1360..00c591f21938 100644
--- a/arch/mips/configs/loongson3_defconfig
+++ b/arch/mips/configs/loongson3_defconfig
@@ -66,7 +66,6 @@ CONFIG_NF_CONNTRACK_SNMP=m
CONFIG_NF_TABLES=m
CONFIG_NFT_CT=m
CONFIG_NFT_NAT=m
-CONFIG_NETFILTER_XT_TARGET_CHECKSUM=m
CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m
CONFIG_NETFILTER_XT_TARGET_MARK=m
CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m
@@ -91,33 +90,11 @@ CONFIG_NF_TABLES_ARP=y
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_AH=m
CONFIG_IP_NF_MATCH_ECN=m
-CONFIG_IP_NF_MATCH_RPFILTER=m
CONFIG_IP_NF_MATCH_TTL=m
-CONFIG_IP_NF_FILTER=m
-CONFIG_IP_NF_TARGET_REJECT=m
-CONFIG_IP_NF_NAT=m
-CONFIG_IP_NF_TARGET_MASQUERADE=m
-CONFIG_IP_NF_MANGLE=m
-CONFIG_IP_NF_TARGET_ECN=m
-CONFIG_IP_NF_TARGET_TTL=m
-CONFIG_IP_NF_RAW=m
-CONFIG_IP_NF_SECURITY=m
-CONFIG_IP_NF_ARPFILTER=m
-CONFIG_IP_NF_ARP_MANGLE=m
CONFIG_NF_TABLES_IPV6=y
CONFIG_IP6_NF_IPTABLES=m
-CONFIG_IP6_NF_MATCH_RPFILTER=m
-CONFIG_IP6_NF_FILTER=m
-CONFIG_IP6_NF_TARGET_REJECT=m
-CONFIG_IP6_NF_MANGLE=m
-CONFIG_IP6_NF_RAW=m
-CONFIG_IP6_NF_SECURITY=m
-CONFIG_IP6_NF_NAT=m
-CONFIG_IP6_NF_TARGET_MASQUERADE=m
CONFIG_NF_TABLES_BRIDGE=m
CONFIG_BRIDGE_NF_EBTABLES=m
-CONFIG_BRIDGE_EBT_T_FILTER=m
-CONFIG_BRIDGE_EBT_T_NAT=m
CONFIG_IP_SCTP=m
CONFIG_L2TP=m
CONFIG_BRIDGE=m
@@ -189,7 +166,6 @@ CONFIG_VIRTIO_NET=m
# CONFIG_NET_VENDOR_ATHEROS is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
# CONFIG_NET_VENDOR_CHELSIO is not set
-# CONFIG_NET_VENDOR_CIRRUS is not set
# CONFIG_NET_VENDOR_CISCO is not set
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not set
@@ -250,9 +226,9 @@ CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=16
CONFIG_SERIAL_8250_EXTENDED=y
-CONFIG_SERIAL_8250_MANY_PORTS=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_RSA=y
+CONFIG_SERIAL_8250_MANY_PORTS=y
CONFIG_SERIAL_OF_PLATFORM=y
CONFIG_SERIAL_NONSTANDARD=y
CONFIG_VIRTIO_CONSOLE=y
@@ -263,11 +239,14 @@ CONFIG_GPIO_LOONGSON=y
CONFIG_SENSORS_LM75=m
CONFIG_SENSORS_LM93=m
CONFIG_SENSORS_W83627HF=m
+CONFIG_WATCHDOG=y
+CONFIG_WATCHDOG_NOWAYOUT=y
+CONFIG_WATCHDOG_SYSFS=y
+CONFIG_LOONGSON1_WDT=m
CONFIG_MEDIA_SUPPORT=m
CONFIG_MEDIA_USB_SUPPORT=y
CONFIG_USB_VIDEO_CLASS=m
CONFIG_DRM=y
-CONFIG_DRM_RADEON=m
CONFIG_DRM_AMDGPU=m
CONFIG_DRM_AMDGPU_SI=y
CONFIG_DRM_AMDGPU_CIK=y
@@ -276,6 +255,7 @@ CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC_SI=y
CONFIG_DRM_AST=m
CONFIG_DRM_QXL=y
+CONFIG_DRM_RADEON=m
CONFIG_DRM_VIRTIO_GPU=y
CONFIG_FB=y
CONFIG_FB_RADEON=y
@@ -288,27 +268,12 @@ CONFIG_SND=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
# CONFIG_SND_ISA is not set
-CONFIG_SND_HDA_INTEL=m
CONFIG_SND_HDA_PATCH_LOADER=y
-CONFIG_SND_HDA_CODEC_REALTEK=m
-CONFIG_SND_HDA_CODEC_REALTEK_LIB=m
-CONFIG_SND_HDA_CODEC_ALC260=m
-CONFIG_SND_HDA_CODEC_ALC262=m
-CONFIG_SND_HDA_CODEC_ALC268=m
-CONFIG_SND_HDA_CODEC_ALC269=m
-CONFIG_SND_HDA_CODEC_ALC662=m
-CONFIG_SND_HDA_CODEC_ALC680=m
-CONFIG_SND_HDA_CODEC_ALC861=m
-CONFIG_SND_HDA_CODEC_ALC861VD=m
-CONFIG_SND_HDA_CODEC_ALC880=m
-CONFIG_SND_HDA_CODEC_ALC882=m
+CONFIG_SND_HDA_INTEL=m
CONFIG_SND_HDA_CODEC_SIGMATEL=m
-CONFIG_SND_HDA_CODEC_HDMI=m
-CONFIG_SND_HDA_CODEC_HDMI_GENERIC=m
-CONFIG_SND_HDA_CODEC_HDMI_INTEL=m
-CONFIG_SND_HDA_CODEC_HDMI_ATI=m
-CONFIG_SND_HDA_CODEC_HDMI_NVIDIA=m
CONFIG_SND_HDA_CODEC_CONEXANT=m
+CONFIG_SND_HDA_CODEC_REALTEK=m
+CONFIG_SND_HDA_CODEC_HDMI=m
# CONFIG_SND_USB is not set
CONFIG_HIDRAW=y
CONFIG_HID_A4TECH=m
@@ -406,7 +371,6 @@ CONFIG_PRINTK_TIME=y
CONFIG_STRIP_ASM_SYMS=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_FS=y
-# CONFIG_SCHED_DEBUG is not set
CONFIG_FUNCTION_TRACER=y
CONFIG_FTRACE_SYSCALLS=y
CONFIG_CMDLINE_BOOL=y
--
2.55.0
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support
2026-12-02 11:19 [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support Rong Zhang
` (6 preceding siblings ...)
2026-12-02 11:19 ` [PATCH v4 7/7] MIPS: loongson3_defconfig: Enable LOONGSON1_WDT by default Rong Zhang
@ 2026-12-02 12:37 ` Jiaxun Yang
7 siblings, 0 replies; 9+ messages in thread
From: Jiaxun Yang @ 2026-12-02 12:37 UTC (permalink / raw)
To: Rong Zhang, Kelvin Cheung, Wim Van Sebroeck, Guenter Roeck,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Thomas Bogendoerfer, Huacai Chen
Cc: Rong Zhang, Yao Zi, Icenowy Zheng, linux-mips, linux-watchdog,
devicetree, linux-kernel, Conor Dooley
On Wed, 2 Dec 2026, at 11:19 AM, Rong Zhang wrote:
> The Loongson-7A has a watchdog compatible with the one on Loongson
> 2K0300. It uses an internal 50MHz clock source of the PCH, which is also
> shared among other miscellaneous peripherals in the PCH.
>
> Add a 50MHz fixed-clock node with label "pch_misc_clk" to represent the
> miscellaneous clock, and migrate existing miscellaneous peripherals
> (namely, ls7a_uart*) to use it rather than clock-frequency.
>
> With that, add "loongson,ls7a-wdt" compatible to dt-bindings and the
> corresponding watchdog node to ls7a-pch.dtsi. Afterward, enable
> LOONGSON1_WDT in defconfig to make it work by default.
>
> Tested on Loongson-LS3A4000-7A1000-NUC-SE and Lenovo KaiTian M530Z.
>
> Since the series modifies ls7a-pch.dtsi here and there, it also fixes
> the weird semi-dec-semi-hex style in ranges and reg properties and add
> the missing #address-cells = <0> properties to interrupt-controller
> nodes.
>
> Signed-off-by: Rong Zhang <rongrong@oss.cipunited.com>
For the whole series:
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Thanks a lot for your effort!
[...]
--
- Jiaxun
^ permalink raw reply [flat|nested] 9+ messages in thread