From patchwork Wed Oct 17 07:38:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10644849 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 2C4C613A4 for ; Wed, 17 Oct 2018 07:43:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A25F2A968 for ; Wed, 17 Oct 2018 07:43:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0BA552A9A1; Wed, 17 Oct 2018 07:43:11 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 8BF6C2A986 for ; Wed, 17 Oct 2018 07:43:10 +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=WqmVbrUJHSP6Tb08Dj3yzPRJctAmjtG5QrR6zQeiqqM=; b=fIA/jo51YG/XDi liil7lYOwmaiIVZ51Zi1Fu8VQ9H1jjTZXCFraQmeeQ9ZdCMFQVOzmL+LrPd/paCWt79gLGUXM5X6o 7H0UxS4ZJ3Gmpv/0okMO34d8dw8JKsO+yHN6nBISAQPya70OPtl0eaA30iCdWV9Dx4bPhtHJi1WnR gcEmEdpoQ/ddgbJhTy99jAK4hbKS3pgZBkHOhdz0knjApLSSX9aHZZ+i33UcuQ9fvdJF1bLjgqnxw imhJ9V7Xz08gGJ2K8z+dTgcSobJCKpFrdon19fezwCRAKMlmBGr4ro2FE7NPac1jL9d3H8YdVPCs0 89U9GuNRWR3iN++2dU2Q==; 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 1gCgTo-0000dx-Pa; Wed, 17 Oct 2018 07:42:56 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCgPh-00067S-HT for linux-arm-kernel@lists.infradead.org; Wed, 17 Oct 2018 07:38:54 +0000 Received: by mail-pl1-x643.google.com with SMTP id y15-v6so12257476plr.12 for ; Wed, 17 Oct 2018 00:38:31 -0700 (PDT) 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=ODrzEQ5EZiA7q479ukTBaq7cASO3g6CGHrg9WUAcJs4=; b=KspEdy8V48lPjnXeEOFPERFfUsB1u2LDJFZCfuP0yJ3xzNb2SO7fN76Ph0NN7GxRNr RgE/JH4WXyFvZKEhNGTxTdpSQSUvZLWmGQ8RrlQWrjrxrbiRpGTZsEy9VIaFJsWMH/kt OIpJqdvtQ9u8z8v2Xr6DG+xZRtzQJ9WYbSDvvmhmup/95LTYoti72wAr5muH7x6pmhtf H5K2OYwsz2x/5luA4Bs73uUeKL7sdKmM0Qzw2wGE2v//LLS22//Qn6QMkI4AHWBS8z5+ VVLyQyKuHySZydmzwGQpzzA42g+MNnf1O7nXC66To97DsFlULxavzG543ltp2vbZyYbT UUwA== 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=ODrzEQ5EZiA7q479ukTBaq7cASO3g6CGHrg9WUAcJs4=; b=JyEbsaAk+lAv4mK101WJ4C+r+5taBA1nYQ/GGhh5HtoFn+6AG7NrraemTCGOwZ/Lva I/b8ZNKJLymyV2RBt1o93eP5cO5rKnt/gc03c+QHfg7Jd9jNhYCOoObc9od57AHQTFyW iGo4RboLWxV42pygPtL5GOwvak08aDrNdjUjU+FEPD8+62rpTcltya0RbxsCKuXhT0dI XA286LCROApuqozE2Bu6q4SUdX4Z8qGuwS8uO6gPJ0mvATewXOvyB0xAZ/2rELWNy2x3 DohgvPLdiRPQZ0Skxfgu0M0aON25KEdt3CXq42CNPPa+DKSlzOxCvwYagGD87eeh3eXn Nz2w== X-Gm-Message-State: ABuFfoiZW9Mmh8Uw/k/R1hdQFVbx+T+I5KkeTQfyYvAHmIhjg4MfOc0L Sgh2ljPDpIY4r+ndhnObYGY= X-Google-Smtp-Source: ACcGV63B1HeY/kOA5vMT49sp7mGz9ty385qCAGU4UDm920GW0+s2AgKod8MjPBoxSd3TBFI2FND2iA== X-Received: by 2002:a17:902:a606:: with SMTP id u6-v6mr23897596plq.69.1539761910853; Wed, 17 Oct 2018 00:38:30 -0700 (PDT) Received: from anarsoul-thinkpad.lan (216-71-193-140.dyn.novuscom.net. [216.71.193.140]) by smtp.gmail.com with ESMTPSA id o12-v6sm23426387pfh.20.2018.10.17.00.38.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 00:38:30 -0700 (PDT) From: Vasily Khoruzhick To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Maxime Ripard , Jaroslav Kysela , Takashi Iwai , Marcus Cooper , Mylene JOSSERAND , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Subject: [PATCH v5 7/9] arm64: dts: allwinner: a64: add nodes necessary for analog sound support Date: Wed, 17 Oct 2018 00:38:11 -0700 Message-Id: <20181017073813.14127-8-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181017073813.14127-1-anarsoul@gmail.com> References: <20181017073813.14127-1-anarsoul@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181017_003841_641891_4716053C X-CRM114-Status: GOOD ( 12.91 ) 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 d3daf90a8715..d066ed59f27a 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -157,6 +157,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>; @@ -715,6 +767,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";