From patchwork Mon Jul 16 10:11:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10526385 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 D7B646020A for ; Mon, 16 Jul 2018 10:13:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D35BC2841E for ; Mon, 16 Jul 2018 10:13:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C57AE28531; Mon, 16 Jul 2018 10:13:07 +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 82A9C2841E for ; Mon, 16 Jul 2018 10:13:07 +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:References: In-Reply-To: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:List-Owner; bh=uSZE1Mqv+jzC9thBmqnpOHFqYS8Kb2jatkxwuhdsGNU=; b=CZMx0M5PYma5aESsQ+jegHsE2n 4Oh9hVwEU9ya5mIsKRMtF/j91q6QIKNRpo04fzhgKrGhMCPxVzCmsc+HRskMKnKN7DqyisTaZFszD 4ud9TpGYEbcOTmwuKUO/Wq20od1fCc+iIhq8tIfXjH6DxD7IR337J2jdcBbwZ4ihXjvbaSNcBHurx Xo7gVNjkPBx1jpgC2sEd3e9zQcVMslCQG3k/k6qTmdEI2560l9s4K1PJ04YBUJu+trS4Z7qhIy0wm WivLRfiZki5HRzioceMm2JE4SCKrF7xQ9RMzDbSl4389k/tgQSlSRBhrSAytN0vsb0HmxzDzVPuV7 8hRtsI1Q==; 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 1ff0V2-0002CT-S3; Mon, 16 Jul 2018 10:13:00 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ff0UG-0001F0-3o for linux-arm-kernel@lists.infradead.org; Mon, 16 Jul 2018 10:12:18 +0000 Received: by mail-wr1-x444.google.com with SMTP id b15-v6so31309114wrv.10 for ; Mon, 16 Jul 2018 03:12:03 -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=pl/Fz+vGzGyS5mZJHiQjJzwbW2hjtldfbX5N0oksSsk=; b=YEooTVmc58/UG6EQ0V8Fr18DKYoP3sGbb3fJXvKBxbxLVZnm+e/UGG8tNw9vkV8FCn n44gepkn3LIKx3tUA22UcYrjlL+0f5t0sWbAoy7OySzW++PuFnKx76MQAA1TxDnMSGnU X7Do73Kvx03RGjM7qfNKOYEovkdOICxTrqiVlca5DXxF8LVcBePXU0sheo3VaJdT25SX vBN82TPN0aMZYeXMAhGI/HoRhaUhdiLO+t5NUqEh72BG3I8KkwCy9qahAPY9aPynZYdK 5gPq3KyCloAIN5mx2XwWmODg3Bm6xjZz4G4SGWkUWYBzE5Pe1wKWIy2FJA19V0i5R/I0 MScg== 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=pl/Fz+vGzGyS5mZJHiQjJzwbW2hjtldfbX5N0oksSsk=; b=JBzuUj3P4MROydHna6H26z7NuaqH3XAoosuvobXuKHf+rdisnnK31n3TnCb5RZzK9H fxhkrKSHiMeYX7t0/8NyEMn/RPk4t2VwGvvXZXJCOvgzmCcorV15xTfkhKlw2KjRsbi2 jECmXy4IoVQKc08YdbRso4Lk6oZKHQtQziFLBMeIEGD6PI92RTc64yNbTVp2lgzWJY3V EItBFtTmwht7DEvisL/Do3YB7Ahclo42JIaMVJ8gV6fu5C1HaUpHMZSqT8WLm/wJjs7N EFD2KOn8BPVHoKDqcMhBCmJuEskmq575lCSDV4ggYuZLWBRKCcENhcuyfhurN/pmFij1 vZig== X-Gm-Message-State: AOUpUlHK4srZzpXI7Hy1dQJq2Ywsyg/EDI5Xl2N61EQqqVrF7nFyx8Mu rkCp+sxUdB1Eb9l5n0BhefIRVQ== X-Google-Smtp-Source: AAOMgpfHjA9/WmyhF9GF9Ur4Q8ttOvrsg7NFQforH+0Ddt+DvBbW3xxyUHoxsi/QTA3uy29iM2e7/g== X-Received: by 2002:adf:eb0c:: with SMTP id s12-v6mr12319030wrn.174.1531735922146; Mon, 16 Jul 2018 03:12:02 -0700 (PDT) Received: from boomer.lan (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.googlemail.com with ESMTPSA id h14-v6sm10219094wro.15.2018.07.16.03.12.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Jul 2018 03:12:01 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH 6/6] ARM64: dts: meson-axg: add the audio clock controller Date: Mon, 16 Jul 2018 12:11:51 +0200 Message-Id: <20180716101151.31109-7-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180716101151.31109-1-jbrunet@baylibre.com> References: <20180716101151.31109-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180716_031212_246748_6970BBD9 X-CRM114-Status: GOOD ( 11.64 ) 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: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.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 --- 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 461be4a35f92..6adc8d3dbf0a 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>;