From patchwork Sun Dec 3 20:41:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10089407 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 2EBF06035E for ; Sun, 3 Dec 2017 20:45:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38BF728D9D for ; Sun, 3 Dec 2017 20:45:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B9A528C58; Sun, 3 Dec 2017 20:45:34 +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, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 BF65928C58 for ; Sun, 3 Dec 2017 20:45:33 +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=UIKSHWbAt4X9lblmCsHDFuLE1ppEpesCs16lyPnN1xs=; b=fGshZslExA4qY+HCh49vtknh+Q VmfcAiEDOdebj2HLe9sxrsq0ygrAjq7GsCMLkfrhb+N5M1hFAQNZLEKUiIqf8RqWpRy0My1pL4MXN GIyE4BNQAQYzrrV2ZrCOw1/+xgl9Hane31DWdXn+fsvOrNRaCo0r6cO0X0Si09qIeG3J//VcLDLyl tDiY9ba2d9ALzYnz6yr/IoaiW5kMD6I8Ex4idmAKIb1uxsExOoTwQJDMagMusaOOkjw97xiBNUDLX BxTc4n6/ZpqwaBLZubKn6mwonfz54bUxhiPxJbJ685I+8/uHB9dw7LpZyD0czd/AUFipOiC+XFVeR T+49j4rA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eLb8e-0002EJ-4f; Sun, 03 Dec 2017 20:45:24 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eLb5q-00070L-Q6 for linux-arm-kernel@lists.infradead.org; Sun, 03 Dec 2017 20:42:41 +0000 Received: by mail-pg0-x241.google.com with SMTP id g7so6754093pgs.0 for ; Sun, 03 Dec 2017 12:42:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0UixEO8rgKDjzyxZY0I6l8G1VEEITqY+ZqcNWoKmlRo=; b=MDK7RIQormpupeP4Y0evpndYznnU+eE9lrpzitQko7fWLo3JlJFCcwHV6FPyckhs75 IxFmAEMFKLSnbbOQt/l71+r7IhyppHZPBAfJuNNPRU7mZDQHxbhvzZEeK+x8iJTzeHCP Zirbjufmu77DFMMgFRs3INwR1wWBg+OucpVaYnddxU27jJIQr62PsYPLwMnBITaTjVg8 EVds7lnVmIOR6GzOtWajzzeD3RbB1FnypfIcG23FxnbVNxnIB0jwD/eBs6/gAv0jaBej zyH44nzUloe2ABSpVJS2xruTff3/AH2mBwq/PkqNqiXeKTiqJbFeZiNoPtra9XB/TgVx NG8A== 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=0UixEO8rgKDjzyxZY0I6l8G1VEEITqY+ZqcNWoKmlRo=; b=LfTl1bJwwSSSXU0G2WyFCgdec8YnCfqTmdTDwwoLokC1B8sfQ39uBIi8QXvMhlDW9t 2T6QAiyrrLEYEkWAXwCzADy4SGFGC+TifKspquuKQJnosEKbuDG2sgc6CAhWca0GBaEH TSqr2rNMPofCvE8QQTUqfxuznfoZRKyvvlVLxkl4olk1WrW91Cc0N3XFOHQyrLj4L5DU etw+nFsU/iHW38D1rpggGQNtHpEFhrzCX3FGERDyDIcOHFqndIVm/2zXsQgPP2crSCNU MhB5Q9ENisNT6IwWRW33Xk0ga6u+OzBU4wpPulCdFmRS3g9V1/gilboGFx8ezGHNevsD FBiA== X-Gm-Message-State: AJaThX6MI0pWnc3ajkmPg5AlFexsHViNivdAPRbmvu8JhNueeWZjTW+x ElyXB5rCw0vwbipt4ol2/ck= X-Google-Smtp-Source: AGs4zMZ4E62LLQIYjGf8EwcB5Qq36v3h5ljQ/ltmnBjVwFKJhr8ryRu18/KRV4pRsykBXT0vGLkcSg== X-Received: by 10.99.127.88 with SMTP id p24mr11759133pgn.377.1512333729933; Sun, 03 Dec 2017 12:42:09 -0800 (PST) Received: from anarsoul-thinkpad.lan (216-71-193-140.dyn.novuscom.net. [216.71.193.140]) by smtp.gmail.com with ESMTPSA id z25sm19264929pfe.121.2017.12.03.12.42.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Dec 2017 12:42:09 -0800 (PST) From: Vasily Khoruzhick To: Liam Girdwood , Mark Brown , Maxime Ripard , Chen-Yu Tsai , Marcus Cooper , =?UTF-8?q?Myl=C3=A8ne=20Josserand?= , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 8/9] arm64: dts: allwinner: a64: Add nodes necessary for analog sound support Date: Sun, 3 Dec 2017 12:41:56 -0800 Message-Id: <20171203204157.20829-9-anarsoul@gmail.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171203204157.20829-1-anarsoul@gmail.com> References: <20171203204157.20829-1-anarsoul@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171203_124231_037865_2F75A30C X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. 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: Vasily Khoruzhick 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 nodes for i2s, digital and analog parts of audiocodec on A64 Signed-off-by: Vasily Khoruzhick --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index d783d164b9c3..504f16e3d92d 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -112,6 +112,28 @@ method = "smc"; }; + sound: sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "SUN50i Audio Card"; + simple-audio-card,format = "i2s"; + simple-audio-card,frame-master = <&cpudai>; + simple-audio-card,bitclock-master = <&cpudai>; + simple-audio-card,mclk-fs = <512>; + simple-audio-card,aux-devs = <&codec_analog>; + simple-audio-card,routing = + "Left DAC", "AIF1 Slot 0 Left", + "Right DAC", "AIF1 Slot 0 Right"; + status = "disabled"; + + cpudai: simple-audio-card,cpu { + sound-dai = <&dai>; + }; + + link_codec: simple-audio-card,codec { + sound-dai = <&codec>; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts = ; + compatible = "allwinner,sun50i-a64-acodec-i2s"; + reg = <0x01c22c00 0x200>; + interrupts = ; + clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; + clock-names = "apb", "mod"; + resets = <&ccu RST_BUS_CODEC>; + reset-names = "rst"; + dmas = <&dma 15>, <&dma 15>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + + codec: codec@1c22e00 { + #sound-dai-cells = <0>; + compatible = "allwinner,sun50i-a64-codec"; + reg = <0x01c22e00 0x600>; + interrupts = ; + clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; + clock-names = "bus", "mod"; + status = "disabled"; + }; + uart0: serial@1c28000 { compatible = "snps,dw-apb-uart"; reg = <0x01c28000 0x400>; @@ -563,6 +609,12 @@ #reset-cells = <1>; }; + codec_analog: codec-analog@1f015c0 { + compatible = "allwinner,sun50i-a64-codec-analog"; + reg = <0x01f015c0 0x4>; + status = "disabled"; + }; + r_pio: pinctrl@1f02c00 { compatible = "allwinner,sun50i-a64-r-pinctrl"; reg = <0x01f02c00 0x400>;