Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752872AbbLDOaq (ORCPT ); Fri, 4 Dec 2015 09:30:46 -0500 Received: from mail.kernel.org ([198.145.29.136]:46722 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751599AbbLDOao (ORCPT ); Fri, 4 Dec 2015 09:30:44 -0500 Date: Fri, 4 Dec 2015 08:30:37 -0600 From: Rob Herring To: Simon Arlott Cc: Michael Turquette , Stephen Boyd , Kevin Cernekee , Florian Fainelli , "devicetree@vger.kernel.org" , Linux Kernel Mailing List , linux-clk@vger.kernel.org, linux-mips@linux-mips.org, Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Subject: Re: [PATCH 1/2] clk: Add brcm,bcm63xx-gate-clk device tree binding Message-ID: <20151204143037.GA3667@rob-hp-laptop> References: <565CB727.7030209@simon.arlott.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <565CB727.7030209@simon.arlott.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2065 Lines: 51 On Mon, Nov 30, 2015 at 08:52:55PM +0000, Simon Arlott wrote: > Add device tree binding for the BCM63xx's gated clocks. > > The BCM63xx contains clocks gated with a register. Clocks are indexed > by bits in the register and are active high. Clock gate bits are > interleaved with other status bits and configurable clocks in the same > register. > > Signed-off-by: Simon Arlott > --- > .../bindings/clock/brcm,bcm63xx-gate-clk.txt | 58 ++++++++++++++++++++++ > 1 file changed, 58 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/brcm,bcm63xx-gate-clk.txt > > diff --git a/Documentation/devicetree/bindings/clock/brcm,bcm63xx-gate-clk.txt b/Documentation/devicetree/bindings/clock/brcm,bcm63xx-gate-clk.txt > new file mode 100644 > index 0000000..3f4ead1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/brcm,bcm63xx-gate-clk.txt > @@ -0,0 +1,58 @@ > +Broadcom BCM63xx clocks > + > +This binding uses the common clock binding: > + Documentation/devicetree/bindings/clock/clock-bindings.txt > + > +The BCM63xx contains clocks gated with a register. Clocks are indexed > +by bits in the register and are active high. Clock gate bits are > +interleaved with other status bits and configurable clocks in the same > +register. > + > +Required properties: > +- compatible: Should be "brcm,bcm-gate-clk", "brcm,bcm63xx-gate-clk" > +- #clock-cells: Should be <1>. > +- regmap: The register map phandle > +- offset: Offset in the register map for the reboot register (in bytes) > +- clocks: The external oscillator clock phandle > + > +Example: > + > +periph_clk: periph_clk { > + compatible = "brcm,bcm63168-gate-clk", "brcm,bcm63xx-gate-clk"; > + regmap = <&periph_cntl>; What else is in periph_cntrl? Could this all just be part of that node? Rob -- 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/