From: Conor Dooley <conor@kernel.org>
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>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
Rong Zhang <i@rong.moe>, Yao Zi <me@ziyao.cc>,
Icenowy Zheng <uwu@icenowy.me>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
linux-mips@vger.kernel.org, linux-watchdog@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/4] dt-bindings: watchdog: loongson,ls1x-wdt: Add ls7a-wdt compatible
Date: Tue, 10 Nov 2026 18:58:59 +0000 [thread overview]
Message-ID: <20261110-barterer-pandemic-e4c658cac7c4@spud> (raw)
In-Reply-To: <20261110-mips-ls7a-wdt-v1-1-968bb85122e6@oss.cipunited.com>
[-- Attachment #1: Type: text/plain, Size: 2187 bytes --]
On Tue, Nov 10, 2026 at 03:02:30PM +0800, Rong Zhang wrote:
> The Loongson-7A has a watchdog, which is similar to Loongson 2K0300,
> except that it has no clock controller.
I find this hard to believe, the device seems to be getting a clock from
somewhere that the clock-frequency property is providing the rate of.
Why is that clock not represented in devicetree?
Confused,
Conor.
>
> Add "loongson,ls7a-wdt" compatible as well as a conditionally required
> field clock-frequency.
>
> Signed-off-by: Rong Zhang <rongrong@oss.cipunited.com>
> ---
> .../bindings/watchdog/loongson,ls1x-wdt.yaml | 31 +++++++++++++++++++++-
> 1 file changed, 30 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/watchdog/loongson,ls1x-wdt.yaml b/Documentation/devicetree/bindings/watchdog/loongson,ls1x-wdt.yaml
> index 50a9b468c4a3..cb93e9578f82 100644
> --- a/Documentation/devicetree/bindings/watchdog/loongson,ls1x-wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/loongson,ls1x-wdt.yaml
> @@ -18,6 +18,7 @@ properties:
> - loongson,ls1b-wdt
> - loongson,ls1c-wdt
> - loongson,ls2k0300-wdt
> + - loongson,ls7a-wdt
>
> reg:
> maxItems: 1
> @@ -25,13 +26,34 @@ properties:
> clocks:
> maxItems: 1
>
> + clock-frequency:
> + description: Frequency of clock in Hz
> +
> required:
> - compatible
> - reg
> - - clocks
>
> unevaluatedProperties: false
>
> +if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - loongson,ls7a-wdt
> +
> +then:
> + properties:
> + clocks: false
> + required:
> + - clock-frequency
> +
> +else:
> + properties:
> + clock-frequency: false
> + required:
> + - clocks
> +
> examples:
> - |
> #include <dt-bindings/clock/loongson,ls1x-clk.h>
> @@ -41,3 +63,10 @@ examples:
>
> clocks = <&clkc LS1X_CLKID_APB>;
> };
> +
> + - |
> + watchdog@100d0030 {
> + compatible = "loongson,ls7a-wdt";
> + reg = <0x100d0030 0xc>;
> + clock-frequency = <50000000>;
> + };
>
> --
> 2.55.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-11-10 18:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 7:02 [PATCH 0/4] watchdog: loongson1: Add Loongson-7A watchdog support Rong Zhang
2026-11-10 7:02 ` [PATCH 1/4] dt-bindings: watchdog: loongson,ls1x-wdt: Add ls7a-wdt compatible Rong Zhang
2026-11-10 18:58 ` Conor Dooley [this message]
2026-11-10 7:02 ` [PATCH 2/4] watchdog: loongson1: Add Loongson-7A watchdog support Rong Zhang
2026-11-10 7:47 ` Guenter Roeck
2026-11-10 7:59 ` Rong Zhang
2026-11-10 7:02 ` [PATCH 3/4] MIPS: Loongson64: Add watchdog node for LS7A PCH Rong Zhang
2026-11-10 7:02 ` [PATCH 4/4] MIPS: loongson3_defconfig: Enable LOONGSON1_WDT by default Rong Zhang
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=20261110-barterer-pandemic-e4c658cac7c4@spud \
--to=conor@kernel.org \
--cc=conor+dt@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=tsbogend@alpha.franken.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®