From: "Rong Zhang" <rongrong@oss.cipunited.com>
To: "Conor Dooley" <conor@kernel.org>
Cc: "Rong Zhang" <i@rong.moe>,
"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>,
"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: Wed, 11 Nov 2026 11:17:48 +0800 [thread overview]
Message-ID: <227eb9a3dd5c1cb1af4cfbf2c94f30db1755a5d6.camel@oss.cipunited.com> (raw)
In-Reply-To: <20261110-barterer-pandemic-e4c658cac7c4@spud>
Hi Conor,
Thanks for the review.
On Tue, 2026-11-10 at 18:58 +0000, Conor Dooley wrote:
> 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.
I must be losing my mind when I wrote this. My thought was "software
cannot control the clock" but my finger typed "no clock controller".
>
> Why is that clock not represented in devicetree?
I will add a fixed-clock node in v2.
>
> Confused,
> Conor.
Sorry for the confusion.
Thanks,
Rong
>
> >
> > 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
next prev parent reply other threads:[~2026-11-11 3:22 UTC|newest]
Thread overview: 11+ 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
2026-11-11 3:17 ` Rong Zhang [this message]
2026-11-11 17:45 ` Conor Dooley
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-11 17:43 ` Conor Dooley
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=227eb9a3dd5c1cb1af4cfbf2c94f30db1755a5d6.camel@oss.cipunited.com \
--to=rongrong@oss.cipunited.com \
--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=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®