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: 9168671 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 B8330604DB for ; Fri, 10 Jun 2016 00:33:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB12728047 for ; Fri, 10 Jun 2016 00:33:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FFA928368; Fri, 10 Jun 2016 00:33:04 +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 8E04D28047 for ; Fri, 10 Jun 2016 00:33:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751193AbcFJAdD (ORCPT ); Thu, 9 Jun 2016 20:33:03 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35642 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751056AbcFJAdC (ORCPT ); Thu, 9 Jun 2016 20:33:02 -0400 Received: by mail-pa0-f43.google.com with SMTP id hl6so17964459pac.2 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=FYmucjDXYjkDD6qIhuZ3veT7XtbMouCfuGJbPqsOEzxFBFuku/e+wg23rXks538CiM qljCxY1ZZhnXpI9tNBStz5grnvkPXPC8D5UP7NQo3XPfwcjh9GTChNPt1grbIx2JLBf+ De5Xzqcoeyfzs1Otp8QroShZ7SgewzsROacgAs49u72UMS7A2VOrdO26kdqt1S99wMxq xIekdTPsMVaiEBBVeg+A4jeATl0eUtWyOpKT1e2rAs/owBUQMut3TWM2TM9Mfffq12fH RSKm9GEvVbmlwPkN3cqZx3LuTEzvTuoxnSdsU/E8ojSqLZkhw3kCzegQ5f2v53Dcb6V0 cu9A== X-Gm-Message-State: ALyK8tJurHAPk42a5S2ufpaK4zTN9EzXH1e4sJy5Wroizkmi1kX62ifXG1A08I34/MlUPre1 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 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 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> 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. 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"; + };