From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.127.231.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794567091; b=AYdSbXvE8+j2sH24CVAIgnG51fgpXDgdgoe0+YO5LdaLunuErJUxXy6QIqfvYSgx5qiq LLxHyTU4WJ76Y+ejbWWQlj2uIvz9YHIbxhQ2PmtskAHGVupXCPbRrAVPiGVJvrXWWHgxc +uO3EyPmkRkJshRd8q8apDkFUR8NJ3wkKbhufkmOzUo6JbSM64mrL8wNUogRbAeDWSxUq EyY1IHAinVIU3Wf7egds/xpGUHvmZ2AI/hOvZAkXBj4QQ7Cz1cHuuPd82cCZKyn3skNG0 mPdc0Gwye4CsMTZEU6FiabYHMvwGXP90kc2Vz+D0T1eVEYXOQO9278UmRrNyGO88aRA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794567091; h=DMARC-Filter:DKIM-Signature:From:X-Change-Id:X-Original-From: Content-Transfer-Encoding:Received:To:Date:Message-Id:X-Mailer: X-B4-Tracking:Cc:Subject:Mime-Version:Content-Type:X-Lms-Return-Path; bh=F6hgOSUU1qJlJq5eTJnjpotGytrQHMM9NPCx9pCTgCk=; b=AIXa5hgmzhY+fLUuZ3Jnk7+GcR1RIyB8Q266NzMkk21WjQo8ulY4MMXrAG0KJtbzR7re Y0ezAOoK9p4YmoYpxBjLO7jv85xd4lg1kbN0mN2QLG/UJ94idbfzT9F36km6AnS4SE9FE x6+L4jkiP1bZsyL4LLECWSIJf5Sa7AFKEN9SYaFzmSpSaUHa94oNiRCfCJQ5z7IzPMPoY IkKJ2ej1w0z9kg4RgiV8XUO56+viwI/FxBA17AjVGMC3tkc2DLGABY4jiCO8ZgxMUVuDR VpdoMhqUy0ZQEQTK9xLYVHvM4NchV9ahX9xR1/TAMxaVPYWmfIgOa2jHbS5yKYYavHQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.cipunited.com; spf=pass smtp.mailfrom=oss.cipunited.com; dkim=pass header.d=oss.cipunited.com header.i=@oss.cipunited.com header.a=rsa-sha256 header.s=feishu2303200042 header.b=hOKjxGQF; arc=none smtp.remote-ip=209.127.231.47 Received: from va-2-47.ptr.blmpb.com (va-2-47.ptr.blmpb.com [209.127.231.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB2CF60A260C for ; Fri, 13 Nov 2026 10:51:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EB2CF60A260C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.cipunited.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.cipunited.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oss.cipunited.com header.i=@oss.cipunited.com header.a=rsa-sha256 header.s=feishu2303200042 header.b=hOKjxGQF DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=feishu2303200042; d=oss.cipunited.com; t=1794567081; h=from:subject:mime-version:from:date:message-id:subject:to:cc: reply-to:content-type:mime-version:in-reply-to:message-id; bh=F6hgOSUU1qJlJq5eTJnjpotGytrQHMM9NPCx9pCTgCk=; b=hOKjxGQFV77nn71hGSvj5Y3DOPquc1aI0C2Pv8aOgwyTW4mryUWNzeSNEXfPwQeoNs7fuv Q4DCPjDLrZNFD2Hmtq6AhJ66xRmUtTD4aaONZhgRo+DLbL0ycAS0ODKuHyyIioXsa+1G4Q mXeFTzkH5yDI/iqIaJa5fsv21zIEfSpjij4FsB00MM/PDy7q8prRfGZsm48ygh5o1hEWrR CvqmWB/SOPDhpwThM3dwOqkQdFJbRILTmxjxxIMjW4suXUaPPTVNYTJQL7ssBY0c4EQrHT nen1AsLudT5Vb2Rz4dQ2OsjjgM16MGZPLh+htJlfHhHY5U6qSPdCQI6ATZZ9jg== From: "Rong Zhang" X-Change-Id: 664fad58-mips-ls7a-wdt-1e614643b33d X-Original-From: Rong Zhang Content-Transfer-Encoding: 7bit Received: from [127.0.1.1] ([171.15.157.139]) by smtp.feishu.cn with ESMTPS; Fri, 13 Nov 2026 18:51:16 +0800 To: "Keguang Zhang" , "Wim Van Sebroeck" , "Guenter Roeck" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Thomas Bogendoerfer" Date: Fri, 13 Nov 2026 18:51:07 +0800 Message-Id: <20261113-mips-ls7a-wdt-v2-0-e8abd6b2f77c@oss.cipunited.com> X-Mailer: b4 0.17-dev-ce4c1 X-B4-Tracking: v=1; b=H4sIAAAAAAAC/12NQQ6CMBBFr2K6toQpUNGV9zAsaDvIGKGkU1BDu LuAO5cvef/9WTAGQhaXwywCTsTk+xXU8SBsW/d3lORWFlrnTe2KUnY0sHzyqZYvFyWghlznmck yJ9bNELCh9967VT/m0TzQxi2yGS1x9OGzH06weUKlSgNA+teeQKbyrEtjygKUQn31zImlYewpo kus70S1LMsX+EDagMQAAAA= Cc: "Rong Zhang" , "Yao Zi" , "Icenowy Zheng" , "Jiaxun Yang" , , , , , "Rong Zhang" , "Conor Dooley" Subject: [PATCH v2 0/8] watchdog: loongson1: Add Loongson-7A watchdog support 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=UTF-8 X-Lms-Return-Path: 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 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 (8): dt-bindings: watchdog: loongson,ls1x-wdt: Add compatible for Loongson-7A 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 interrupt controllers 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 .../bindings/watchdog/loongson,ls1x-wdt.yaml | 13 ++++-- arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 50 ++++++++++++-------- arch/mips/configs/loongson3_defconfig | 54 ++++------------------ arch/mips/loongson64/env.c | 6 +++ 4 files changed, 56 insertions(+), 67 deletions(-) --- base-commit: 9d66f26fefacebfeed15de31c1123451a17ff119 change-id: 664fad58-mips-ls7a-wdt-1e614643b33d Thanks, Rong