From patchwork Wed Nov 21 05:17:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10691975 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 CD28313BF for ; Wed, 21 Nov 2018 05:20:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB0742B394 for ; Wed, 21 Nov 2018 05:20:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF6CE2B443; Wed, 21 Nov 2018 05:20:48 +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 51D852B394 for ; Wed, 21 Nov 2018 05:20:48 +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=0FryDh0CV3miVDGUFGV24S6ZudxvSbHSMu1/XT5En0I=; b=inPsLTiTU6Wb49 h0zmtXjgrlkozWU5hHJij7Rbw/h317kHBrFUMK8jQ4vKWXmNnFMHkndt95nzcqZqMK1H3jWIJxPS4 jQ7+i+LbkmoagpA5n0pgGnLJjeyqGt2X5dw/TfqpkCTe7cysJCVXuepOk+CFv1CFF0UhEFU/xOGDh /bEaAuOW+NoUxKlFKL3mPMNygsXd6EF5ejG1wCGr2TZail+q1QX4pI3b5wmvUZvILucAI8z3JjMl8 ThgLwSZ1+YhipgKOz6Lj7Xae6pHei83B0Z3srNlFLvO2KSaCAdWF1YyFxwl/AuNKaRROE5DppBXZa Whx6nT5DInhTQm3vdPqA==; 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 1gPKwQ-00073q-Gg; Wed, 21 Nov 2018 05:20:46 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPKv8-00042Y-Bb for linux-arm-kernel@lists.infradead.org; Wed, 21 Nov 2018 05:19:29 +0000 Received: by mail-pl1-x644.google.com with SMTP id t13so3699942ply.13 for ; Tue, 20 Nov 2018 21:19:16 -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=aIY5VgZEAQflkZd35MEa+EQWTnXYW/7QXkyXFoMBpDY=; b=NRYC0Mnyo7y5a/rsvUPYS+t/zEFUJHc8zWfL40gByLTW41GG1ycPQ7CvwvXkELJpic 2gf5G6NijlDM/3IGgmNW9nYsCIgqMbjp/HonQ3t9elwQfcHJoY+szKm/M2CEmvnWgXyV FMtuyLUBkupPELCOLBm54rG91lFNu5sV1QdsWABAO10idFZehMesUjv+6re7eEf39aYV zGyskzoenSjS4pSi3flytau+4dhyi3pUlUN+x21952jVUujzTq5xH/AeQjcHzW059+/3 jly7lGcSg678OlXdpV35zHOqvg/eg9XeeWZ7hr19RESTYP65DpooTJu3eiKGE00FDQ9z P05w== 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=aIY5VgZEAQflkZd35MEa+EQWTnXYW/7QXkyXFoMBpDY=; b=djfYET5I38bkEkGW8r9aVbai8XTwHqXO3UVdxkLqIfk3JpD2wLg+9f//3iD8fBsEPi mon6gVfUUF1YZDwZsmfcUft8mlKJufT+yCD0J2FPyHFjjyatYWvXjP9db5sM4irf/Cq0 kc5SDZxf7mtKU8/P9X9IDzHU1v0OmXAhIC9C2hAgXwotyyJa+LjwG+Oc8WSuPqmfpf71 QPUrVaWg7eD7daAv7xutBAmzYmCfQ09HtmT1qNb7tUBKm/Hq3gHEJmqGsTKdPjdvEi+l cZr4pxS+SfYN2de4At6BNG86rTe9EwS4euWvgYC9gaeqiL8yoeEZ+R94D0oZrP/XQlcE H7dQ== X-Gm-Message-State: AA+aEWb02OKvAI44SzGfyrCqewvnALoDq5E3FahnpUNBhcf6u0WKgDMV uvNisKYUIKV6zNJTPgKK8R8= X-Google-Smtp-Source: AFSGD/UpxJW4mfj0CIb5MGbRgtxXb0RnKliT3RMv6x5OlbQbnw9EHpAgN3fWjys//b1VjRj/msnWoA== X-Received: by 2002:a17:902:7c82:: with SMTP id y2mr5216404pll.33.1542777555507; Tue, 20 Nov 2018 21:19:15 -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 v70sm8293074pfa.152.2018.11.20.21.19.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 21:19:15 -0800 (PST) From: Vasily Khoruzhick To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Jaroslav Kysela , Takashi Iwai , Vasily Khoruzhick , Jerome Brunet , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v8 5/7] arm64: dts: allwinner: a64: add nodes necessary for analog sound support Date: Tue, 20 Nov 2018 21:17:50 -0800 Message-Id: <20181121051752.18387-6-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121051752.18387-1-anarsoul@gmail.com> References: <20181121051752.18387-1-anarsoul@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181120_211926_806155_02926FEF X-CRM114-Status: GOOD ( 12.61 ) 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..44fce4b0ac49 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -155,6 +155,30 @@ method = "smc"; }; + 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>; + }; + }; + sound_spdif { compatible = "simple-audio-card"; simple-audio-card,name = "On-board SPDIF"; @@ -665,6 +689,30 @@ status = "disabled"; }; + dai: dai@1c22c00 { + #sound-dai-cells = <0>; + 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";