From: maxime.ripard@free-electrons.com
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Thierry Reding <thierry.reding@gmail.com>,
linux-pwm@vger.kernel.org, linux-doc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/4] pwm: sunxi: document OF bindings
Date: Mon, 31 Mar 2014 16:46:17 +0200 [thread overview]
Message-ID: <20140331144617.GH26751@lukather> (raw)
In-Reply-To: <1396267649-18009-3-git-send-email-alexandre.belloni@free-electrons.com>
[-- Attachment #1: Type: text/plain, Size: 1597 bytes --]
On Mon, Mar 31, 2014 at 02:07:27PM +0200, Alexandre Belloni wrote:
> This is the documentation for the Allwinner Socs PWM bindings.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> ---
> Cc: devicetree@vger.kernel.org
> Documentation/devicetree/bindings/pwm/pwm-sunxi.txt | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/pwm/pwm-sunxi.txt
>
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-sunxi.txt b/Documentation/devicetree/bindings/pwm/pwm-sunxi.txt
> new file mode 100644
> index 000000000000..e295a50813af
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pwm/pwm-sunxi.txt
> @@ -0,0 +1,19 @@
> +Allwinner PWM controller
> +
> +Required properties:
> + - compatible: should be one of:
> + - "allwinner,sun4i-pwm"
> + - "allwinner,sun7i-pwm"
> + - reg: physical base address and length of the controller's registers
You also seem to need a clocks property.
> + - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
> + the cells format.
> +
> +Example:
> +
> + pwm: pwm@01c20e00 {
> + compatible = "allwinner,sun7i-pwm";
Like Emilio pointed out, the compatible pattern is <family>-<soc>-pwm,
so: sun4i-a10-pwm and sun7i-a20-pwm.
> + reg = <0x01c20e00 0xc>;
> + clocks = <&osc24M>;
> + #pwm-cells = <3>;
> + status = "disabled";
> + };
> --
> 1.8.3.2
>
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: maxime.ripard@free-electrons.com (maxime.ripard at free-electrons.com)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] pwm: sunxi: document OF bindings
Date: Mon, 31 Mar 2014 16:46:17 +0200 [thread overview]
Message-ID: <20140331144617.GH26751@lukather> (raw)
In-Reply-To: <1396267649-18009-3-git-send-email-alexandre.belloni@free-electrons.com>
On Mon, Mar 31, 2014 at 02:07:27PM +0200, Alexandre Belloni wrote:
> This is the documentation for the Allwinner Socs PWM bindings.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> ---
> Cc: devicetree at vger.kernel.org
> Documentation/devicetree/bindings/pwm/pwm-sunxi.txt | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/pwm/pwm-sunxi.txt
>
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-sunxi.txt b/Documentation/devicetree/bindings/pwm/pwm-sunxi.txt
> new file mode 100644
> index 000000000000..e295a50813af
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pwm/pwm-sunxi.txt
> @@ -0,0 +1,19 @@
> +Allwinner PWM controller
> +
> +Required properties:
> + - compatible: should be one of:
> + - "allwinner,sun4i-pwm"
> + - "allwinner,sun7i-pwm"
> + - reg: physical base address and length of the controller's registers
You also seem to need a clocks property.
> + - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
> + the cells format.
> +
> +Example:
> +
> + pwm: pwm at 01c20e00 {
> + compatible = "allwinner,sun7i-pwm";
Like Emilio pointed out, the compatible pattern is <family>-<soc>-pwm,
so: sun4i-a10-pwm and sun7i-a20-pwm.
> + reg = <0x01c20e00 0xc>;
> + clocks = <&osc24M>;
> + #pwm-cells = <3>;
> + status = "disabled";
> + };
> --
> 1.8.3.2
>
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140331/d2a3a20a/attachment.sig>
next prev parent reply other threads:[~2014-03-31 14:50 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-31 12:07 [PATCH 0/4] Add Allwinner SoCs PWM support Alexandre Belloni
2014-03-31 12:07 ` Alexandre Belloni
2014-03-31 12:07 ` [PATCH 1/4] pwm: Add Allwinner SoC support Alexandre Belloni
2014-03-31 12:07 ` Alexandre Belloni
2014-03-31 12:53 ` Emilio López
2014-03-31 12:53 ` Emilio López
2014-03-31 17:35 ` Maxime Ripard
2014-03-31 17:35 ` Maxime Ripard
2014-03-31 12:07 ` [PATCH 2/4] pwm: sunxi: document OF bindings Alexandre Belloni
2014-03-31 12:07 ` Alexandre Belloni
2014-03-31 14:46 ` maxime.ripard [this message]
2014-03-31 14:46 ` maxime.ripard at free-electrons.com
2014-03-31 12:07 ` [PATCH 3/4] ARM: sun7i: dt: add PWM support Alexandre Belloni
2014-03-31 12:07 ` Alexandre Belloni
2014-03-31 12:07 ` Alexandre Belloni
2014-03-31 14:47 ` Maxime Ripard
2014-03-31 14:47 ` Maxime Ripard
2014-03-31 12:07 ` [PATCH 4/4] ARM: sunxi: dt: Add PWM support for the cubietruck Alexandre Belloni
2014-03-31 12:07 ` Alexandre Belloni
2014-03-31 12:07 ` Alexandre Belloni
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=20140331144617.GH26751@lukather \
--to=maxime.ripard@free-electrons.com \
--cc=alexandre.belloni@free-electrons.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=thierry.reding@gmail.com \
/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.