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>;