From patchwork Thu Nov 8 06:39:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10673587 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 ECE1E1057 for ; Thu, 8 Nov 2018 06:42:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB9B42CF38 for ; Thu, 8 Nov 2018 06:42:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF1D82CF3A; Thu, 8 Nov 2018 06:42:29 +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=ham 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 785362CF38 for ; Thu, 8 Nov 2018 06:42:29 +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:Cc: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:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hazGFwQlUwLhryXhvjHheanS5EHEeKolBQHNdjAtSVg=; b=qNRXKR9ALAt46r CJFhOHA5/IHllshJHSOd+STT+Urka+6Zm9Jfq+fIhvpO/bbBaZKTwlousbqqqJKeZ6tfvQGgjDuP5 FIfGVjFmNKspF6m/S14tBJyQyvDbTZTCnJVATHFFvjXde/8n4DbimKUfNfmah2aHjL49nioyCGOkt ATUdw7mJ1N81fjOQWTYa4ihYbKbKUDWmdo0+08xzy/TN8haqTqWskaT78n0khxjtFowMTv7luQVID oAf0eJLc1xDmYarMTOMWSRusxXnnwsvv+BNlUFYT7G9/rNMotWi0jew7VZ9OZjAJ57YnojmMdiHS+ +HEePxvgVL6hnbmYhm9g==; 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 1gKe1G-0007Ia-Bi; Thu, 08 Nov 2018 06:42:22 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKe15-0006wk-QJ for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2018 06:42:13 +0000 Received: by mail-pg1-x542.google.com with SMTP id 32-v6so8443531pgu.2 for ; Wed, 07 Nov 2018 22:42:01 -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 :mime-version:content-transfer-encoding; bh=74M2ySK/9iSISh6sYWbiRwMTV7imjXkWZvmYe9Rb48k=; b=kawqURSgfPB+xWfy/svWZb0ZqqpetjjtGkoHjQPTS+ppv0B3iGPwKXJdPcHlXbCOh7 2kza8V+Eht/VgO6Cglw3Qt65lk9oVjffH230mC3rI6VUzzz4M7ZFtbLf+EMnV7bakRO+ CTwrMypgcHmQefoXxbxoyGeQqNZBWG3HBNWFXXBxC9e/5k/tNQwx9nPxlU6ZT9yHfdsD rNRebiJA/NpvAhUOBANRQE3y0/NqlUfGTpzHUsxGzEyjZe2QIfn+E7UsXgB2BiQLXJe4 rnuyUjUJ9YXPM2N8SYThXyFsblu7MWvv3VWtl2UXLw56VryaElt94i8FTeGTFBPbHUrH myqw== 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:mime-version:content-transfer-encoding; bh=74M2ySK/9iSISh6sYWbiRwMTV7imjXkWZvmYe9Rb48k=; b=T2QVeId7aruCsDNN+s7wwuYAMRzuBJt4tACdCFB0zDBDTpMTtM+gXsYbZ56xCKznyq Ol/aXwzop9Iv93K8ciiqzFhEg0jgkSn3EDo3zFieUIDthRhrloAGtjiG6HAjs24RIXdP IolmAueLw0+W3u/JE+5TSi4mQhcbKaRCJa9PF77THxKTI85nhIDS/kyxZFYR/fv9bI+f cW/z+arDKbFydDanxvhnUd6GhddK/44Ujo+qtgx+Cr1dZNGltemLhnJgvsycUj/uicqu KOwMjjPUVfuBoJ2aVz/QKyJlg4x4ZVv9R3rYYkbWgi6abSSFpU2sI8KhGCKVPexDVR6y KCVQ== X-Gm-Message-State: AGRZ1gLK+MzLgxx93HLA8a7/itbdFs0frl76XD4jbL+g4XjvQLDB4onZ RWf1xUSN2neNl8ImpMnrVnI= X-Google-Smtp-Source: AJdET5f3+GqotIDHlQ9fDIVL/TpMtB2IKgVrGK/S9xWvBvF1XsNrYcuUKXc4F+ONLesrCAd6hatMxA== X-Received: by 2002:a63:ca44:: with SMTP id o4mr2882492pgi.258.1541659320957; Wed, 07 Nov 2018 22:42:00 -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 t26-v6sm3647203pfa.158.2018.11.07.22.42.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 22:42:00 -0800 (PST) From: Vasily Khoruzhick To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 1/3] arm64: dts: allwinner: a64: add nodes necessary for analog sound support Date: Wed, 7 Nov 2018 22:39:27 -0800 Message-Id: <20181108063929.29720-2-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108063929.29720-1-anarsoul@gmail.com> References: <20181108063929.29720-1-anarsoul@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181107_224211_846511_33DB3B80 X-CRM114-Status: GOOD ( 13.32 ) 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 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 | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index f3a66f888205..53796a3e6bf3 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -173,6 +173,34 @@ 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", + "Left ADC", "ADC", + "Right ADC", "ADC", + "MIC1", "Mic", + "MIC2", "Headset Mic"; + 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 +954,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";