From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 03 Dec 2015 20:24:27 +0100 (CET) Received: from proxima.lp0.eu ([81.2.80.65]:45151 "EHLO proxima.lp0.eu" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27007545AbbLCTYXeK8FS (ORCPT ); Thu, 3 Dec 2015 20:24:23 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fire.lp0.eu; s=exim; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:Subject:Cc:To:From; bh=nC6HQTQp2C9BOSZQt2hJeM80K5Pg+5xy/lsB9NeVK2o=; b=IyXAbcvNN51utCxl4lnqOb/yoO6kO0dbp1OrT9AWl891csRBP/FJCAB1Obe7HrFB1ujElO4Tp9FdxTgjtLrG2S5MauCq3FbckK+889tlYX4XvYQDT+Eafza07cZdtGJ9jtwWJ/Cxp+8R82B45pFaWAS8YJ7EYvWvNZoBieZuFvJNFUbuntCDyBzHuXF4QiduTZfzKyz37WL3pdIXweRbGQJk8w5+KLa3lC3iA5pCSOIEh1JcikPxFCnAFTt4f9N9gQ47g7qObM1VTEXgNvm4OZZ2DzWt956oTdkg3ATyrBBW/Dx9QtyvIu8o5xrtALoOaaU93AEz3redSwBofM9VEw==; Received: from redrum.lp0.eu ([2001:8b0:ffea:0:2e0:81ff:fe4d:2bec]:51866 ident=simon) by proxima.lp0.eu ([2001:8b0:ffea:0:205:b4ff:fe12:530]:465) with esmtpsav (UNKNOWN:DHE-RSA-AES256-SHA:256/CN=Simon Arlott) id 1a4ZU9-0005kT-1U (Exim); Thu, 03 Dec 2015 19:24:10 +0000 From: Simon Arlott To: Michael Turquette , Stephen Boyd , Kevin Cernekee , Florian Fainelli , "devicetree@vger.kernel.org" Cc: Linux Kernel Mailing List , linux-clk@vger.kernel.org, linux-mips@linux-mips.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Jonas Gorski Subject: [PATCH linux-next 1/2] clk: Add brcm,bcm6345-gate-clk device tree binding Message-ID: <566096D4.3050102@simon.arlott.org.uk> Date: Thu, 3 Dec 2015 19:24:04 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 50323 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: simon@fire.lp0.eu Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Add device tree binding for the BCM6345's gated clocks. The BCM6345 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 --- Renamed to BCM6345. .../bindings/clock/brcm,bcm6345-gate-clk.txt | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/brcm,bcm6345-gate-clk.txt diff --git a/Documentation/devicetree/bindings/clock/brcm,bcm6345-gate-clk.txt b/Documentation/devicetree/bindings/clock/brcm,bcm6345-gate-clk.txt new file mode 100644 index 0000000..5801264 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/brcm,bcm6345-gate-clk.txt @@ -0,0 +1,58 @@ +Broadcom BCM6345 clocks + +This binding uses the common clock binding: + Documentation/devicetree/bindings/clock/clock-bindings.txt + +The BCM6345 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,bcm6345-gate-clk" +- #clock-cells: Should be <1>. +- regmap: The register map phandle +- offset: Offset in the register map for the clock register (in bytes) +- clocks: The external oscillator clock phandle + +Example: + +periph_clk: periph_clk { + compatible = "brcm,bcm63168-gate-clk", "brcm,bcm6345-gate-clk"; + regmap = <&periph_cntl>; + offset = <0x4>; + + #clock-cells = <1>; + clock-indices = + <1>, <2>, <3>, <4>, <5>, + <6>, <7>, <8>, <9>, <10>, + <11>, <12>, <13>, <14>, <15>, + <16>, <17>, <18>, <19>, <20>, + <27>, <31>; + clock-output-names = + "vdsl_qproc", "vdsl_afe", "vdsl", "mips", "wlan_ocp", + "dect", "fap0", "fap1", "sar", "robosw", + "pcm", "usbd", "usbh", "ipsec", "spi", + "hsspi", "pcie", "phymips", "gmac", "nand", + "tbus", "robosw250"; +}; + +timer_clk: timer_clk { + compatible = "brcm,bcm63168-gate-clk", "brcm,bcm6345-gate-clk"; + regmap = <&timer_cntl>; + offset = <0x4>; + + #clock-cells = <1>; + clock-indices = <17>, <18>; + clock-output-names = "uto_extin", "usb_ref"; +}; + +ehci0: usb@10002500 { + compatible = "brcm,bcm63168-ehci", "brcm,bcm6345-ehci", "generic-ehci"; + reg = <0x10002500 0x100>; + big-endian; + interrupt-parent = <&periph_intc>; + interrupts = <10>; + clocks = <&periph_clk 13>, <&timer_clk 18>; + phys = <&usbh>; +}; -- 2.1.4 -- Simon Arlott