From patchwork Mon Jun 1 11:13:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 6520841 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BEAE69F46B for ; Mon, 1 Jun 2015 11:17:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E10C4205FC for ; Mon, 1 Jun 2015 11:17:14 +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 1B040205DF for ; Mon, 1 Jun 2015 11:17:14 +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 1YzNft-0000s4-3R; Mon, 01 Jun 2015 11:14:33 +0000 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YzNfj-0000ng-FW for linux-arm-kernel@lists.infradead.org; Mon, 01 Jun 2015 11:14:24 +0000 Received: by wgme6 with SMTP id e6so111095569wgm.2 for ; Mon, 01 Jun 2015 04:14:01 -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=oaXK6kipT4vhat6uxQ/itVIumeR8tGrIIYWTGFLyBCWvZ0zA3p37V4uH0aTnz12WWk VeWXziLX2nUpiR0MzyFtzGZ+WmUzlzqqzi7tS2GY2w/XD/9CCoWCNGE81BxE3AUMNpmd sFX9LxdeMfct3XqKhfXlqEZfrRpZt0no5O9k5hrpa9VR2etnuSm4wjwjh+4wzN0Y2Vc6 ne+E6zrnM+ynIAVHGaA/IOC42XlfXoSfDGN+RuJHHqBzh0DChJjGMiXVAqtcGIpYEmKT ML1ysHAXgp1OS/oxzHYXg5vR8F5oQ3kLsxVhax1A2GbHHFJJVjZeoTtk9sWHYvweJJ53 5Jlw== X-Received: by 10.180.24.65 with SMTP id s1mr19446549wif.66.1433157241197; Mon, 01 Jun 2015 04:14:01 -0700 (PDT) Received: from localhost.localdomain ([212.91.95.170]) by mx.google.com with ESMTPSA id gh3sm21384178wjb.36.2015.06.01.04.13.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Jun 2015 04:14:00 -0700 (PDT) From: Carlo Caione To: sboyd@codeaurora.org, mturquette@linaro.org, linux-arm-kernel@lists.infradead.org, drake@endlessm.com, jasper@endlessm.com, jerry.cao@amlogic.com, victor.wan@amlogic.com, emilio@elopez.com.ar Subject: [PATCH v3 2/3] clk: meson: Document bindings for Meson8b clock controller Date: Mon, 1 Jun 2015 13:13:54 +0200 Message-Id: <1433157235-17275-3-git-send-email-carlo@caione.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433157235-17275-1-git-send-email-carlo@caione.org> References: <1433157235-17275-1-git-send-email-carlo@caione.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150601_041423_685997_2F2A617B X-CRM114-Status: GOOD ( 10.93 ) 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=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"; + };