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: 134372 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp1085107lji; Wed, 25 Apr 2018 09:34:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrFuiDD/E61IrewvOzNos7PggJ2NeNXd0OgC0eFanybIHMUhQ3n178cH56U12VhZL34zbrs X-Received: by 2002:a17:902:7e06:: with SMTP id b6-v6mr2739070plm.151.1524674047196; Wed, 25 Apr 2018 09:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524674047; cv=none; d=google.com; s=arc-20160816; b=i6wFRddLYJDmvm/1G2kX78JiVSdv5n6Hg3WXXoQmt3kMFA7lW/8TfLQoA/hasNH/6d J8LHZywNgG+sVd996M7eyQPbKVeq4WrXfIg/ewasTPWmaDT2CsGwoi33NMhNqf0digHY 7uYWIceZXR0xmHvmwnUrGZ3KUg1s9WOlPvjvCM4RuMQSfZ++s3am4mc2/1xXgt+3Z21q FKcIQCcNxLNc1Ebt8a+7lPf1H3LBf9/805Bqozhm9pA4/HTNJb1kEMuvZJptVuB1wKHk yRQudw7Lld9TUH9gZxwCcdPymAmQlHcNxW855+gXhiSjLxNsngJxIQGwe1kxXyIlyXWP 5bVg== 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=quOjSCoKvgCTv1gZUF0XCYVbT0xjEu1SKPHSa/AnW+I=; b=EKcHUK+hp95BKXA5rSvQYFau9FFAps/xOMenjdORisQe8Lldz99eLJSTbjS63fcbxH FP6kPylnidhlCTH9y+6qa2czTqDjGv2s5zZoUAeWUyv0hFMWJNUQ7+xwcZiQtQRKBguI 899w7x25ki8No0eubKk6mV9c5gqgVQahufHPFZ1aWczF07ujkXWT1AknXdQ86VhvQT7b YKL1Gi6nKEqpZslpGAU1TSCmKxCK7GXTCMan4ctsvdRSEAa2phXXAaBLkGnVDnYgv3RR DuJkmEqwkUtQi4QcZnieOsNf9/8ay+4Yv8udqGYGoeaMqsRXnesvjRL01HV24guDA9Je fSzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FaIcie69; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 c12-v6si1249211pll.433.2018.04.25.09.34.06; Wed, 25 Apr 2018 09:34:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FaIcie69; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755301AbeDYQeF (ORCPT + 6 others); Wed, 25 Apr 2018 12:34:05 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35365 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755488AbeDYQdV (ORCPT ); Wed, 25 Apr 2018 12:33:21 -0400 Received: by mail-wm0-f67.google.com with SMTP id o78so7933252wmg.0 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=OW5hAPwUs668s90tEYcf33AF/JGrhZ4icgyMq7jAwpmUHWElfRrmFiN8gnRwwzQBbT rJOcQQa+Jvjl1GT/X40RbyinaMlQ6zpvRP0w364O5hjz37fH13/7BxlVdkE68kAoQbWl 7R2y3A9GOOP4HkRpJc7FQVgFi0WvDwA48oWCO+bjDo/NcA+TjZBtmhOTyZZ2AGMfO04z y2fW0WO4QXa3Mj+lQ8cipTL7TKZDIGDdlx9pJiyByOcskD3J7bhCqrFuZLKckQw+mRvo 1MH4voglbitjkBrhlYdFN4huQbB+rnxG2DxD2N14pN3P8y1qpZCFwOoUbLu8fHc76Vtk 640w== X-Gm-Message-State: ALQs6tBLuPBi5tsBFgmkv5I6souvDMzMIvDfQ+FC7ruK1zngTVfXqfkN uxhlKM/+UshNKGziSxsWLCxnYzPM 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 -- 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 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>; +};