From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <528345BF.2080207@free-electrons.com> Date: Wed, 13 Nov 2013 17:26:23 +0800 From: Alexandre Belloni MIME-Version: 1.0 Subject: Re: [PATCH v6 2/2] PWM: atmel-pwm: add device tree binding document References: <1383292811-11343-1-git-send-email-voice.shen@atmel.com> In-Reply-To: <1383292811-11343-1-git-send-email-voice.shen@atmel.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-ID: To: Bo Shen , devicetree@vger.kernel.org Cc: linux-pwm@vger.kernel.org, nicolas.ferre@atmel.com, linux-kernel@vger.kernel.org, Thierry Reding , plagnioj@jcrosoft.com, linux-arm-kernel@lists.infradead.org On 01/11/2013 16:00, Bo Shen wrote: > Add atmel pwm driver device tree binding document > > Signed-off-by: Bo Shen Acked-by: Alexandre Belloni > > --- > Changes in v6: > - New, split binding document as a separate patch > > Changes in v5: None > Changes in v4: None > Changes in v3: None > Changes in v2: None > > .../devicetree/bindings/pwm/atmel-pwm.txt | 41 ++++++++++++++++++++ > 1 file changed, 41 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/atmel-pwm.txt > > diff --git a/Documentation/devicetree/bindings/pwm/atmel-pwm.txt b/Documentation/devicetree/bindings/pwm/atmel-pwm.txt > new file mode 100644 > index 0000000..1c1a5fa > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/atmel-pwm.txt > @@ -0,0 +1,41 @@ > +Atmel PWM controller > + > +Required properties: > + - compatible: should be one of: > + - "atmel,at91sam9rl-pwm" > + - "atmel,sama5d3-pwm" > + - reg: physical base address and length of the controller's registers > + - #pwm-cells: Should be 3. See pwm.txt in this directory for a > + description of the cells format > + > +Example: > + > + pwm0: pwm@f8034000 { > + compatible = "atmel,at91sam9rl-pwm"; > + reg = <0xf8034000 0x400>; > + #pwm-cells = <3>; > + }; > + > +The following the pwm led based example: > + > + pwm0: pwm@f8034000 { > + compatible = "atmel,at91sam9rl-pwm"; > + reg = <0xf8034000 0x400>; > + #pwm-cells = <3>; > + }; > + > + pwdleds { > + compatible = "pwm-leds"; > + > + d1 { > + label = "d1"; > + pwms = <&pwm0 3 5000 0> > + max-brightness = <255>; > + }; > + > + d2 { > + label = "d2"; > + pwms = <&pwm0 1 5000 1> > + max-brightness = <255>; > + }; > + }; -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: alexandre.belloni@free-electrons.com (Alexandre Belloni) Date: Wed, 13 Nov 2013 17:26:23 +0800 Subject: [PATCH v6 2/2] PWM: atmel-pwm: add device tree binding document In-Reply-To: <1383292811-11343-1-git-send-email-voice.shen@atmel.com> References: <1383292811-11343-1-git-send-email-voice.shen@atmel.com> Message-ID: <528345BF.2080207@free-electrons.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 01/11/2013 16:00, Bo Shen wrote: > Add atmel pwm driver device tree binding document > > Signed-off-by: Bo Shen Acked-by: Alexandre Belloni > > --- > Changes in v6: > - New, split binding document as a separate patch > > Changes in v5: None > Changes in v4: None > Changes in v3: None > Changes in v2: None > > .../devicetree/bindings/pwm/atmel-pwm.txt | 41 ++++++++++++++++++++ > 1 file changed, 41 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/atmel-pwm.txt > > diff --git a/Documentation/devicetree/bindings/pwm/atmel-pwm.txt b/Documentation/devicetree/bindings/pwm/atmel-pwm.txt > new file mode 100644 > index 0000000..1c1a5fa > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/atmel-pwm.txt > @@ -0,0 +1,41 @@ > +Atmel PWM controller > + > +Required properties: > + - compatible: should be one of: > + - "atmel,at91sam9rl-pwm" > + - "atmel,sama5d3-pwm" > + - reg: physical base address and length of the controller's registers > + - #pwm-cells: Should be 3. See pwm.txt in this directory for a > + description of the cells format > + > +Example: > + > + pwm0: pwm at f8034000 { > + compatible = "atmel,at91sam9rl-pwm"; > + reg = <0xf8034000 0x400>; > + #pwm-cells = <3>; > + }; > + > +The following the pwm led based example: > + > + pwm0: pwm at f8034000 { > + compatible = "atmel,at91sam9rl-pwm"; > + reg = <0xf8034000 0x400>; > + #pwm-cells = <3>; > + }; > + > + pwdleds { > + compatible = "pwm-leds"; > + > + d1 { > + label = "d1"; > + pwms = <&pwm0 3 5000 0> > + max-brightness = <255>; > + }; > + > + d2 { > + label = "d2"; > + pwms = <&pwm0 1 5000 1> > + max-brightness = <255>; > + }; > + }; -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Belloni Subject: Re: [PATCH v6 2/2] PWM: atmel-pwm: add device tree binding document Date: Wed, 13 Nov 2013 17:26:23 +0800 Message-ID: <528345BF.2080207@free-electrons.com> References: <1383292811-11343-1-git-send-email-voice.shen@atmel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1383292811-11343-1-git-send-email-voice.shen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Bo Shen , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-pwm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Thierry Reding , plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org On 01/11/2013 16:00, Bo Shen wrote: > Add atmel pwm driver device tree binding document > > Signed-off-by: Bo Shen Acked-by: Alexandre Belloni > > --- > Changes in v6: > - New, split binding document as a separate patch > > Changes in v5: None > Changes in v4: None > Changes in v3: None > Changes in v2: None > > .../devicetree/bindings/pwm/atmel-pwm.txt | 41 ++++++++++++++++++++ > 1 file changed, 41 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/atmel-pwm.txt > > diff --git a/Documentation/devicetree/bindings/pwm/atmel-pwm.txt b/Documentation/devicetree/bindings/pwm/atmel-pwm.txt > new file mode 100644 > index 0000000..1c1a5fa > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/atmel-pwm.txt > @@ -0,0 +1,41 @@ > +Atmel PWM controller > + > +Required properties: > + - compatible: should be one of: > + - "atmel,at91sam9rl-pwm" > + - "atmel,sama5d3-pwm" > + - reg: physical base address and length of the controller's registers > + - #pwm-cells: Should be 3. See pwm.txt in this directory for a > + description of the cells format > + > +Example: > + > + pwm0: pwm@f8034000 { > + compatible = "atmel,at91sam9rl-pwm"; > + reg = <0xf8034000 0x400>; > + #pwm-cells = <3>; > + }; > + > +The following the pwm led based example: > + > + pwm0: pwm@f8034000 { > + compatible = "atmel,at91sam9rl-pwm"; > + reg = <0xf8034000 0x400>; > + #pwm-cells = <3>; > + }; > + > + pwdleds { > + compatible = "pwm-leds"; > + > + d1 { > + label = "d1"; > + pwms = <&pwm0 3 5000 0> > + max-brightness = <255>; > + }; > + > + d2 { > + label = "d2"; > + pwms = <&pwm0 1 5000 1> > + max-brightness = <255>; > + }; > + }; -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html