From patchwork Thu Jun 23 02:01:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Turquette X-Patchwork-Id: 9194355 X-Patchwork-Delegate: mturquette@baylibre.com 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 D19946075C for ; Thu, 23 Jun 2016 02:11:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C08372841E for ; Thu, 23 Jun 2016 02:11:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B585C28426; Thu, 23 Jun 2016 02:11:57 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F4A42841E for ; Thu, 23 Jun 2016 02:11:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751315AbcFWCL5 (ORCPT ); Wed, 22 Jun 2016 22:11:57 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:32843 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751166AbcFWCL4 (ORCPT ); Wed, 22 Jun 2016 22:11:56 -0400 Received: by mail-pf0-f171.google.com with SMTP id i123so23318886pfg.0 for ; Wed, 22 Jun 2016 19:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XgIkqR7OW3HozhpItyzaMco4XvxQndoPCPMPdYCjPrI=; b=16mgZeKzR6gZZ2kptlgh/TBfo82JG7h7w3FDXtURJ5U2Ht+CTksNqjmagoX3icwReL vhycQOzz3MA1C4Pt4naRmgGvjNw0l17Wk5hekJreQv4rYnNFPPwTEoyIjfUb7PoxOb9t fbvg93uFu1newRmgmzYL9pv9nhQue0ll/8wMXUCyZrdYPAkGuPCTBe88mZLzVYKnPojX KjJZ6CF8pqpATA9q8D4j1aNRXAjWnp7wNGUDGkZGBGHeq2xEF0SCsNLvWqs+luNLFZPU G+AHVOY/hhMK2qhVbwfkgzP/Qvyn0qI2Z6TiSLVS8HZSn62Huc8Znh80IqQEJi8Yw9Kz knTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XgIkqR7OW3HozhpItyzaMco4XvxQndoPCPMPdYCjPrI=; b=Es8RWvOPH5Pwvss/pLLOkO8hqjDy+DvLZWmcy3rtdRy8kY/VKbvbnWjbmWX1AgiYYp rSGglpOYCNqdLQYyMdSvld9hYgZGtVCg9JkDtj4pDLhh2o8Dr8JWjFWEAmEAm2AZ5kEU W0ClyNbopeRv5dZfTY57SmVderbsZD0mGb/2Ws4k0ZntLMNdnEarczOYx5adUUK+2xOL DhnydiKdSTje8zAsI4wpnUderxQl1ExcM7LonbtT5u3nodd7U3k1iQNpNk/X8XKu4GT3 /1+QoAUyW+eKUCpEEfz5pn4/wOzHpTaKHEtrXGIi3H97mQuX4ZanSDtXih8slwxkgC7Q PbnA== X-Gm-Message-State: ALyK8tIHSwxTTJ4kZIXGtDqDjgjFhWkWQ7Q+dJv2nYnUPzebCaU6XnXDIZVvnvcVeUoniUXe X-Received: by 10.98.65.2 with SMTP id o2mr9605020pfa.97.1466647915802; Wed, 22 Jun 2016 19:11:55 -0700 (PDT) Received: from localhost (cpe-172-248-200-249.socal.res.rr.com. [172.248.200.249]) by smtp.gmail.com with ESMTPSA id ns4sm2691173pab.40.2016.06.22.19.11.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jun 2016 19:11:55 -0700 (PDT) From: Michael Turquette To: linux-clk@vger.kernel.org Cc: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@endlessm.com, victor.wan@amlogic.com, jerry.cao@amlogic.com, xing.xu@amlogic.com Subject: [PATCH v2 5/6] clk: gxbb: Document bindings for the GXBB clock controller Date: Wed, 22 Jun 2016 19:01:19 -0700 Message-Id: <1466647280-17596-6-git-send-email-mturquette@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1466647280-17596-1-git-send-email-mturquette@baylibre.com> References: <1466647280-17596-1-git-send-email-mturquette@baylibre.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add documentations for the clock controller. Tested-by: Kevin Hilman Signed-off-by: Michael Turquette --- No change in v2. .../bindings/clock/amlogic,gxbb-clkc.txt | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt new file mode 100644 index 000000000000..ce06435d28ed --- /dev/null +++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt @@ -0,0 +1,36 @@ +* Amlogic GXBB Clock and Reset Unit + +The Amlogic GXBB clock controller generates and supplies clock to various +controllers within the SoC. + +Required Properties: + +- compatible: should be "amlogic,gxbb-clkc" +- reg: 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/gxbb-clkc.h header and can be +used in device tree sources. + +Example: Clock controller node: + + clkc: clock-controller@c883c000 { + #clock-cells = <1>; + compatible = "amlogic,gxbb-clkc"; + reg = <0x0 0xc883c000 0x0 0x3db>; + }; + +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"; + };