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"; From patchwork Thu Nov 8 06:39:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10673589 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 EC7BC1057 for ; Thu, 8 Nov 2018 06:42:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA81F2CF4B for ; Thu, 8 Nov 2018 06:42:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CEDF22CFFB; Thu, 8 Nov 2018 06:42: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=-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 7AA0F2CF4B for ; Thu, 8 Nov 2018 06:42:42 +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=al5O7zqstzBI30v5bCQ1JFIhT6AQdBa1GtyeOmbGO/Y=; b=vBhXViRvDRHxta N4GO2p025U8rLmMryMT1UOOOKTnsK9Wo2Irs1QmGBqSTvZMHieak8fqbblfqPwjdLhYLEiVusho1a xwecuz7n7iRmnw2Xk0ERyr60KPfteFYiSk0Z+wQ+gZzw9FXLDjgesX9DhD1JRh0Kt0gjbvzOU8CAJ CEAoeiBdyvCjUIMkA62TjkXaD/cWMO0vwgR6pk6fZh1MtWWzlrJ0BkaRQCz8nO6U21Tgx7s+BRCy0 G56hbxfO09MH90TmL5actBjsXIbdz+vDlQpmEnIQsgzDzl5h2+b6yTV5+pcJMbbVePQjaM7sa5Xa/ /7kv//uroJ6INmv6bMRw==; 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 1gKe1P-0007Vt-J7; Thu, 08 Nov 2018 06:42:31 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKe17-0006wn-09 for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2018 06:42:14 +0000 Received: by mail-pg1-x541.google.com with SMTP id z10so6556400pgp.7 for ; Wed, 07 Nov 2018 22:42:02 -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=+dD4RIlCf8EU5KXY6Sx8gIBjZCKrBXrCAq/WEPSpBCg=; b=GTMfNEStg95lmbxY4bl+KeJy1hdAL16mASj1QLSf/bB+b2Q7+jDB+PQh2yyQcHtx18 sMMRf6ogcNdsRJGNNqHadMcglYc2+jrYdRwdeYMOmirK8a/viZHf2QKMAwQLmt6+KC69 2f5eUwhKy1OBwzxtHK3DIkrFhSBa06xX22N/rEHPnVBhlEW/biBM+0IGbQ1B0jD7Z2LS TYt8c+zLe5s7PbZvJvK4hfRs9FvGQoPjOt8O/e6ac+ziF+5a82cRY4MsrOzy837iaEdQ vBz+Y6l09uTrzGHdptMAg2XbmZCbLe0KpPX6rK7r+mJvQkq5oixrBFcKFY8Gq/ddrRbZ QGOg== 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=+dD4RIlCf8EU5KXY6Sx8gIBjZCKrBXrCAq/WEPSpBCg=; b=Emdokokdt1exKw45bxrv7Giaidg8LV8sOZwKpMWzjRTWGkPsRLs6Y7z6LzPbQhkXtf 0ShCkKGYpaayLR7J5KHCRV2Q0Tmmdl3Uk/+6ZtJvOgPDQJQ2hvkl0ggD+sqKN9M9JnMJ qvVBo6xNyVMc+7s0N+4iy7bpRt5wugS4a7G42xbkXEFSOe8+z3p9ZccfssDo8e9/OGUa Mf5F+LJkNEIX3H3JPsZ4OJsod1/k6DAnUdveUVw4ubDIpOHMg0ZpCnH6OFxakM4OVAie SerRApPOmxUf4A0rc3ISrOJ9wTkuAHajtVY3XDDYWMCQHyqgwDsio6rIYl8x9TwI5Zfk r7xw== X-Gm-Message-State: AGRZ1gLzYr1RlW1n21h4NiZ9P6flPMTm36NIqgQ82Ru5+QTBU/bsFx4t 8fgLtPzwyZl/aa0FBfb5cxf7SSHN X-Google-Smtp-Source: AJdET5cOMhR/OOpySNAaIYwySeCHRETmJ8GTE6xTwDDHzYsSh+CTNMf7Ws0dTzmm52cjnS7Qg+xRjw== X-Received: by 2002:a63:77ce:: with SMTP id s197mr2830395pgc.89.1541659322371; Wed, 07 Nov 2018 22:42:02 -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.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 22:42:01 -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 2/3] arm64: dts: allwinner: a64: enable sound on Pine64 and SoPine Date: Wed, 7 Nov 2018 22:39:28 -0800 Message-Id: <20181108063929.29720-3-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_224213_035747_C9937E5D X-CRM114-Status: GOOD ( 13.03 ) 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 This commit enables I2S, digital and analog parts of audiocodec on Pine64 and SoPine boards. Signed-off-by: Vasily Khoruzhick --- .../boot/dts/allwinner/sun50i-a64-pine64.dts | 28 +++++++++++++++++++ .../allwinner/sun50i-a64-sopine-baseboard.dts | 28 +++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index c077b6c1f458..ff352bdfbb93 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -75,6 +75,18 @@ }; }; +&codec { + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; +}; + &de { status = "okay"; }; @@ -264,6 +276,22 @@ status = "disabled"; }; +&sound { + status = "okay"; + simple-audio-card,widgets = "Microphone", "Microphone Jack", + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "Left DAC", "AIF1 Slot 0 Left", + "Right DAC", "AIF1 Slot 0 Right", + "Headphone Jack", "HP", + "AIF1 Slot 0 Left ADC", "Left ADC", + "AIF1 Slot 0 Right ADC", "Right ADC", + "Left ADC", "ADC", + "Right ADC", "ADC", + "Microphone Jack", "HBIAS", + "MIC2", "Microphone Jack"; +}; + /* On Exp and Euler connectors */ &uart0 { pinctrl-names = "default"; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts index 53fcc9098df3..25d732df37c4 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts @@ -80,6 +80,18 @@ }; }; +&codec { + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; +}; + &de { status = "okay"; }; @@ -164,6 +176,22 @@ vcc-hdmi-supply = <®_dldo1>; }; +&sound { + status = "okay"; + simple-audio-card,widgets = "Microphone", "Microphone Jack", + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "Left DAC", "AIF1 Slot 0 Left", + "Right DAC", "AIF1 Slot 0 Right", + "Headphone Jack", "HP", + "AIF1 Slot 0 Left ADC", "Left ADC", + "AIF1 Slot 0 Right ADC", "Right ADC", + "Left ADC", "ADC", + "Right ADC", "ADC", + "Microphone Jack", "HBIAS", + "MIC2", "Microphone Jack"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>; From patchwork Thu Nov 8 06:39:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10673591 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 CC7B11057 for ; Thu, 8 Nov 2018 06:42:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB0852CF4D for ; Thu, 8 Nov 2018 06:42:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEF762CFFE; Thu, 8 Nov 2018 06:42:52 +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 54F992CF4D for ; Thu, 8 Nov 2018 06:42:52 +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=X+shnAyhyiE5yiorQrWc/WPGP9c+8dGBXYEN7ac4pP0=; b=nTP/9DGfeoPqEa Rrdi+DlP0zhRlc4PbpTNGstT0Rlo/m87/b2vqA6RJNVrLB7k+SSGbX7tH7FMVARfTURrkMus8kaBv e5EpeBS6WbCKK9kKcs/E44vzg3C4bMEWwvQU8uobJgeBce6XEz/+/InWTxtdXCAVe6oLinyl37H0i 2YgQ/ifDd7wz38ZVFMF9BZmcKoAoGKbQxNCwPpBaDmnD6fmeJpMxsvXlE6+RI4WDsEmk5HYLgZOFC GeAp75pyCne0Gshpo1DYbmhPBoo7O97+iq8YL2bVfmU8CWnIkyuQhcVbcnffs1qnD5mGePrLm7PoS EObaoWIwydLzi2YvT+Yg==; 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 1gKe1d-0007qM-DZ; Thu, 08 Nov 2018 06:42:45 +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 1gKe18-0006wq-Ih for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2018 06:42:16 +0000 Received: by mail-pg1-x543.google.com with SMTP id w3-v6so8422483pgs.11 for ; Wed, 07 Nov 2018 22:42:04 -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=DFpEB9CEr1UB9Nmru4Fp2MdF0TIr5Q8Z9m7VBF3PKN8=; b=Ivg3KzMoraWtGvDD2r0p3w5HSfuQitLpJWx9MmkjFJ0pyrmt02OaHejwP5MqcFRxa7 FuUSxQUK2FA8OriCw3ukjMUGqF7avic6LCXiRY3y/dnRSfYn9q3WON59yazUPWkZB7PX Kaf61oxIDP1DN4xv0j6APOs+P29TrRWPbCAMQzkWkCoHEbe8W+rEgVLjGiC/O6XcGmQC KYvJfhsGk5/BRlF4fkHYtZgEgksVqx6xMtM2gjZeV6/FLE+nETCWBZSBokER3IPtGKIg 9HUTc1AC9n1h1M4ykk8/kCfxCiAZcBqmWQsGrnoqxMm/7HyCYZdmraCWa12kUzKfP3G1 mAZA== 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=DFpEB9CEr1UB9Nmru4Fp2MdF0TIr5Q8Z9m7VBF3PKN8=; b=PNYSQxkf3r9m2MqOwuY/IzicTgYwAkrdO0KIM3unJxRwFb9fmSrA1Jp5cTOwhXPs0W xDGGSamQNFTp1F2Fluk+EqWxGMkoZIhZMnOTSEFe/V59Krr7bHunz2Su+hrFzlClJftq 5+kqcuhSUbutdOXR/ezrowtR+6V+F/ngavnTBj0w7JtAAsjGnHgOZYlSxF9j/jV64iCv bhwl97831pUZ7LhGTrvKnTX92Pu47HsoepdT78kT/bkJzssqcBuJeLqOz7ips1eMoxL/ z7EFAu+Gv7cnI6vNk6eKVSrWYi0ooWM/z2iEy3B0zsEIESYh+oAFoDvjEwP7fYlu1ixw P3Rw== X-Gm-Message-State: AGRZ1gL34ob8mZllhDy/fQdpzEq7a4XM6juBc9EBJeK//N8/z2gJNiBs h2Tnzx6N9ljCBQNkvCK9wVY= X-Google-Smtp-Source: AJdET5fwMieBmMI+fU1tjiLL6lmp0uc3l+noV4h19lmzcWpvmKoBTrqfWu1p/K2jDtkyfHRI7VotNQ== X-Received: by 2002:a63:f844:: with SMTP id v4mr2834960pgj.82.1541659323642; Wed, 07 Nov 2018 22:42:03 -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.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 22:42:03 -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 3/3] arm64: dts: allwinner: a64: enable sound on Pinebook Date: Wed, 7 Nov 2018 22:39:29 -0800 Message-Id: <20181108063929.29720-4-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_224214_626227_A123C343 X-CRM114-Status: GOOD ( 12.93 ) 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 This commit enables I2S, digital and analog parts of audiocodec on Pinebook Signed-off-by: Vasily Khoruzhick --- .../dts/allwinner/sun50i-a64-pinebook.dts | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index 77fac84797e9..73f171f4ba9b 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -64,6 +64,23 @@ compatible = "mmc-pwrseq-simple"; reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ }; + + speaker_amp: speaker_amp { + compatible = "simple-audio-amplifier"; + enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ + }; +}; + +&codec { + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; }; &ehci0 { @@ -267,6 +284,31 @@ vcc-hdmi-supply = <®_dldo1>; }; +&sound { + status = "okay"; + simple-audio-card,widgets = "Microphone", "Internal Microphone Left", + "Microphone", "Internal Microphone Right", + "Headphone", "Headphone Jack", + "Speaker", "Internal Speaker"; + simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>; + simple-audio-card,routing = + "Left DAC", "AIF1 Slot 0 Left", + "Right DAC", "AIF1 Slot 0 Right", + "INL", "LINEOUT", + "INR", "LINEOUT", + "Internal Speaker", "OUTL", + "Internal Speaker", "OUTR", + "Headphone Jack", "HP", + "AIF1 Slot 0 Left ADC", "Left ADC", + "AIF1 Slot 0 Right ADC", "Right ADC", + "Left ADC", "ADC", + "Right ADC", "ADC", + "Internal Microphone Left", "MBIAS", + "MIC1", "Internal Microphone Left", + "Internal Microphone Right", "HBIAS", + "MIC2", "Internal Microphone Right"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;