From patchwork Sat May 16 10:48:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 6421301 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 C93D7C0432 for ; Sat, 16 May 2015 10:53:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EBC48204E3 for ; Sat, 16 May 2015 10:53:03 +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 EBBCC204D8 for ; Sat, 16 May 2015 10:53:02 +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 1YtZev-0004uN-RH; Sat, 16 May 2015 10:49:33 +0000 Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YtZei-0004rQ-7m for linux-arm-kernel@lists.infradead.org; Sat, 16 May 2015 10:49:21 +0000 Received: by wgin8 with SMTP id n8so140392374wgi.0 for ; Sat, 16 May 2015 03:48:58 -0700 (PDT) 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=S9/KMIFOFMg/ll7Hcn355QPn+2DfM4rz4U7Zbchyo7I+JpqXKwYGc6i/wfycHOUsIX oXC+BkRx3eCyZvUIJXSTY3dljqATtwfW6T/3RBc3I6WZfvHKEixQGHekEu4TJciYqqsq c/hxEHnDUr9JKLN03w32qNsUBNd4PUqDs5TlvyZ3Cmyz/l3HhTucI2UDcJ+6SHHZFM5t UIL/UtoAnqG8AqYSv+tzf8zg7301n0Pj8CGd1ny9hCm4UZfjy2JoQFZjWQ6QzDMylaga kZoIsDfXihBtS9cBopZe+G/1SQZgYKJoZvUoZ7pgfliMdHhb4PO3MWxMVUEGtEmkWLNm UB6w== X-Received: by 10.194.48.101 with SMTP id k5mr25970772wjn.79.1431773338114; Sat, 16 May 2015 03:48:58 -0700 (PDT) Received: from localhost.localdomain (2-238-57-164.ip242.fastwebnet.it. [2.238.57.164]) by mx.google.com with ESMTPSA id pz6sm6745249wjc.43.2015.05.16.03.48.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 16 May 2015 03:48:57 -0700 (PDT) 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 v2 2/3] clk: meson: Document bindings for Meson8b clock controller Date: Sat, 16 May 2015 12:48:52 +0200 Message-Id: <1431773333-23567-3-git-send-email-carlo@caione.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431773333-23567-1-git-send-email-carlo@caione.org> References: <1431773333-23567-1-git-send-email-carlo@caione.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150516_034920_469263_34C30E94 X-CRM114-Status: GOOD ( 10.12 ) X-Spam-Score: -0.7 (/) 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=unavailable 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"; + };