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: 9462335 X-Patchwork-Delegate: sboyd@codeaurora.org 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 318076074E for ; Tue, 6 Dec 2016 10:57:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EB1920007 for ; Tue, 6 Dec 2016 10:57:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2358C28358; Tue, 6 Dec 2016 10:57:39 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97C2D28343 for ; Tue, 6 Dec 2016 10:57:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752544AbcLFK53 (ORCPT ); Tue, 6 Dec 2016 05:57:29 -0500 Received: from smtpout.microchip.com ([198.175.253.82]:36766 "EHLO email.microchip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752266AbcLFK51 (ORCPT ); Tue, 6 Dec 2016 05:57:27 -0500 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 , , , , , CC: Alexandre Belloni , Ludovic Desroches , Songjun Wu , , Cyrille Pitchen , Nicolas Ferre 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== Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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>;