From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.175.24.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796466211; b=Ul1tKRdn7KHsNQtTR6Vzrz7fB846SPjlD5BtpkQ0MlFnd/mCJrBDyKgYhzCmfm+vi35H pt4cpkvsWF3xEzyM36VdXXVRJ/s6r2yj1hxbE+zezdXFqBZh/kQgQlff8jEMrH3ZTHAY1 pwW0QsTl4Arqo0VG5pTMGByYjzP/udSmbn6m6+cIAKtfh7Qepv1hScvCBHahjSxYAez2m 5qxdf1O30YH4WGVAgAraYpnFDAT1hCfZZuat1EThqiWSO4BZemeie3eaMTfr8i07LD7IX le6YBriPsv/+gPjVcGd9QU7pG/tVDDPjKHD/r58y5dhbYk9zpDRrelSZEDpaJ2O9OUg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796466211; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=hrOZEoWGX470rxKicCKHkfrGBvw/9+8FUAVFoCg5xXg=; b=R7xwRF7QrTuQIefyKnQaYCQSgIMF0fvQDiklmP4nmHPWb/F2/7ASNRDsEMtxg92ApV3D WiVK3hYIUBlNPJoqL5eNckK8t0zz4/zzVqJv9vji4VXz1q+7hnpa/CkKH0cL4BENaiqB6 BMitMvAajwgK1VskkjR76KQt9FPY+Z1870VSc28N8oUOZmEukgD5ZGU+UI8GqbprbB92w 0+f6Z4VfEXsd1EosJ8TtHdL9hC107Kx6Rf48Cfb8lA1Q2Sm4g0EPnyiFLT/vO+qyutkaT R43Gm/+9XDfi02NaKS4NuDxCGVwWS8Z9N+NLd4ySgRd4BPGeJ3MoSQx1ra4ijSWWHKw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.remote-ip=193.175.24.41 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B704606A330; Sat, 5 Dec 2026 10:23:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3B704606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: by elvis.franken.de (Postfix, from userid 10) id 47B7810042C; Sat, 5 Dec 2026 11:23:21 +0100 (CET) Received: by alpha.franken.de (Postfix, from userid 1000) id BA77AC097F; Sat, 5 Dec 2026 10:36:48 +0100 (CET) Date: Sat, 5 Dec 2026 10:36:48 +0100 From: Thomas Bogendoerfer To: Rong Zhang Cc: Keguang Zhang , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Huacai Chen , Jiaxun Yang , Rong Zhang , Yao Zi , Icenowy Zheng , linux-mips@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: Re: [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support Message-ID: References: <20261202-mips-ls7a-wdt-v4-0-4f98cc1fa3ec@oss.cipunited.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202-mips-ls7a-wdt-v4-0-4f98cc1fa3ec@oss.cipunited.com> On Wed, Dec 02, 2026 at 07:19:51PM +0800, 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 > --- > Changes in v4: > - pch_misc_clk: Move `compatible' on top (thanks Yao Zi) > - Link to v3: https://patch.msgid.link/20261117-mips-ls7a-wdt-v3-0-2e88f7e1d6c5@oss.cipunited.com > > Changes in v3: > - Do not add #address-cells to the lpc node (thanks Sashiko) > - Strip applied material (rebase on top of watchdog-next) > - Link to v2: https://patch.msgid.link/20261113-mips-ls7a-wdt-v2-0-e8abd6b2f77c@oss.cipunited.com > > Changes in v2: > - Add a fixed-clock node to represent the clock source for miscellaneous > peripherals instead of introducing a new clock-frequency node (thanks > Guenter Roeck, Conor Dooley) > - With the above change, "loongson,ls7a-wdt" is now compatible with > "loongson,ls2k0300-wdt" (ditto) > - Replace pre-existing clock-frequency nodes by utilizing the new > fixed-clock node (thanks Conor Dooley) > - Suppress warnings in lefi_fixup_fdt_serial() when the UART has a > clocks node > - Fix weird semi-dec-semi-hex style addresses and ranges (ditto) > - Also fix pre-existing ones, as their context (clock-frequency) is > touched by the series due to the previous change > - Rephrase commit messages (ditto) > - Add missing #address-cells to interrupt controllers, as its absence > causes a flood of warning when verifying my changes > - Link to v1: https://patch.msgid.link/20261110-mips-ls7a-wdt-v1-0-968bb85122e6@oss.cipunited.com > > --- > Rong Zhang (7): > MIPS: Loongson64: env: Don't warn if UART has clocks node when fixing up FDT > MIPS: Loongson64: dts: ls7a-pch: Add missing #address-cells to pic node > MIPS: Loongson64: dts: ls7a-pch: Use hex in ranges and reg properties > MIPS: Loongson64: dts: ls7a-pch: Add miscellaneous clock node > MIPS: Loongson64: dts: ls7a-pch: Bind UART nodes to miscellaneous clock > MIPS: Loongson64: dts: ls7a-pch: Add watchdog node > MIPS: loongson3_defconfig: Enable LOONGSON1_WDT by default > > arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 49 +++++++++++++++++----------- > arch/mips/configs/loongson3_defconfig | 54 ++++++------------------------- > arch/mips/loongson64/env.c | 6 ++++ > 3 files changed, 46 insertions(+), 63 deletions(-) > --- > base-commit: df146790ce61af674924e65a80b71a98484cfc7a > change-id: 664fad58-mips-ls7a-wdt-1e614643b33d series applied to mips-next Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]