Received: by 10.192.165.148 with SMTP id m20csp918444imm; Wed, 25 Apr 2018 09:36:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoAvtuVca7ciwixIeb91qPo7lEMm6E0FuByu0eea0/PzZ9oHcBJvTtHG4vXL3I22Uw+Njjx X-Received: by 2002:a17:902:b788:: with SMTP id e8-v6mr6454888pls.263.1524674199972; Wed, 25 Apr 2018 09:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524674199; cv=none; d=google.com; s=arc-20160816; b=QzK3zoblE3eTWJAZgNoMa30dZD8X4l4znvx379NaGayIShPpG9LQ4lr2RH2U912+ql ypXJrO324ulrVWlNDobW+YHcxnw3GojdH2LhxJ3XEMycDlfHu8uD9cDA+v8ZT7yJvORW YDDMaCIqlVp4SfhAOIFt4GrqXNmsGFXEFzasGpFG6Bu1hSc5M0Ys15GRnzbQxMWuDpcT u1rODwhgv2D6Dl8XKDuH6pLOifXLmWrf8iv2/R8HavS4fjUI5KcdL2rB6kTL3xOMUyqO r8KvS9xxoyM6IvczdThZ279VJ8V6sb5Xy1cVNNAFMRjZ0OCO/2j7SFi/vh/Yu8U9fn67 zAJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=RjXz03RQ0rJUaVnnJ4rttnOe2KsdlXpp9H3Bv+R9gJE=; b=07TSri4W9pDa72feBvSDVj/HELhsaVIeb6YK+hSR03CEirDIfUKPISNnHrfhTlYG0N 9ctKO5qCC86M31pIo0qkDe28N8LR2G4JJ1NuaN1eaInpGBJBvr4V5smi4GMD0yForkRz scptBp3I9nR7FYOGdtZV5UzaM/ueyOuJlUrlNKamFjp/P7XZ7cjckxBpbeBntRQfrgsn TEknhGFk56ip+WWdeC/Tt9Pn/H1Wzp/B+eeD2mcEU8VdGrn7i00XIOBQdSRPoXA+lKZz Lu52U5J+XfgvdjECWPXmtgZSX4aVXJWQ+t0S3z5E9anEBN7rodj6jHQ9BZb9BCrXVHc0 J+Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FaIcie69; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10-v6si14123055pln.120.2018.04.25.09.36.25; Wed, 25 Apr 2018 09:36:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FaIcie69; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755976AbeDYQeF (ORCPT + 99 others); Wed, 25 Apr 2018 12:34:05 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36527 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755653AbeDYQdV (ORCPT ); Wed, 25 Apr 2018 12:33:21 -0400 Received: by mail-wm0-f68.google.com with SMTP id n10so7900191wmc.1 for ; Wed, 25 Apr 2018 09:33:20 -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=PgBCU0JcZhdxArirznRb9nsJc9KSi24v7w/e4nRy6gXuJcg7hs6E5pZzIj/gilv2fh XZkr0Rwef0IOiIBbwLJoqhRsEi7OW4BeB5KsofAvZCXTM3hQDWafCDGUWt/ZZpjhfnT0 8QCVa4vL9fihsOc+n5L8M9rQecAODFsWEP1CogEsLqOt9HtAaYZ3ioXxkTeA+9XOJH9R kr0iy4mDgPJHtQR2bd+cfKHRwDO9rFjp64t6yDWzRaDsIR13skr34toYgh/Dr7Ha20g7 51s6VDBQ0UK2qlLJCYW2piguXXICSsVPrB5TJUlW2JD0C8NAaPldRQ47t8Csso6KjOGb Znqg== X-Gm-Message-State: ALQs6tAycC8UQ4Ytyxg4QwEnfgbxWgvWgNUYymzkdl/KKi9vhy+LHZqT OVeWqT28lAWbabkI3gNbcJzYkg== 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 Cc: Jerome Brunet , Michael Turquette , Stephen Boyd , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; +}; -- 2.14.3