From: ezequiel.garcia@free-electrons.com (Ezequiel Garcia)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 7/7] watchdog: orion: Update device-tree binding documentation
Date: Fri, 23 Aug 2013 09:53:12 -0300 [thread overview]
Message-ID: <20130823125311.GH2389@localhost> (raw)
In-Reply-To: <20130823100450.GA2389@localhost>
On Fri, Aug 23, 2013 at 07:04:51AM -0300, Ezequiel Garcia wrote:
> On Thu, Aug 22, 2013 at 09:26:21PM -0400, Jason Cooper wrote:
> > On Thu, Aug 22, 2013 at 11:41:58AM -0300, Ezequiel Garcia wrote:
> > > Change the 'reg' property meaning, by defining three required cells.
> > > It's important to note this commit breaks DT-compatibility for this
> > > device.
> > >
> > > Cc: devicetree at vger.kernel.org
> > > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> > > ---
> > > Documentation/devicetree/bindings/watchdog/orion-wdt.txt | 9 +++++++--
> > > 1 file changed, 7 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/Documentation/devicetree/bindings/watchdog/orion-wdt.txt b/Documentation/devicetree/bindings/watchdog/orion-wdt.txt
> > > index 5dc8d30..bb7f1a2 100644
> > > --- a/Documentation/devicetree/bindings/watchdog/orion-wdt.txt
> > > +++ b/Documentation/devicetree/bindings/watchdog/orion-wdt.txt
> > > @@ -3,7 +3,10 @@
> > > Required Properties:
> > >
> > > - Compatibility : "marvell,orion-wdt"
> > > -- reg : Address of the timer registers
> > > +- reg : Three cells are required.
> > > + First cell contains the global timer control register.
> > > + Second cell contains the watchdog counter register.
> > > + Third cell contains the RSTOUT register.
> > >
> > > Optional properties:
> > >
> > > @@ -13,7 +16,9 @@ Example:
> > >
> > > wdt at 20300 {
> > > compatible = "marvell,orion-wdt";
> > > - reg = <0x20300 0x28>;
> > > + reg = <0x20300 0x4
> > > + 0x20324 0x4
> > > + 0x20108 0x4>;
> >
> > I don't like this. It reaches outside of the wdt register. I think a
> > more clean way to do this is to do a provider/consumer relationship as
> > in reset.txt. eg, here you would retain the original reg binding, and
> > add a reset phandle.
> >
>
> Mmm... I can't see how this fits a reset-controller usage.
>
> The watchdog simply "enables" the RSTOUT bit that allows the whole SoC
> to be reset when the watchdog counter expires.
>
> The reset-controller seems to be meant to send reset signals to devices,
> which is not this case.
>
> What am I missing?
Another possible solution is to simply "enable" the RSTOUT bit for
watchdog somewhere in mach-{kirkwood,mvebu,...} at board boot-up time.
Do you think that would have any drawbacks?
--
Ezequiel Garc?a, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
next prev parent reply other threads:[~2013-08-23 12:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-22 14:41 [PATCH 0/7] Orion watchdog DT changes to support more SoCs Ezequiel Garcia
2013-08-22 14:41 ` [PATCH 1/7] watchdog: orion: Remove unneeded BRIDGE_CAUSE clear Ezequiel Garcia
2013-08-22 14:41 ` [PATCH 2/7] watchdog: orion: Make counter register a separate resource Ezequiel Garcia
2013-08-22 14:41 ` [PATCH 3/7] watchdog: orion: Make RSTOUT " Ezequiel Garcia
2013-08-22 14:41 ` [PATCH 4/7] watchdog: orion: Allow to build in any Orion platform Ezequiel Garcia
2013-08-22 14:41 ` [PATCH 5/7] ARM: kirkwood: Update watchdog 'reg' property Ezequiel Garcia
2013-08-22 14:41 ` [PATCH 6/7] watchdog: orion: Rename device-tree binding documentation Ezequiel Garcia
2013-08-22 14:41 ` [PATCH 7/7] watchdog: orion: Update " Ezequiel Garcia
2013-08-23 1:26 ` Jason Cooper
2013-08-23 10:04 ` Ezequiel Garcia
2013-08-23 12:53 ` Ezequiel Garcia [this message]
2013-08-23 12:57 ` Sebastian Hesselbarth
2013-08-23 13:07 ` Ezequiel Garcia
2013-08-26 14:00 ` Jason Cooper
2013-08-23 1:07 ` [PATCH 0/7] Orion watchdog DT changes to support more SoCs Jason Cooper
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=20130823125311.GH2389@localhost \
--to=ezequiel.garcia@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.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