Received: by 10.192.165.148 with SMTP id m20csp5008996imm; Tue, 1 May 2018 07:38:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpnp18T70KZwm869dm3aUCLrIar09LHNMfQz1Xdrjm6l/Geaeo/5OlL+bXU+BjLX7UJDFUe X-Received: by 10.167.128.4 with SMTP id j4mr15965273pfi.52.1525185496094; Tue, 01 May 2018 07:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525185496; cv=none; d=google.com; s=arc-20160816; b=fzbegd+BngoBXo4a83WkGHFLXqRzu0vQ3KHPKWXLQefVWEQQ0xijcqy17XmDNCQQGL EEVmK+pS92Iamm/LHesYSpP9Ot79fnrg5R0GiYLOjp9eG6hZhdzSPeK6iMyuzju2haaT Ii7r24hf6J0N5hPmFnvTyXUl/ENKPFHfTpM2xEoMY2wQ9z1ngVyu1eR7rQoW/5NFhI14 k3nsxywXEnxnOHFDjWWbtW394S9G8e7knW85zabzXjMyYDmGJUJgVHvzQ/yt82Z7gE51 pwN8DM1N7xOgKo4nfoacQ6+BueQXnaNxreyNjE4g9TN8rPktk41IXWovF8ZdzQwPRLbf qHVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=mS+x5CG5IpesUgEuxILxhKKC48xx/+fDwnUZR8U2yts=; b=xsnb1xQQk+msOeFIeR1be5EivovyPf0k2Z8tIyKkNNvc207RkL3H/kifzAe2vObCRI MwClAmo+HvENVMddJdP8rhBEcMsjAYxVAXeJTvPQhUC/Y49HikIlHOkCMma9eBWn14mM fUEeQn1/vK5M6hyOq7dRY0xLmDfC6bGE70eqxugzLoMDjkJqyHODuEeyYGtec9NS5UOC Cp61oePaVZ2mk5mgHYW2uFlHkSD+HagJWfxY+dTui+JLaGNRpaDNFjlUrwab4yg2ETtC qn225nPBIiEi9y5xvHV/y5NdG1B2Krn4ZkgC6HBByJ838p/SwVjHdzW5awuw3GkIr5j3 c7sg== ARC-Authentication-Results: i=1; mx.google.com; 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 m26-v6si915671pli.129.2018.05.01.07.38.02; Tue, 01 May 2018 07:38:16 -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; 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 S1756111AbeEAOhT (ORCPT + 99 others); Tue, 1 May 2018 10:37:19 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:45114 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756008AbeEAOhR (ORCPT ); Tue, 1 May 2018 10:37:17 -0400 Received: by mail-ot0-f193.google.com with SMTP id o8-v6so4370750ota.12; Tue, 01 May 2018 07:37:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mS+x5CG5IpesUgEuxILxhKKC48xx/+fDwnUZR8U2yts=; b=LT0OFa5KDTxfCfjBA3GOo/fg0oQttxoZ8d6KUZXafs/XQZ2trfW+y+58agZvEUpYXm CGPiaHv5rKr6h8+sarGsJW6gfNzYK9wlkyEZv4CKs+G8wLnpm4jBHNSlr+8E5QMb+uaz 4eMUBz7BTGdRfku+9HGp6UgKh+H23z7ThOT4RiehehYga/YCkD3B0JIimYfAdWpGMG2R 3sjbFGdr8GJRrb0zvm2Po3++qQywmGFlTEZ3YqXZJWwhSy3GSllFoRDH3v+bODab1wpH bhNoHa7h6FRWxfkdUiCStwVFfqPbto7yfhY48uQG/hsYNxD4ojnAsDe2OQdfWe9EE78Q v3PA== X-Gm-Message-State: ALQs6tDCLs2LnG6FrzcIxquKzzy8daaq4hIpG7/eOsMy3eeBytpchgWm Klo2yxQ7PqCfxyBjHlCafQ== X-Received: by 2002:a9d:cce:: with SMTP id o14-v6mr10563048otd.112.1525185436683; Tue, 01 May 2018 07:37:16 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id p36-v6sm227516otd.35.2018.05.01.07.37.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 May 2018 07:37:16 -0700 (PDT) Date: Tue, 1 May 2018 09:37:15 -0500 From: Rob Herring To: Jerome Brunet Cc: Neil Armstrong , Carlo Caione , Kevin Hilman , Michael Turquette , Stephen Boyd , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/7] clk: meson: axg: document bindings for the audio clock controller Message-ID: <20180501143715.GA20023@rob-hp-laptop> References: <20180425163304.10852-1-jbrunet@baylibre.com> <20180425163304.10852-7-jbrunet@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180425163304.10852-7-jbrunet@baylibre.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2018 at 06:33:03PM +0200, Jerome Brunet wrote: > Add documentation for the device tree bindings of the audio clock > controller of the A113 based SoCs > The preferred subject prefix for bindings is 'dt/bindings: clock: ...' > 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 Unless the sources don't exist, then you should always have the clocks. It should not be based on whether you are using them or not. > + * "slv_sclk[0-9]" - 10 slave bit clocks provided by external > + components. > + * "slv_lrclk[0-9]" - 10 slave sample clocks provided by external > + components. I'm guessing these may come from pins that aren't connected, so being optional is fine. > +- reset : phandle of the internal reset line resets > +- #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 { Needs a unit address. > + 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 > > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html