From: Michael Walle <michael@walle.cc>
To: Andre Przywara <andre.przywara@arm.com>
Cc: Jim Liu <jim.t90615@gmail.com>,
sr@denx.de, priyanka.jain@nxp.com, sjg@chromium.org,
samuel@sholland.org, xypron.glpk@gmx.de, JJLIU0@nuvoton.com,
rasmus.villemoes@prevas.dk, judge.packham@gmail.com,
pali@kernel.org, kettenis@openbsd.org, KWLIU@nuvoton.com,
YSCHU@nuvoton.com, sven@svenpeter.dev, u-boot@lists.denx.de
Subject: Re: [PATCH v7] wdt: nuvoton: Add support for Nuvoton
Date: Tue, 22 Mar 2022 13:03:12 +0100 [thread overview]
Message-ID: <bc1af30c8a4510f93d2f6c27455b78d0@walle.cc> (raw)
In-Reply-To: <20220322105419.57e737d5@slackpad.lan>
Am 2022-03-22 11:54, schrieb Andre Przywara:
> On Tue, 22 Mar 2022 17:19:53 +0800
> Jim Liu <jim.t90615@gmail.com> wrote:
>
> Hi,
>
>> Add watchdog controller driver for NPCM7xx/npcm8xx
>
> So this is now the same as v4, with both compatible strings listed.
> Which *might* be right, but my question still stands:
>
> Is the 845 watchdog compatible to the 740 version? Does the current
> Linux driver work?
>
> If yes (and your driver suggests so, because you treat the two
> compatible strings the same), then you would not need to list both *in
> the driver*, but just do so in the .dts file.
>
> So the driver just matches "nuvoton,npcm750-wdt" (as does the Linux
> driver), the nuvoton-common-npcm7xx.dtsi stays the same, but in the
> npcm845.dtsi you write:
> watchdog: watchdog@xxx {
> compatible = "nuvoton,npcm845-wdt",
> "nuvoton,npcm750-wdt";
> interrupts = ...
> ...
> };
>
> This way you don't need to change the (Linux) driver, and get away with
> one compatible string, for both devices.
Ahh didn't noticed that there are different compatible strings
in the linux kernel driver.
And even
> compatible = "nuvoton,npcm845-wdt",
> "nuvoton,npcm750-wdt";
would be undocumented if it is not upstreamed to linux.
> So can you please confirm that both are compatible. I couldn't find any
> information on that.
>
> Please just don't send another patch without answering the question ;-)
I'd suggest to convert the binding to yaml format so it is unambiguous
what is supported and what isn't.
-michael
next prev parent reply other threads:[~2022-03-22 12:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-22 9:19 [PATCH v7] wdt: nuvoton: Add support for Nuvoton Jim Liu
2022-03-22 10:54 ` Andre Przywara
2022-03-22 12:03 ` Michael Walle [this message]
2022-03-23 2:48 ` 劉家君
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=bc1af30c8a4510f93d2f6c27455b78d0@walle.cc \
--to=michael@walle.cc \
--cc=JJLIU0@nuvoton.com \
--cc=KWLIU@nuvoton.com \
--cc=YSCHU@nuvoton.com \
--cc=andre.przywara@arm.com \
--cc=jim.t90615@gmail.com \
--cc=judge.packham@gmail.com \
--cc=kettenis@openbsd.org \
--cc=pali@kernel.org \
--cc=priyanka.jain@nxp.com \
--cc=rasmus.villemoes@prevas.dk \
--cc=samuel@sholland.org \
--cc=sjg@chromium.org \
--cc=sr@denx.de \
--cc=sven@svenpeter.dev \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/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