From patchwork Thu Dec 29 02:33:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 9490971 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 47C9F60488 for ; Thu, 29 Dec 2016 02:36:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FA942094F for ; Thu, 29 Dec 2016 02:36:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2467026490; Thu, 29 Dec 2016 02:36:43 +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 D56092094F for ; Thu, 29 Dec 2016 02:36:42 +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 1cMQYS-0002CL-Mw; Thu, 29 Dec 2016 02:34:56 +0000 Received: from mail-pg0-x234.google.com ([2607:f8b0:400e:c05::234]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMQYO-00028T-1l for linux-arm-kernel@lists.infradead.org; Thu, 29 Dec 2016 02:34:53 +0000 Received: by mail-pg0-x234.google.com with SMTP id f188so161503033pgc.3 for ; Wed, 28 Dec 2016 18:34:31 -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=aFusvqSYh4Jh7Af6Hi4pHGFYo/P0G3d4jKz3JZ0TrSc=; b=SXLKRb8zWoeCEZhoxy8PsY+IR55TiEJYGFtKLOQofNoVxG+CDA5TCpEg34rLFrCm1B 0SJXNZxflyMOPj80t103Shmak4CW1Tc6HY+ArDXvYXO8PuEH/sZL4isTCa2pyiY9ujxZ fOJe/vtvg2P2bTjO1c3L6uMsSRwy3ttl2iQPA= 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=aFusvqSYh4Jh7Af6Hi4pHGFYo/P0G3d4jKz3JZ0TrSc=; b=DECwq/0OAJH/XfJ0GQg1+IPKDmkBl18bbpRVU8BBSbjjzfJMLAt6ff0/vUiq7IoS0N XLjyuVV1cCmzD2qe/y9CbfvZWmr9Q5+AowuPb4HCg2Nba8OkWWrK41ovZzjlAXTO+YSc gmRUPWA8TndMRcj2othFdXGuHFTGtUyk8NQN6kpM+uxcoLKgO42Tn1T1LydUIO4uxOYb RNSfkhjuf9CMZmPfuzKItQ/aZ6KYJavbsCDHn3/3Ao+MdVdmOCHCfPifrOddEYmP7KhC fUvE19ToywXsyMiDfHjvxZtGapPKIi5hM7+Iibjk1PpsEws+pFlNnClTLzIw4naSbeKI +K8A== X-Gm-Message-State: AIkVDXIpAD14vDmICwVPcpJkC1vKsPAon6NYk1OJt3TbRIuHIFeofo0TPf87VN1cvjRNAsqv X-Received: by 10.99.47.7 with SMTP id v7mr74103588pgv.39.1482978871060; Wed, 28 Dec 2016 18:34:31 -0800 (PST) Received: from localhost.localdomain ([104.237.91.229]) by smtp.gmail.com with ESMTPSA id q26sm100055008pfk.94.2016.12.28.18.34.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Dec 2016 18:34:30 -0800 (PST) From: Zhangfei Gao To: Stephen Boyd , Rob Herring , Arnd Bergmann , haojian.zhuang@linaro.org, guodong Xu Subject: [PATCH v2 1/2] dt-bindings: Document the hi3660 clock bindings Date: Thu, 29 Dec 2016 10:33:24 +0800 Message-Id: <1482978805-6981-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1482978805-6981-1-git-send-email-zhangfei.gao@linaro.org> References: <1482978805-6981-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161228_183452_198423_896EED5D X-CRM114-Status: GOOD ( 12.16 ) 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 Acked-by: Rob Herring --- .../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..cc9b86c --- /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: clock-controller@fff35000 { + compatible = "hisilicon,hi3660-crgctrl", "syscon"; + reg = <0x0 0xfff35000 0x0 0x1000>; + #clock-cells = <1>; + }; + + uart0: serial@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"; + };