From patchwork Tue Dec 6 10:55:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Ferre X-Patchwork-Id: 9462347 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 A6B6A60586 for ; Tue, 6 Dec 2016 10:59:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0BDC28346 for ; Tue, 6 Dec 2016 10:59:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93C7D2835E; Tue, 6 Dec 2016 10:59:13 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3A49428346 for ; Tue, 6 Dec 2016 10:59:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEDRE-0008Uy-Tk; Tue, 06 Dec 2016 10:57:32 +0000 Received: from smtpout.microchip.com ([198.175.253.82] helo=email.microchip.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEDQc-0008HQ-Mo for linux-arm-kernel@lists.infradead.org; Tue, 06 Dec 2016 10:56:56 +0000 Received: from tenerife.corp.atmel.com (10.10.76.4) by chn-sv-exch06.mchp-main.com (10.10.76.107) with Microsoft SMTP Server id 14.3.181.6; Tue, 6 Dec 2016 03:56:34 -0700 From: Nicolas Ferre To: Boris BREZILLON , , , , , Subject: [RFC PATCH 2/3] ARM: dts: at91: sama5d2: add classd nodes Date: Tue, 6 Dec 2016 11:55:59 +0100 Message-ID: X-Mailer: git-send-email 2.9.0 In-Reply-To: References: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAC+NgFprPqsTGxcLF5cOimzzTLcJg5au2Tl6L+9dOs1jc+7SN0eL6vH3MFgf6+S2+NhlbdExZxWQxbfo7Zgf2AIYo1sy8pPyKBNaMi+83MhbcFKo4+OYoYwNjO18XIxeHkMA6Rol1T18wdzFycrAJ6EqcnfCEDSQhInCNUeL3+QXsIA6zwAQmiQerWsGqhAWcJPbM2MAEYrMIqEj8WXwCLM4rECvxZXMbC4gtISAn0XD+PlicU8BaYsHOaUA2B9A6K4lX9yohygUlTs58AlbOLCAhcfAFxBFCQCP73vezQ4wJlGj/fo8RwnaS+L9yJlTcTuLw9ItQtoPE/fsz2GBqDm59DmVrS2x/tY8VwtaR2HawH+o0W6DzJzJB2O4SDx4th7J9JWY9bICqiZI41f+ZdQKjxCwkp85CcuoCRqZVjNLOHn66wWG6rhHOHgZmernJGQW6uYmZeXrJ+bmbGCERlr2D8Uyb/yFGSQ4mJVHerZPOhwvxJeWnVGYkFmfEF5XmpBYfYpTg4FES4T20DCjHW1yQmFucmQ6TkuHgUJLgvQCSEixKTU+tSMvMKUktgkifYlTl2PXz2lomIZa8/LxUKXHeeyCFAiAzMkrz4OouMYpKCfNGLQXK8RSkFuVmlkDEbzEKczyEaQY6lwEINBhfMYpzMCoJ814EmcWTmVcCd84roEuZgC5dt/s0yKUliQgpqQbG3SnTPvKXyj041c59qOCnT5tAxKZ579fc313zoCX6q/iGlKjf3FtlUxfMfvXivG4ei9HdhOhJ0zXfzHhodNLt+dSFH/9ue928e/o7pQsR8/Ze8z/3x3FOfjjz+ocdlzOUvv6pqecPOchoVGLI9E/26pOLu/eZ370vqfvs+sSC1NOt4QceXRf/rq3EUpyRaKjFXFScCAAiRpPsMgMAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161206_025654_953009_68827D13 X-CRM114-Status: UNSURE ( 9.00 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicolas Ferre , linux-kernel@vger.kernel.org, Ludovic Desroches , Alexandre Belloni , Songjun Wu , Cyrille Pitchen 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 From: Cyrille Pitchen This patch adds nodes for the classd device and its generated clock. Signed-off-by: Cyrille Pitchen Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/sama5d2.dtsi | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index ceb9783ff7e1..d6b8d59a913b 100644 --- a/arch/arm/boot/dts/sama5d2.dtsi +++ b/arch/arm/boot/dts/sama5d2.dtsi @@ -447,6 +447,24 @@ clocks = <&plla>; }; + audio_pll_frac: audiopll_fracck { + compatible = "atmel,sama5d2-clk-audio-pll-frac"; + #clock-cells = <0>; + clocks = <&main>; + }; + + audio_pll_pad: audiopll_padck { + compatible = "atmel,sama5d2-clk-audio-pll-pad"; + #clock-cells = <0>; + clocks = <&audio_pll_frac>; + }; + + audio_pll_pmc: audiopll_pmcck { + compatible = "atmel,sama5d2-clk-audio-pll-pmc"; + #clock-cells = <0>; + clocks = <&audio_pll_frac>; + }; + utmi: utmick { compatible = "atmel,at91sam9x5-clk-utmi"; #clock-cells = <0>; @@ -836,7 +854,7 @@ #address-cells = <1>; #size-cells = <0>; interrupt-parent = <&pmc>; - clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>, <&mck>; + clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>, <&mck>, <&audio_pll_pmc>; sdmmc0_gclk: sdmmc0_gclk { #clock-cells = <0>; @@ -880,6 +898,12 @@ #clock-cells = <0>; reg = <55>; }; + + classd_gclk: classd_gclk { + #clock-cells = <0>; + reg = <59>; + atmel,clk-output-range = <0 100000000>; + }; }; }; @@ -1279,6 +1303,19 @@ status = "okay"; }; + classd: classd@fc048000 { + compatible = "atmel,sama5d2-classd"; + reg = <0xfc048000 0x100>; + interrupts = <59 IRQ_TYPE_LEVEL_HIGH 7>; + dmas = <&dma0 + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | + AT91_XDMAC_DT_PERID(47))>; + dma-names = "tx"; + clocks = <&classd_clk>, <&classd_gclk>, <&audio_pll_pmc>; + clock-names = "pclk", "gclk", "aclk"; + status = "disabled"; + }; + chipid@fc069000 { compatible = "atmel,sama5d2-chipid"; reg = <0xfc069000 0x8>;