Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1215044

Re: [PATCH v2 1/2] Documentation: dt: add Broadcom BCM7038 PWM controller binding

From Florian Fainelli <fainelli@broadcom.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/2] Documentation: dt: add Broadcom BCM7038 PWM controller binding
Date 2015-08-28 03:00 +0200
Message-ID <q2gbo-4fq-5@gated-at.bofh.it> (permalink)
References <q14P0-7rq-13@gated-at.bofh.it> <q14P0-7rq-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 24/08/15 11:27, Florian Fainelli wrote:
> Add a binding documentation for the Broadcom BCM7038 PWM controller found in
> BCM7xxx chips.

Got to think about this some more, I will just remove the optional
"clocks" phandle, since the PWM block really needs a input clock to
operate, will respin a v3 with these changes shortly.

> 
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
>  .../devicetree/bindings/pwm/brcm,bcm7038-pwm.txt   | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.txt
> 
> diff --git a/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.txt b/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.txt
> new file mode 100644
> index 000000000000..8b9bc43b561e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.txt
> @@ -0,0 +1,22 @@
> +Broadcom BCM7038 PWM controller (BCM7xxx Set Top Box PWM controller)
> +
> +Required properties:
> +
> +- compatible: must be "brcm,bcm7038-pwm"
> +- reg: physical base address and length for this controller
> +- #pwm-cells: should be 2. See pwm.txt in this directory for a description
> +  of the cells format.
> +
> +Optional properties:
> +
> +- clocks: a phandle to the reference clock for this block which is fed through
> +  its internal variable clock frequency generator
> +
> +Example:
> +
> +	pwm: pwm@f0408000 {
> +		compatible = "brcm,bcm7038-pwm";
> +		reg = <0xf0408000 0x28>;
> +		#pwm-cells = <2>;
> +		clocks = <&upg_fixed>;
> +	};
> 


-- 
Florian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] pwm: Broadcom BCM7038 PWM controller (v2) Florian Fainelli <f.fainelli@gmail.com> - 2015-08-24 20:40 +0200
  [PATCH v2 1/2] Documentation: dt: add Broadcom BCM7038 PWM controller binding Florian Fainelli <f.fainelli@gmail.com> - 2015-08-24 20:40 +0200
    Re: [PATCH v2 1/2] Documentation: dt: add Broadcom BCM7038 PWM controller  binding Florian Fainelli <fainelli@broadcom.com> - 2015-08-28 03:00 +0200
  [PATCH v2 2/2] pwm: Add Broadcom BCM7038 PWM controller support Florian Fainelli <f.fainelli@gmail.com> - 2015-08-24 20:40 +0200

csiph-web