All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Rong Zhang <rongrong@oss.cipunited.com>
Cc: Keguang Zhang <keguang.zhang@gmail.com>,
	Wim Van Sebroeck <wim@linux-watchdog.org>,
	Guenter Roeck <linux@roeck-us.net>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Huacai Chen <chenhuacai@kernel.org>,
	Jiaxun Yang <jiaxun.yang@flygoat.com>, Rong Zhang <i@rong.moe>,
	Yao Zi <me@ziyao.cc>, Icenowy Zheng <uwu@icenowy.me>,
	linux-mips@vger.kernel.org, linux-watchdog@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Conor Dooley <conor@kernel.org>
Subject: Re: [PATCH v4 0/7] MIPS: Loongson64: Add Loongson-7A watchdog support
Date: Sat, 5 Dec 2026 10:36:48 +0100	[thread overview]
Message-ID: <axPbMOPn7XXsV4lD@alpha.franken.de> (raw)
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 <rongrong@oss.cipunited.com>
> ---
> 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 ]

      parent reply	other threads:[~2026-12-05 10:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` [PATCH v4 3/7] MIPS: Loongson64: dts: ls7a-pch: Use hex in ranges and reg properties Rong Zhang
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 ` [PATCH v4 5/7] MIPS: Loongson64: dts: ls7a-pch: Bind UART nodes to miscellaneous clock Rong Zhang
2026-12-02 11:19 ` [PATCH v4 6/7] MIPS: Loongson64: dts: ls7a-pch: Add watchdog node 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
2026-12-05  9:36 ` Thomas Bogendoerfer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axPbMOPn7XXsV4lD@alpha.franken.de \
    --to=tsbogend@alpha.franken.de \
    --cc=chenhuacai@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=conor@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=i@rong.moe \
    --cc=jiaxun.yang@flygoat.com \
    --cc=keguang.zhang@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=me@ziyao.cc \
    --cc=robh@kernel.org \
    --cc=rongrong@oss.cipunited.com \
    --cc=uwu@icenowy.me \
    --cc=wim@linux-watchdog.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.