Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751717AbbH1Au6 (ORCPT ); Thu, 27 Aug 2015 20:50:58 -0400 Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:63996 "EHLO mail-gw1-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750962AbbH1Au4 (ORCPT ); Thu, 27 Aug 2015 20:50:56 -0400 X-IronPort-AV: E=Sophos;i="5.17,423,1437462000"; d="scan'208";a="73691814" Message-ID: <55DFAFBA.1090804@broadcom.com> Date: Thu, 27 Aug 2015 17:47:54 -0700 From: Florian Fainelli User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Florian Fainelli , CC: , , , Subject: Re: [PATCH v2 1/2] Documentation: dt: add Broadcom BCM7038 PWM controller binding References: <1440440877-10644-1-git-send-email-f.fainelli@gmail.com> <1440440877-10644-2-git-send-email-f.fainelli@gmail.com> In-Reply-To: <1440440877-10644-2-git-send-email-f.fainelli@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1807 Lines: 53 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 > --- > .../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/