All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Jonas Jensen <jonas.jensen@gmail.com>
Cc: linux-watchdog@vger.kernel.org, wim@iguana.be,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, arm@kernel.org, linux@roeck-us.net
Subject: Re: [PATCH v4] watchdog: Add MOXA ART watchdog driver
Date: Sat, 20 Jul 2013 18:40:52 +0200	[thread overview]
Message-ID: <201307201840.52455.arnd@arndb.de> (raw)
In-Reply-To: <1374229402-20432-1-git-send-email-jonas.jensen@gmail.com>

On Friday 19 July 2013, Jonas Jensen wrote:
> diff --git a/Documentation/devicetree/bindings/watchdog/moxa,moxart-watchdog.txt b/Documentation/devicetree/bindings/watchdog/moxa,moxart-watchdog.txt
> new file mode 100644
> index 0000000..5507f2b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/watchdog/moxa,moxart-watchdog.txt
> @@ -0,0 +1,15 @@
> +MOXA ART Watchdog timer
> +
> +Required properties:
> +
> +- compatible : Should be "moxa,moxart-watchdog"
> +- reg : Should contain registers location and length
> +- clocks : Should contain phandle for the MOXA ART core clock "coreclk"
> +
> +Example:
> +
> +       watchdog: watchdog@98500000 {
> +               compatible = "moxa,moxart-watchdog";
> +               reg = <0x98500000 0x10>;
> +               clocks = <&coreclk>;
> +       };

I think the property descriptions need to be clarified here:

* I think "should" makes no sense for the "compatible" property since it is
  required here, you probably mean "must", see http://www.ietf.org/rfc/rfc2119.txt. 

* for the clock, make sure that the description is from the point of view of
  the device you are describing, not from the perspective of the clock controller.
  The device should not make any assumptions about who provides a clock, only
  what it is used for, and it sounds like "coreclk" is an SoC-wide identifier,
  not the name of the clock input of the watchdog device. This is not as important
  as you don't define a "clock-names" property here, butsomething to keep in
  mind anyway.

	Arnd

WARNING: multiple messages have this Message-ID (diff)
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4] watchdog: Add MOXA ART watchdog driver
Date: Sat, 20 Jul 2013 18:40:52 +0200	[thread overview]
Message-ID: <201307201840.52455.arnd@arndb.de> (raw)
In-Reply-To: <1374229402-20432-1-git-send-email-jonas.jensen@gmail.com>

On Friday 19 July 2013, Jonas Jensen wrote:
> diff --git a/Documentation/devicetree/bindings/watchdog/moxa,moxart-watchdog.txt b/Documentation/devicetree/bindings/watchdog/moxa,moxart-watchdog.txt
> new file mode 100644
> index 0000000..5507f2b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/watchdog/moxa,moxart-watchdog.txt
> @@ -0,0 +1,15 @@
> +MOXA ART Watchdog timer
> +
> +Required properties:
> +
> +- compatible : Should be "moxa,moxart-watchdog"
> +- reg : Should contain registers location and length
> +- clocks : Should contain phandle for the MOXA ART core clock "coreclk"
> +
> +Example:
> +
> +       watchdog: watchdog at 98500000 {
> +               compatible = "moxa,moxart-watchdog";
> +               reg = <0x98500000 0x10>;
> +               clocks = <&coreclk>;
> +       };

I think the property descriptions need to be clarified here:

* I think "should" makes no sense for the "compatible" property since it is
  required here, you probably mean "must", see http://www.ietf.org/rfc/rfc2119.txt. 

* for the clock, make sure that the description is from the point of view of
  the device you are describing, not from the perspective of the clock controller.
  The device should not make any assumptions about who provides a clock, only
  what it is used for, and it sounds like "coreclk" is an SoC-wide identifier,
  not the name of the clock input of the watchdog device. This is not as important
  as you don't define a "clock-names" property here, butsomething to keep in
  mind anyway.

	Arnd

  reply	other threads:[~2013-07-20 16:40 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-11 12:29 [PATCH] watchdog: Add MOXA ART watchdog driver Jonas Jensen
2013-07-11 12:29 ` Jonas Jensen
2013-07-11 16:35 ` Guenter Roeck
2013-07-11 16:35   ` Guenter Roeck
2013-07-16 13:24 ` [PATCH v2] " Jonas Jensen
2013-07-16 13:24   ` Jonas Jensen
2013-07-17  9:24   ` [PATCH v3] " Jonas Jensen
2013-07-17  9:24     ` Jonas Jensen
2013-07-18 23:05     ` Guenter Roeck
2013-07-18 23:05       ` Guenter Roeck
2013-07-19 10:23     ` [PATCH v4] " Jonas Jensen
2013-07-19 10:23       ` Jonas Jensen
2013-07-20 16:40       ` Arnd Bergmann [this message]
2013-07-20 16:40         ` Arnd Bergmann
2013-07-21  7:33       ` Guenter Roeck
2013-07-21  7:33         ` Guenter Roeck
2013-07-29 10:20       ` [PATCH v5] " Jonas Jensen
2013-07-29 10:20         ` Jonas Jensen
2013-07-29 11:05         ` Guenter Roeck
2013-07-29 11:05           ` Guenter Roeck
2013-07-29 11:41         ` [PATCH v6] " Jonas Jensen
2013-07-29 11:41           ` Jonas Jensen
2013-07-29 11:57           ` Guenter Roeck
2013-07-29 11:57             ` Guenter Roeck
2013-07-29 12:33           ` [PATCH v7] " Jonas Jensen
2013-07-29 12:33             ` Jonas Jensen
2013-07-29 22:18             ` Guenter Roeck
2013-07-29 22:18               ` Guenter Roeck
2013-08-02 11:41             ` Mark Rutland
2013-08-02 11:41               ` Mark Rutland
2013-08-02 14:55               ` Jonas Jensen
2013-08-02 14:55                 ` Jonas Jensen
2013-08-02 16:39               ` Guenter Roeck
2013-08-02 16:39                 ` Guenter Roeck
2013-08-05 10:12                 ` Mark Rutland
2013-08-05 10:12                   ` Mark Rutland
2013-08-02 14:40             ` [PATCH v8] " Jonas Jensen
2013-08-02 14:40               ` Jonas Jensen
2013-08-02 23:58               ` Guenter Roeck
2013-08-02 23:58                 ` Guenter Roeck
2013-10-26 15:18               ` Wim Van Sebroeck

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=201307201840.52455.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=arm@kernel.org \
    --cc=jonas.jensen@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=wim@iguana.be \
    /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.