From patchwork Mon Mar 2 16:22:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 5914871 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1EDC9BF440 for ; Mon, 2 Mar 2015 16:25:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3DF092011D for ; Mon, 2 Mar 2015 16:25:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 693EB200DB for ; Mon, 2 Mar 2015 16:25:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YST7h-0001jo-C9; Mon, 02 Mar 2015 16:23:13 +0000 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YST7I-0001Wo-87 for linux-arm-kernel@lists.infradead.org; Mon, 02 Mar 2015 16:22:49 +0000 Received: by wiwl15 with SMTP id l15so16136472wiw.3 for ; Mon, 02 Mar 2015 08:22:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=4bCeNhO3QC0wm4itIKvo434fj03i1dFsnrTO3JsxOJI=; b=B0D6xqd5V33IYS6Z40csjdjH4jHsWmLoRXOQ7T2QDu9jeyjK0fAt3bJyWm77RYiKRM OdFghUfFmU9oZXrEzSfikJTy6lntY+cAKn4NHqX4J7FqQ0V9hgNYDfOWA3gy++0SxwMo f7ifwQIhP/zOBzuT5gPvsMpmWOnYxPwWhPBo+YmYa5hEJXLMgZMSfQkPU4EGNo/L93dH AAzkXcCFu23kZ5BzgMJM6ggdr4u5oePC8BUt1K+CkYYYB9NB1xw4dFWGcE2QNGX+vnaU sqUZlHEW2C0x/0ZCxzzfepbtHuunn+qtVylm2pBsNSAY5p0NXxlzktCSZCdTdFV0SLWu X+Cg== X-Received: by 10.194.61.100 with SMTP id o4mr60862766wjr.28.1425313343803; Mon, 02 Mar 2015 08:22:23 -0800 (PST) Received: from nuc.endlessm-sf.com (2-238-57-164.ip242.fastwebnet.it. [2.238.57.164]) by mx.google.com with ESMTPSA id j7sm16723767wix.4.2015.03.02.08.22.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Mar 2015 08:22:22 -0800 (PST) From: Carlo Caione To: mturquette@linaro.org, linux-arm-kernel@lists.infradead.org, sboyd@codeaurora.org, drake@endlessm.com, jasper@endlessm.com, jerry.cao@amlogic.com, victor.wan@amlogic.com, emilio@elopez.com.ar, robh+dt@kernel.org Subject: [PATCH 2/3] clk: meson: Document bindings for Meson8b clock controller Date: Mon, 2 Mar 2015 17:22:01 +0100 Message-Id: <1425313322-18567-3-git-send-email-carlo@caione.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1425313322-18567-1-git-send-email-carlo@caione.org> References: <1425313322-18567-1-git-send-email-carlo@caione.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150302_082248_493131_B712BA6A X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.4 (/) Cc: Carlo Caione X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Carlo Caione Add documentation for the clock controller. Signed-off-by: Carlo Caione --- .../bindings/clock/amlogic,meson8b-clkc.txt | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,meson8b-clkc.txt diff --git a/Documentation/devicetree/bindings/clock/amlogic,meson8b-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,meson8b-clkc.txt new file mode 100644 index 0000000..2b7b3fa --- /dev/null +++ b/Documentation/devicetree/bindings/clock/amlogic,meson8b-clkc.txt @@ -0,0 +1,40 @@ +* Amlogic Meson8b Clock and Reset Unit + +The Amlogic Meson8b clock controller generates and supplies clock to various +controllers within the SoC. + +Required Properties: + +- compatible: should be "amlogic,meson8b-clkc" +- reg: it must be composed by two tuples: + 0) physical base address of the xtal register and length of memory + mapped region. + 1) physical base address of the clock controller and length of memory + mapped region. + +- #clock-cells: should be 1. + +Each clock is assigned an identifier and client nodes can use this identifier +to specify the clock which they consume. All available clocks are defined as +preprocessor macros in the dt-bindings/clock/meson8b-clkc.h header and can be +used in device tree sources. + +Example: Clock controller node: + + clkc: clock-controller@c1104000 { + #clock-cells = <1>; + compatible = "amlogic,meson8b-clkc"; + reg = <0xc1108000 0x4>, <0xc1104000 0x460>; + }; + + +Example: UART controller node that consumes the clock generated by the clock + controller: + + uart_AO: serial@c81004c0 { + compatible = "amlogic,meson-uart"; + reg = <0xc81004c0 0x14>; + interrupts = <0 90 1>; + clocks = <&clkc CLKID_CLK81>; + status = "disabled"; + };