From patchwork Thu Jul 5 11:37:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10508773 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 DF109600F5 for ; Thu, 5 Jul 2018 11:37:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC70C28F7F for ; Thu, 5 Jul 2018 11:37:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C002028F82; Thu, 5 Jul 2018 11:37:41 +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 7338128F7F for ; Thu, 5 Jul 2018 11:37:41 +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=JJxzI49OBFa8zxopUQAiMdJD879THNouvVJdw+j+/2s=; b=ifD RjlZVb4JFoOWlzXeGacphUaeReQhdbsFFlYGc/KNKUFybTpu6Uza4zgyw2puZNI2gcRRODIA8Anpg HeZRqDuA5jEV64mNoTO5eV9jdoaLYYbhVl5xb2j7rBpEyCz+g5APlxFADdWjLZprun4peBlglENCy 8Do8yMyDSjtaaqHQfQ3MieQeCzzlQNacWgREWDa/OmUAnc0f0Pel4ip3r15ytj1uBBw20nXPVcuFv l6xzab0rhz63rGJrBRMRlavM/4AHXYMbtePOl+73KfqVBborJfqBQiE4vOU3V8tI1AJjWGN+ZPmSy wXx+hT0zAyYNTZVUlb/Ik1657SBuehg==; 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 1fb2Zt-00061x-FH; Thu, 05 Jul 2018 11:37:37 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fb2Zp-00060P-5a for linux-arm-kernel@lists.infradead.org; Thu, 05 Jul 2018 11:37:35 +0000 Received: by mail-wm0-x241.google.com with SMTP id v3-v6so6699760wmh.0 for ; Thu, 05 Jul 2018 04:37:22 -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=qku/T/pR5C6YXO7lG6OESExkwmaRoJeCJ/Pf+ChRuAQ=; b=w9oBE1kRV6TMmeR2bR/w02wye+irGNyKfQM5C9wfbiHMaailgUBKV/97qOg9WSkRml P+F6WC3VZ3w4LfJ0DgqgNpHs65zGvi3eMsfqwjg4Uyx5NMpcCUPCBAQEJvp1du2kuHD2 7VvbmpboXKgc7mTX5P4wo+QaKDUjN1vBKPEDYqt2iB7Y/pLNDSPSfL1gPBkQfyyegzEU DqmV3Z26hytyaDyZGH5xDEJDFTDXjA9fCpiQDa0FnQsaDnRuljpxSWrUep9eDfXVAbXY xGfac7fv9lISQnfYWeaXLlpJheKdUNxhj23P/GJVw91M+AfoVdQI+OCPpqIChawuOUSA uKxA== 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=qku/T/pR5C6YXO7lG6OESExkwmaRoJeCJ/Pf+ChRuAQ=; b=FOrLILv+0W30dJjaBpS4FjlFpbLM0eiBs2bFAUrL3sN3fWdosUSvXlXCKtliHcBlWU 6IOwbRv73CCLoLfKNs8qaDkhrbqM8JPUUQRcQHEhSc8OSn2SmU6U3YzjhUXrCO+T5Joh uVGQ2orZMnE3F9XpVzElw8jFkR5YdHz/g4XXJOqg/AsxI5LtKNyJ5PKkmytFHHirOc34 Vq356ahr+w4BxanMzcflUTxz+sywgcRopjwAqTjEw6SaDjHugPFyuj7lL8Jo0lhDSWVq fU2HwKyDmnL9lWZuUwFzc7GzBst24JaywHgCc5b4pK1jhqYrJZpN2XLRUNG3eCIecw0M fh/Q== X-Gm-Message-State: APt69E3H01Vndd/mXXsi7SvXA7QtWRH0fIGI45NDn+IyxrmNWGuAB104 nepnaCygH3vGXsfuYMy8I7lN0g== X-Google-Smtp-Source: AAOMgpcsv4zH0f8fFoHeas73nIpTpU8nRflEzefIH9t/wCDNi1UVo9DB9Ljtj48tyVRmkOteBGBRtw== X-Received: by 2002:a1c:8312:: with SMTP id f18-v6mr4036892wmd.127.1530790640978; Thu, 05 Jul 2018 04:37:20 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id q8-v6sm11408030wmb.3.2018.07.05.04.37.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Jul 2018 04:37:20 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH] ARM64: dts: meson-axg: add the audio clock controller Date: Thu, 5 Jul 2018 13:37:13 +0200 Message-Id: <20180705113713.15267-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-20180705_043733_364117_F3B10676 X-CRM114-Status: GOOD ( 11.77 ) 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 for the all the devices of the audio subsystem, such as tdms, spdif, pdm, etc. Signed-off-by: Jerome Brunet --- Kevin, Please note that this change depends on the axg audio clock bindings [0]. 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 [0]: https://lkml.kernel.org/r/20180522163457.13834-6-jbrunet@baylibre.com 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>;