From patchwork Fri Nov 9 04:24:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10675295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8F06F13B0 for ; Fri, 9 Nov 2018 04:25:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D80C2DE49 for ; Fri, 9 Nov 2018 04:25:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71B572DE75; Fri, 9 Nov 2018 04:25:35 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 270F72DE49 for ; Fri, 9 Nov 2018 04:25:35 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ta3OH1ioGoHMEC0uTCU1PXUokHf5WdNcz8L3VSyyfSo=; b=jhEHGLBLiQ0lEp D12RW87ju5qBlR+nUW3KwdFzQv/vYBWwC76qcIw0k/QZpr78bpCLrl6wKeHPoNCWs3wxlelnfHzw/ 3wwsN27eIo9sUTJW9eanAoJ81zH29NDp5gSxS/XMfFan7IBWk94gtjaEfx09GFF+MGTEbi1u0Mgo4 tvZblQaytM4YMYEVF2Cwdz3xzY8RkCw6OdQd+8aEJM9qCvQrzraKFqfj2C3d/26+D7XInzXj9y4Sx G1xzeA8usaz30RYCgzcsk3bTYoVdoQH5tbzwW1pAA/1DFWeEVS3CJAAPC33HQ2TyQvSpgdr3nxfO3 D3wYGLI3SLcccbCyGFvg==; 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 1gKyMN-0008CH-3w; Fri, 09 Nov 2018 04:25:31 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKyLh-0006H7-6H for linux-arm-kernel@lists.infradead.org; Fri, 09 Nov 2018 04:24:50 +0000 Received: by mail-pf1-x441.google.com with SMTP id v68-v6so349914pfk.0 for ; Thu, 08 Nov 2018 20:24:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=TJVj0t1/lNAAl/JOt325TKbL+DY+y6viaeyeHZgGOEk=; b=tbw8n7lvU/YDSP+5S8FgjqXvuPX4bWm6eMjivJa87E6N2qtYL6dCrelHfBlILNLQ9k BN3eF7V3kdLdC3zN+/BZACy6QoiT6UvcKWBbYpmiuddTxl6smlMxUOOj0IylIbVnx+fc r0iilMa0PSa0s4ORuwp34Dxx0ku6WIcOwNUl6XKADnPGbZxraQIsHcTmuUaZUScU46DI NsayG2h/gEW0P8i1hNJqqjaZfMy8CWW8UpDtwX/R8RJ5zxjAscFjaemN1fo1qFV1e6rr priiGwDOfsHxJCL94iJkHgZS382nsjP5+xkUC7dil7cAY8hA1NQXsOidpvFDGXvpbcc2 QcRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TJVj0t1/lNAAl/JOt325TKbL+DY+y6viaeyeHZgGOEk=; b=PDhnahwIX5vqLmrS4P7DugV+vySHHPb/RDtSvrGd2zhjQceLQkS/Gx4VHBS7h/qsnB o3vXtXi9IPdRlFl1oUGQLtjuPue2z2OhETsVOLTGWh9chnPVtNEKLvtT8IlEUZoLJZpH ocad4PVdb00P+orHvaImIiTqe/UGlK4LujeNwrqF910AHOUtPNlk+zRD1WpRD9+Y9b+m 4t2c7QaIYFOdNBWnaHKbQYkhDAgX9ZZUBHtKtanmu4H1s7vnFhSWWZW9wQFA6m4C7+Fq E+6zLh58rRJFa8B2BKY7LcQ/UeOZ207w9PAppNwTV91RC04adZUd3UkUoJeBBYPbIjln Cbpw== X-Gm-Message-State: AGRZ1gKpRzVVtRBIZUvkhc3SbMquz7j5Mq/wkxTmKlGy0T35IwR+fBVN A1y4314S7i83s+yVx1G9d9s= X-Google-Smtp-Source: AJdET5fPm01zSrfV/8U8Gb/22+3v906UNRsad5HsmV99e4Xo7KrHQQeDGWHF3DyxmXIoTouGEnoruQ== X-Received: by 2002:a62:43cd:: with SMTP id l74-v6mr7683948pfi.240.1541737474848; Thu, 08 Nov 2018 20:24:34 -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 f22-v6sm6018442pff.29.2018.11.08.20.24.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 20:24:34 -0800 (PST) From: Vasily Khoruzhick To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Vasily Khoruzhick , Mylene JOSSERAND , Kuninori Morimoto , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH v7 2/4] arm64: dts: allwinner: a64: add nodes necessary for analog sound support Date: Thu, 8 Nov 2018 20:24:20 -0800 Message-Id: <20181109042422.25653-3-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181109042422.25653-1-anarsoul@gmail.com> References: <20181109042422.25653-1-anarsoul@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181108_202449_243634_F477021E X-CRM114-Status: GOOD ( 13.23 ) 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: , 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 | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index f3a66f888205..5c52eb6148a6 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -173,6 +173,30 @@ compatible = "linux,spdif-dit"; }; + sound: sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "sun50i-a64-audio"; + 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", + "AIF1 Slot 0 Left ADC", "Left ADC", + "AIF1 Slot 0 Right ADC", "Right ADC"; + 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-codec-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,sun8i-a33-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>; @@ -902,6 +950,12 @@ #reset-cells = <1>; }; + codec_analog: codec-analog@1f015c0 { + compatible = "allwinner,sun50i-a64-codec-analog"; + reg = <0x01f015c0 0x4>; + status = "disabled"; + }; + r_i2c: i2c@1f02400 { compatible = "allwinner,sun50i-a64-i2c", "allwinner,sun6i-a31-i2c";