From patchwork Fri Jul 6 14:43:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10511885 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 D126F600CA for ; Fri, 6 Jul 2018 14:43:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BECD926255 for ; Fri, 6 Jul 2018 14:43:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2494285F7; Fri, 6 Jul 2018 14:43:31 +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=unavailable 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 58F3626255 for ; Fri, 6 Jul 2018 14:43:31 +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: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:In-Reply-To: References:List-Owner; bh=Utmy3sn6qNuupxT4HYiuD3/ahMujU62qPmgkWS0N+fw=; b=lEG BHIHoNd1KLPkpLdS+Xdzbh4LuzPTNte61ssn7s9NzP33ctaAitWZuTJCxkXC2z+roioRk0tFV7K8O 1Ok28uUCkLhIb4aIII6Sm+pxf4ZlBvtviRcWVNaXw4+O43vEPxjym9L+zVTnY648wswBiULqLX7SE Q6bCHQvF0jq5bsLz6qtVk9KncwKRaXFE/fdZNUM09H6nbgDuvcqbXtIDmI74jE4atTV3KsNdjFrhI 9jeb2jp9mJrGMWZCufGDs+4u9bM6+i0SPEO1IvNk2P42kVuYi4zUJiX+HTqFpjhtInj6Cajh0nz5J up8sXmgZTeBQnI5mSLxEgTHNAmWKejg==; 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 1fbRxH-0003HY-4P; Fri, 06 Jul 2018 14:43:27 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbRxD-0003GE-Ie for linux-arm-kernel@lists.infradead.org; Fri, 06 Jul 2018 14:43:25 +0000 Received: by mail-wr1-x442.google.com with SMTP id h10-v6so4442539wre.6 for ; Fri, 06 Jul 2018 07:43:12 -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; bh=qCNnR86Cw8AyGhCJOnz8hTrxVhif/iokCoLw2iFdxwM=; b=hxN8HdULpVLaJBC3IYO+neMXN8Y3zYoFE6fusYsWU3JVzF5oKMTt7LEXiTlIf6OjE/ RfYdIK70entwr8Mm+J9xRbgoOpy5IF1kw99a8P40pRuuNZV8bHAl+jJmzQtouIgoIqQn 2iPHS20IeK2eJf8dw3OxF5S8MTtaT6KhC6xThWkG2Vq+u/wHoA0O7gWjxW6kFp7gPIbT GgXz05uyLvbEPOxYReWCsnU2Q18hdjqMjcELALq2/xLlECSghQm3bAW4lDp14DPU/EOj SrP2yKJPgRg7hlrbPVMTeZGQoXI5LX6vajFMpYg9i5jljVFmC24ns75Y6BbS5n0cijSv p2Og== 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; bh=qCNnR86Cw8AyGhCJOnz8hTrxVhif/iokCoLw2iFdxwM=; b=ccrGHa6MYtT+aTtWiLyqHbtuWk55sVn3KzQ+e2Z884I9ooRCiWHrQ1J3D5isflByjb WtuTfR9YtyhDE9vUZlbfg/mtC2rvxFw0ba5jQ8vMPgeqB39Ak4nHkhjs3PTRBu7M6896 yqH2QgHyteKLBkdtYDg2NytGZKnFdjyOHAwiFH/8Y6qlRKbgRiSe8E7bBWW1kr6ozagD 4xNtlbgUCp9fSaJnJ6Y2q55E1PJQ1iil3x7IF8CEvZE9xmYj/usRS8V3uaHWJWUHa/BO X75fI4qHtfBuIeb1QF95+YaoZQh3wONUjUU1kD9ipjypPbw5yUgFvVacGgGvTFiq40S6 zyCQ== X-Gm-Message-State: APt69E1n/9xJgKRCfCXl7wZlC1cVc7oreZ0s6cIf5vqWSbFM7eB/GBA7 An1dFrm/q47V+reexF6VE3R2ag== X-Google-Smtp-Source: AAOMgpesLPIgN8AxJwaIWvIkevA3wXFUXH/xLHBFx4rtR9yvxdG/AsJkRUafMUHLpnSCSQSn0HxxmQ== X-Received: by 2002:adf:b3d4:: with SMTP id x20-v6mr8086742wrd.272.1530888191454; Fri, 06 Jul 2018 07:43:11 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id y13-v6sm21357451wrc.55.2018.07.06.07.43.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Jul 2018 07:43:10 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH RESEND] ARM64: dts: meson-axg: add the audio clock controller Date: Fri, 6 Jul 2018 16:43:05 +0200 Message-Id: <20180706144305.30116-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180706_074323_632650_040A3DC0 X-CRM114-Status: GOOD ( 11.46 ) X-BeenThere: linux-arm-kernel@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, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the audio clock controller which is part of the audio bus This controller takes 8 input plls, and the usual clock gate, from the main clock controller. It provides the clocs for the all the devices of the audio subsystem, such as tdms, spdif, pdm, etc. Signed-off-by: Jerome Brunet --- Resend to fix typo reported by Martin in the commit description. (Thx Martin !) Kevin, Please note that this change depends on the axg audio clock bindings [0]. It explains the problem reported by kbuild robot It will be part of our PR to clock in this cycle. As usual, I've prepared a topic branch with the DT changes for you. Please, let me know when you need a tag on it. Cheers Jerome arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index aa1a42407466..56d334be9f85 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -155,6 +156,41 @@ }; }; + audio: bus@ff642000 { + compatible = "simple-bus"; + reg = <0x0 0xff642000 0x0 0x2000>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x0 0x0 0xff642000 0x0 0x2000>; + + clkc_audio: clock-controller@0 { + 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>; + }; + }; + cbus: bus@ffd00000 { compatible = "simple-bus"; reg = <0x0 0xffd00000 0x0 0x25000>;