From patchwork Wed Apr 25 16:33:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10363873 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 13439601BE for ; Wed, 25 Apr 2018 16:33:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2C6528D88 for ; Wed, 25 Apr 2018 16:33:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6F0F28D8B; Wed, 25 Apr 2018 16:33:27 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5671C28D88 for ; Wed, 25 Apr 2018 16:33:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=JyIXRxZbMKI5S0SinW2YSX2gDdEvjxTY8yE317XySyA=; b=HN4YPx9BSXX0+YmUbCq2UAvdaJ Tuj/b7hDlERwcxrCze3Xhk9SAZPCNVMik4w2vszFfhD1CGPTwD/+kEuRePNCoPU8uclBV27KcT1nb TtbV43Fd5vIwIfXhjAxgqgEd3MM48/QB9B9YSFbu/lY5o22srWDSStGu/GjJ+RmHE4IgRuhq3XY1J ezIWGAJpqggAKnxdg/rZbpoYBsr3H0pRz2h9zIu30t8QcFzu2415vkXnDezeqh9g9UqAnibqD6jL3 CA3DHIxhrh+2OewPUP92BwQZC8kTdSMgAxev90BEXl5ROHh8jL2u3mX8RNVxoJr5fh+bYeTuPlw/7 nG4HMhNQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBNMD-0007WA-3U; Wed, 25 Apr 2018 16:33:25 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBNM9-0007Ug-Jt for linux-amlogic@lists.infradead.org; Wed, 25 Apr 2018 16:33:23 +0000 Received: by mail-wm0-x243.google.com with SMTP id i3so7905035wmf.3 for ; Wed, 25 Apr 2018 09:33:21 -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=RjXz03RQ0rJUaVnnJ4rttnOe2KsdlXpp9H3Bv+R9gJE=; b=FaIcie69z/ZBdnnYw2l7fORj11l1mPHlSuDZ0ECd+mEJ5RxjJS2tddeTcdlylRlZVW oYepQFfWaDFhjlfOWK/Q9Aj4amxlir83eoPlax2Y9xDc2QPVwlWNifAvv7/1+PcU5SL/ c49GGky5Y3S1lZ3JDCBcxQXOE574zGlUa0H6hd7wNjKvWYnWFbQkKY8uj+1mOtYqiotW WpzoZEcC7RvJlKoPLbBhL8a0gukxhe2o+bxPThYaWNRDzncG5CbozRKOzbdjlrzmO92v BnyMFZ3DbW/uPJ+EXv4hS3QP8hoOsSuymuA0tWxGVRQtcjYXTdWt0eEswOFyzR4GHntr EdFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RjXz03RQ0rJUaVnnJ4rttnOe2KsdlXpp9H3Bv+R9gJE=; b=cju9Fq0s71QHg0iXyNhsMjHPWbeJvSf7ZJBhu02h0ZdLiXntXbY+XIziWLYmL093k3 Udu9zke/9PxeBU+iKldch+PnpahLErUE3JCcdGyV4MAl4y2d4aDxtWb9uJEVS25aM9Qm NcvmC6Uk+9gvWaPYRNmJv4tzUfFoLinZNDEJ6TGSK7VD0/GzmDjCv1S2MU1sXFotJYro VDnbd/ATtbp57YFb3yk48clRoqxAALIbcXNiu+wuIjuJLQMDoPh7JHdpZDrfqeLirY2o vWr+aVDgvZeGAbIpZcwNbvdlbj+OEUITtvXsJ5ZeuiZ+WfIZ8Uho+jxzLp8pg64D3vZD pDXA== X-Gm-Message-State: ALQs6tBNc5u4ktU2S65KBGm49fqyDYZo+5gFw2E936pGGzpoxrbc849o 9vNYHTABbpFzkY9hajFemwl+kA== X-Google-Smtp-Source: AIpwx4/BBw1OrKsD/sIm9R6wudX56iU0TSm4tlnll8TkIp3VzAoFLcgTMqy1m0wYYofDmODBcH1JeQ== X-Received: by 10.28.118.9 with SMTP id r9mr13001837wmc.111.1524674000156; Wed, 25 Apr 2018 09:33:20 -0700 (PDT) Received: from boomer.baylibre.local ([2a01:e34:eeb6:4690:3146:aafc:91d9:4b96]) by smtp.googlemail.com with ESMTPSA id 44-v6sm17300548wrk.48.2018.04.25.09.33.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Apr 2018 09:33:19 -0700 (PDT) From: Jerome Brunet To: Neil Armstrong , Carlo Caione , Kevin Hilman Subject: [PATCH 6/7] clk: meson: axg: document bindings for the audio clock controller Date: Wed, 25 Apr 2018 18:33:03 +0200 Message-Id: <20180425163304.10852-7-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180425163304.10852-1-jbrunet@baylibre.com> References: <20180425163304.10852-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180425_093321_656655_9AE5EEE1 X-CRM114-Status: GOOD ( 13.34 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Stephen Boyd , Michael Turquette , linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, Jerome Brunet 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 documentation for the device tree bindings of the audio clock controller of the A113 based SoCs Signed-off-by: Jerome Brunet --- .../bindings/clock/amlogic,axg-audio-clkc.txt | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.txt diff --git a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.txt new file mode 100644 index 000000000000..1b989ceda567 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.txt @@ -0,0 +1,56 @@ +* Amlogic AXG Audio Clock Controllers + +The Amlogic AXG audio clock controller generates and supplies clock to the +other elements of the audio subsystem, such as fifos, i2s, spdif and pdm +devices. + +Required Properties: + +- compatible : should be "amlogic,axg-audio-clkc" for the A113X and A113D +- reg : physical base address of the clock controller and length of + memory mapped region. +- clocks : a list of phandle + clock-specifier pairs for the clocks listed + in clock-names. +- clock-names : must contain the following: + * "pclk" - Main peripheral bus clock + may contain the following: + * "mst_in[0-7]" - 8 input plls to generate clock signals + * "slv_sclk[0-9]" - 10 slave bit clocks provided by external + components. + * "slv_lrclk[0-9]" - 10 slave sample clocks provided by external + components. +- reset : phandle of the internal reset line +- #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/axg-audio-clkc.h header and can be +used in device tree sources. + +Example: + +clkc_audio: clock-controller { + compatible = "amlogic,axg-audio-clkc"; + reg = <0x0 0x0 0x0 0xb4>; + #clock-cells = <1>; + + clocks = <&clkc CLKID_AUDIO>, + <&clkc CLKID_MPLL0>, + <&clkc CLKID_MPLL1>, + <&clkc CLKID_MPLL2>, + <&clkc CLKID_MPLL3>, + <&clkc CLKID_HIFI_PLL>, + <&clkc CLKID_FCLK_DIV3>, + <&clkc CLKID_FCLK_DIV4>, + <&clkc CLKID_GP0_PLL>; + clock-names = "pclk", + "mst_in0", + "mst_in1", + "mst_in2", + "mst_in3", + "mst_in4", + "mst_in5", + "mst_in6", + "mst_in7"; + resets = <&reset RESET_AUDIO>; +};