From patchwork Fri Jun 10 00:32:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Turquette X-Patchwork-Id: 9168685 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 09196604DB for ; Fri, 10 Jun 2016 00:33:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFFF728047 for ; Fri, 10 Jun 2016 00:33:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4CDE28368; Fri, 10 Jun 2016 00:33:25 +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 9995F28047 for ; Fri, 10 Jun 2016 00:33:25 +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 1bBAO3-0005ac-NA; Fri, 10 Jun 2016 00:33:23 +0000 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bBAO1-0005WO-HM for linux-amlogic@lists.infradead.org; Fri, 10 Jun 2016 00:33:22 +0000 Received: by mail-pa0-x22c.google.com with SMTP id b5so17932356pas.3 for ; Thu, 09 Jun 2016 17:33:01 -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=URpGoGw42N70zpvxeCg9XYTiJ6MaDH0G87bFFTy93/4=; b=qsZ5JmbjGPoHfKY5zvUmove3MW4l2m8eXARURxMT41AXcGT/5YMLMziDByZPD653+d H4C/n91barrEdITMNYyZHIuqojlefJZ0aA9T57PNgaEegLv6bqk5u304kXdiqtvLfjhQ dCuoURRiTY7ycamBgmaEr3KM85RFkikZPgCXaYeb97x2uITvMqtASCf660M2l59V5ukb 0sI1RXoY10sclrgfqcXyaRYqozyCz4gNxA7N8hIwPGN4XaLikGRLTXXnwTHUDRDy3cc1 0URrTTwwWZqwHwmcwYOFuXZ1DA1u5EFmA0lh26mPIRUn92CECpLJ5Iw2YmVAIluOQh6P 3LxA== 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=URpGoGw42N70zpvxeCg9XYTiJ6MaDH0G87bFFTy93/4=; b=mpC685mTKHnbvAYfg86AXMI9pQe4XrjYCiba4v2qkgIa3BPrNdUbE4AHcHvhPYhpoI 4wYgo59mp4XNufHo1312T70+1BymGEHqJbJCRil+4XLYSYVvEMX52LRiIRAZCXyzkvM1 ULtdqZcw/qXSKQaIQMMkV36gpgrdREH1rU7sxhJiTYauhTaMhff05/ClzD2Kk3V+A6kl TfTiBqUjVs698D/2iu+RiRfcwbqxUejQa3JHy2rQ46VOrOLNjDq6js/eWIYFUNNyFtsV 2svyuUU5WyWq5TLMJ1Y0Y6dodl90G6PGo0vF3e5Yvtx3fdufS3y/9kST59ggnjpz+rdq MN5Q== X-Gm-Message-State: ALyK8tLesqC81tPm/qI8ubVU1dBrBLGg6p/VF/TiZAeBpJat6Vp2zR7cOeTj8iR1VrdYrWn8 X-Received: by 10.66.222.98 with SMTP id ql2mr15406422pac.137.1465518781224; Thu, 09 Jun 2016 17:33:01 -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 v27sm12732888pfi.49.2016.06.09.17.33.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jun 2016 17:33:00 -0700 (PDT) From: Michael Turquette To: linux-clk@vger.kernel.org Subject: [PATCH 4/7] clk: gxbb: Document bindings for the GXBB clock controller Date: Thu, 9 Jun 2016 17:32:51 -0700 Message-Id: <1465518774-26924-5-git-send-email-mturquette@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1465518774-26924-1-git-send-email-mturquette@baylibre.com> References: <1465518774-26924-1-git-send-email-mturquette@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160609_173321_644358_1CF69494 X-CRM114-Status: GOOD ( 10.43 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: xing.xu@amlogic.com, victor.wan@amlogic.com, khilman@baylibre.com, carlo@endlessm.com, jerry.cao@amlogic.com, linux-amlogic@lists.infradead.org MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add documentations for the clock controller. Signed-off-by: Michael Turquette Cc: devicetree@vger.kernel.org --- .../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 0000000..ce06435 --- /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"; + };