From patchwork Tue Oct 16 03:02:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10642779 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 8553C112B for ; Tue, 16 Oct 2018 03:11:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7187A29883 for ; Tue, 16 Oct 2018 03:11:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 660872989B; Tue, 16 Oct 2018 03:11:00 +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=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 D1E572988C for ; Tue, 16 Oct 2018 03:10:59 +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=Niwb84hdJtw4jz GYgmCcY1mUVjp8Bh/bU3bU7QjaObz29eU6iQ6xT6vZ1eV7Ywq3cqEsKmXXfhSzmAS+ml6h3fKW0Zo 9NZfvu5Pho+y5HgTf3zY+1OMfviGsyWWWC19rwh7FPhZ27CXnujaqSlgcXU4A9yZ5M98+vXS+Fed5 0wh2i3j3LvhPiOWgrzh3T9+kokhtO2q+ZPGiF0aWaATFGG0J2WGG5it8bvdTuNdM78ktJZ3W7prWb H8xuQwJrA5f0ydCJfk1omVk19yanSGHoIcu8vHOSbnN5bt1i7AY0HfMICsOicwt1jp/e86ZnKunZy OH+fNhT+SSQyNb1v7jXA==; 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 1gCFkv-0005Ya-6U; Tue, 16 Oct 2018 03:10:49 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCFdS-0008Hs-CM for linux-arm-kernel@lists.infradead.org; Tue, 16 Oct 2018 03:04:34 +0000 Received: by mail-pg1-x543.google.com with SMTP id f18-v6so10118883pgv.3 for ; Mon, 15 Oct 2018 20:02:56 -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=diRNfi86wvsSypzmgAPiTi5Jr7rbQq8oVu0KEGVE40ug1Dj/qerTTdSDcrhllHzV6P DuMbS2JhXLP6TFVI7ChA7OQJLIUSXKV0EqxSCE117hiHun99Fg0VSPdbzzOPnpgbUIOG 1rV2qbl68SN2kaJI8VkL+SLKKmCjnj2vfDN5HP4v3tQ7+dQwVHHZ1wJSLggMzmVpVezI misN8RT3ULGrLLf8moWLQ1uSgyRyqlQMC86CIZR0kfIzq4IUJKeafaQQNnH5sr8DlhyQ z9/8rzgib6GD3VhlKoGXp5SnI5b5cnklA74tuVjpxEUDqi7Y1kcE0AjxM10IIhCn5w69 kaRA== 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=AQ/B3uJBV7U8aYHzvnQ03H9s37c4aF06bzNA0t95htiS7QQUlh0t07/P1/UVtba4Jv oTDfrespv/noxfhqEVSQ27fV+mMOAVdpTgDKPafVhWiXQWvw9fIFo7f/JjvG1OOqms7P ja9gv/D7vbuU2sb4uCbKtN+GgJ2k6rqri7EuFPWO8CCt0HaLxHXC8srKWykKsbvLaJl+ 1Ka3GuRCkT1GIPWuR7C+ryRPfVozjNi+QKGNjcUD7rYVWsWCOgx6ffF7UwcVDSXUKQrv 6Xd3tiE3hymlnNSV/V88NxQNmVOIlGn5vWOY3d3u2b52xzvQ9WZOSNgio0/0zW0rAQls MoFw== X-Gm-Message-State: ABuFfohVak60lcB6SmvkRc/1vgYzh7txdEloM2qocJz/cKXMOZ8ERs7L HLcsNzMI+zPHrMxXhcAVxdk= X-Google-Smtp-Source: ACcGV62N4J53WAtpZ4m9XGZxaobvReAhEf2FO+WSU7E+Rz1qyUKbaOVbtI9ES9baUDJrcU/KpUEmiA== X-Received: by 2002:a62:4c3:: with SMTP id 186-v6mr19943425pfe.156.1539658975160; Mon, 15 Oct 2018 20:02:55 -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 p18-v6sm12812390pgi.5.2018.10.15.20.02.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 20:02:54 -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 v4 7/9] arm64: dts: allwinner: a64: add nodes necessary for analog sound support Date: Mon, 15 Oct 2018 20:02:37 -0700 Message-Id: <20181016030239.15449-8-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181016030239.15449-1-anarsoul@gmail.com> References: <20181016030239.15449-1-anarsoul@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_200306_469792_71C189D8 X-CRM114-Status: GOOD ( 13.07 ) 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";