From patchwork Mon Oct 15 16:09:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10642123 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 09E8517D2 for ; Mon, 15 Oct 2018 16:10:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC99129ABA for ; Mon, 15 Oct 2018 16:10:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E113E29AC9; Mon, 15 Oct 2018 16:10:42 +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.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A28529ABA for ; Mon, 15 Oct 2018 16:10:42 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id A0A49267962; Mon, 15 Oct 2018 18:10:02 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 326E82678FF; Mon, 15 Oct 2018 18:09:55 +0200 (CEST) Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by alsa0.perex.cz (Postfix) with ESMTP id 15F0C2678B0 for ; Mon, 15 Oct 2018 18:09:52 +0200 (CEST) Received: by mail-pg1-f195.google.com with SMTP id 23-v6so9378128pgc.8 for ; Mon, 15 Oct 2018 09:09:52 -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=TIQaWEtCVXZ1UcIgnkIt2BhbnUUloijdUjpbRpejW0nRxy0ockZyd5GJq/1qXxHDZz liFMOpdrOgSUk+wA8ZkgbTTIYzAtDvoch07xaRRlamh/7o2vzyV/B+tc2o2HAqypjAKQ qK9a+ku++NhcqZ4S+b770nVNWSPAzl+G+h7b6cF7jPM2O21ceS23JdoPZFyB/bK9DPLV hNSf4E5ZFqKOmMK0oKjvPN9QqYk4IFuznB5RGfwU3hallWZ68ZRfr+UO0uDK2qx0F22Y 5opFHOq+mlSCSx2e7MByfsmhxzAw7I6s3WPR54XSyB/05Q0bZQup7JHMmqsXFFv7UeT4 WLhA== 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=fu4clejMts6QhJ/MuZftWSDmiDp4paogv41KNeJ1ooDGHoJSkxU9BVUuKtFSOnOTXl 89iFi7GEZ5eZJERnH2EbKBX5kVwjRX1SAC/Uk6RNkYWxN/UT0IAa6lXwRmzcdi7NkDcI SknvdUnl36c8Yfnqdst8o+6UdwofVw5ehInt1yJ4HrB2sAPzBaXNqCK9pJwtJkvUw2P4 tt6MTUeEDLLYojZfHBvV0xr/ZF94105H+buoxLaNTslZDVZ8bjGXieqYZVhvlOC0QeYd RiM2dyFliUezdvtqfC88V4HwWq029H9ygkgI4F9O9Xsuma2VKyDLb7HgXsehXlNnK2KS uskA== X-Gm-Message-State: ABuFfoiZ18ufyrrQW9WehRUj5BoYQrNitkmJ5wuc5hn0Uufu8LuewYdW esLfLM/c7LloLBHNQcPQnbw= X-Google-Smtp-Source: ACcGV62OxvdJdUBLMZS3zRW31r48MlPGho/q96L7ZqebxzOyJD36WqF1QG5TOjneuKoeLlsbHjXRzw== X-Received: by 2002:a62:3384:: with SMTP id z126-v6mr17771785pfz.85.1539619791785; Mon, 15 Oct 2018 09:09:51 -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 84-v6sm17513962pfs.108.2018.10.15.09.09.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 09:09:50 -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 Date: Mon, 15 Oct 2018 09:09:32 -0700 Message-Id: <20181015160934.20948-8-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181015160934.20948-1-anarsoul@gmail.com> References: <20181015160934.20948-1-anarsoul@gmail.com> MIME-Version: 1.0 Cc: Vasily Khoruzhick Subject: [alsa-devel] [PATCH v3 7/9] arm64: dts: allwinner: a64: add nodes necessary for analog sound support X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.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";