From patchwork Thu Dec 15 05:58:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 9475575 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0369C6047D for ; Thu, 15 Dec 2016 06:02:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7229286AA for ; Thu, 15 Dec 2016 06:02:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DAE8A286C1; Thu, 15 Dec 2016 06:02:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6FABE286AA for ; Thu, 15 Dec 2016 06:02:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cHP4N-0005TP-JO; Thu, 15 Dec 2016 05:59:07 +0000 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cHP4D-0005Qz-CK for linux-arm-kernel@lists.infradead.org; Thu, 15 Dec 2016 05:58:58 +0000 Received: by mail-pf0-x22b.google.com with SMTP id 189so7382330pfz.3 for ; Wed, 14 Dec 2016 21:58:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=W9ky3t8BHlGRcoOH94PpLXp02/vN2jN0y3RHZJZJeZ0=; b=cMpHUy/TphqTzK5MaZHCf0JkRpf9bhrldet6vkLHR39Kx4p/wlw07GD55FDf93xbjZ +J7QQ5uU7AIlWcBh/2w30X9dN9KqXs+39Lsy1WaQ8ubahsNVal2vFJgxAkO0J7Il16uv U/QpDcnecUECUon5nlY+YybolQ5Ax5ZWMX2jQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=W9ky3t8BHlGRcoOH94PpLXp02/vN2jN0y3RHZJZJeZ0=; b=oTiFW44gmARWMyb4DXmJfkAcikmG/Uvtm683lqtcqAJku6CRIzEqTgbeo72s++qrqk YR++rIQIUQXAJF1sWazsrY8/rzSWqcirVEdP95MkERi+osGShVls3bQfHbaoXKizYKAF pM5NCt34/+OBV1q6wDhBvUOywCF0URbh9BtO3m3VXDv50cwb4vj4ojjeWyrlNC/Suwkk /07mX7WkOhwGyOIEHqFj5b8rdvtJNf8Qd/jsIc4lnlKRHP6hqbw2WJNbk3lz7FVssQ+B DW9zRHdlMszZGhw05dMEuxk4LAlmjvTCG44he9K5WXiPJHC/PwA8jSIkgUBEvTnlRFTx ZPcg== X-Gm-Message-State: AKaTC02bH89KP32u48GuNOcQEkc4wHXLfum2J7TFIRKIwwn6OQPR0twqMZmjuQMqJBiLTS+K X-Received: by 10.98.59.154 with SMTP id w26mr637913pfj.112.1481781515520; Wed, 14 Dec 2016 21:58:35 -0800 (PST) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id y200sm964038pfb.16.2016.12.14.21.58.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Dec 2016 21:58:35 -0800 (PST) From: Zhangfei Gao To: Stephen Boyd , Rob Herring , Arnd Bergmann , haojian.zhuang@linaro.org, guodong Xu Subject: [PATCH 1/2] dt-bindings: Document the hi3660 clock bindings Date: Thu, 15 Dec 2016 13:58:12 +0800 Message-Id: <1481781493-6188-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481781493-6188-1-git-send-email-zhangfei.gao@linaro.org> References: <1481781493-6188-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161214_215857_529069_FE4B85DE X-CRM114-Status: GOOD ( 11.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Zhangfei Gao MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add DT bindings documentation for hi3660 SoC clock. Signed-off-by: Zhangfei Gao --- .../devicetree/bindings/clock/hi3660-clock.txt | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/hi3660-clock.txt diff --git a/Documentation/devicetree/bindings/clock/hi3660-clock.txt b/Documentation/devicetree/bindings/clock/hi3660-clock.txt new file mode 100644 index 0000000..7296fd7 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/hi3660-clock.txt @@ -0,0 +1,42 @@ +* Hisilicon Hi3660 Clock Controller + +The Hi3660 clock controller generates and supplies clock to various +controllers within the Hi3660 SoC. + +Required Properties: + +- compatible: the compatible should be one of the following strings to + indicate the clock controller functionality. + + - "hisilicon,hi3660-crgctrl" + - "hisilicon,hi3660-pctrl" + - "hisilicon,hi3660-pmuctrl" + - "hisilicon,hi3660-sctrl" + - "hisilicon,hi3660-iomcu" + +- reg: physical base address of the controller and length of memory mapped + region. + +- #clock-cells: should be 1. + +Each clock is assigned an identifier and client nodes use this identifier +to specify the clock which they consume. + +All these identifier could be found in . + +Examples: + crg_ctrl: crg_ctrl@fff35000 { + compatible = "hisilicon,hi3660-crgctrl", "syscon"; + reg = <0x0 0xfff35000 0x0 0x1000>; + #clock-cells = <1>; + }; + + uart0: uart@fdf02000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x0 0xfdf02000 0x0 0x1000>; + interrupts = ; + clocks = <&crg_ctrl HI3660_CLK_MUX_UART0>, + <&crg_ctrl HI3660_PCLK>; + clock-names = "uartclk", "apb_pclk"; + status = "disabled"; + };