From patchwork Tue Oct 16 03:02:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10642671 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 AFC52157A for ; Tue, 16 Oct 2018 03:06:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D47528F86 for ; Tue, 16 Oct 2018 03:06:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9171C291EF; Tue, 16 Oct 2018 03:06:08 +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 30F3428F86 for ; Tue, 16 Oct 2018 03:06:08 +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=RaPv/vKTHnoaBgGjtauTYJ/IPJ++/fZ4GP1qXuxkcq0=; b=TTbJYLIakgLjT4 uFf8AOxTlP9bGH23/KaoP/fHsI5skUDBtFw25KWy+0FTmfVmCISH5QRnuidnyC38oXxGmYpafNl/V Uqfq0pmN1WgB6Arzf+kVKYIkhRU/IbitY9e1HRqgMgZlWKpAdf9lNuJuEAf9urXFPbtkJE8sItSM7 bBo7jwnoH6iRXq2H7n7zV42LQhgveK8Cm6XAaRnbue7FqZQctK7eOLrzKorBaVaURNCak9/4i1XtO dcZ3TlS03AlB4lZv6ydvbOFPlfAc8b2hndu2q+WUZ78Uk4M/Up1KVnGjKSzPU7ToEj+Lz48I9HF25 zcS+/tDO5do2ikCxOIOQ==; 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 1gCFgI-0002L1-Ck; Tue, 16 Oct 2018 03:06:02 +0000 Received: from merlin.infradead.org ([205.233.59.134]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCFdY-0008RF-Dy for linux-arm-kernel@bombadil.infradead.org; Tue, 16 Oct 2018 03:03:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XDMAWmIokZULLi4Pz9mLE2lsJ5kr+0QJ7pn0DbmBNc0=; b=c+H8hyGClTFOHZGRIRxXKyXAzA O856C2Rr/iLXIQbJVDaZS5IF6vofPFV66dqANEl2qdHktg+I90Ihe6p/HYPmEO6njBX1r0VsbrhRE e6Ig5lKJkk7Z5lfAPvUl9fwFuJ0PGQRJjPm7obtBS1NlnbguEvUXB34+628KogCopbfg6d9nxwNau 4dpybS/rIIzhmGS3l2LXkluugL6hVVqJ+CCGaDl14LtWGgiGO/uMmRK6QRw38uiOhkw8WlegPhfpC 1RAXDgFWAM5iAk2W7fSHjQvKCol00gGnMWBHIlbbqrgVDzT1KRdZXcEa7aClS7dWCBRugvDQe0eLY W52mE/xg==; Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCFdV-0004XP-Cw for linux-arm-kernel@lists.infradead.org; Tue, 16 Oct 2018 03:03:10 +0000 Received: by mail-pf1-x443.google.com with SMTP id r9-v6so10669992pff.11 for ; Mon, 15 Oct 2018 20:02:58 -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=XDMAWmIokZULLi4Pz9mLE2lsJ5kr+0QJ7pn0DbmBNc0=; b=DXZBnC0O4FJ4KSM94W+VAza7uHKbK3Fz0/iynW33bhU3KvkVvFrI7CdXTzme7ze9My F+UvL8Mc/6UzeIYrBhCCCqgTg6Y1GEtgYuoQVrIW7WHmp8C43Zi30qXKzYPNfV/HvWwD S7OyXAcgWwMraFfQU3iPiakKCbtU3PFoHEkK3xUa3DILsuLln6mMua9b2x2DAQkWEBJr 2syexCJecp+rFthd5owGMQ/oykVV/6SSbC7r/Xy2QJU7rmddtgJKmI5Odm9yqfTU1+vV ecpeS4DjAu/k+dfF9Ei63RoygT3eCw/gsfx6xiSzg6S58Kuiv9O4GkA7rAPZsCIYOpN+ y5+Q== 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=XDMAWmIokZULLi4Pz9mLE2lsJ5kr+0QJ7pn0DbmBNc0=; b=cjZU+JMGmGAc63ILrIzwAvi6d9nMn8n1aEWTaYIPwUmGIa76pcSqQN/QmCUWHBoI8x LbNoBBza+T/ZLSd04Ljvi9yyEFM1A8Fhxsh+QGM+qcYUH+TBcwoZV4IKP6fro2U3W3V5 DjZ3HvYIpnrVmmNd/nfBkBrPL6+23jdv15okEamYjiAW/7OaCvAB8v3MlBSttrp5PxEu fhebeg7pIqSWAIu/dDlzXbZ4rOQYHM6lxEySnS8MAx/vSN0OvZyl5utlBdz+7sIh0zQ2 tqZDYg3uwr6quxB9ifiQj11gN7tZ6NAyupvCnCR9mlELNA+yCkgnq5fmBSwCvv6JvSwz By9A== X-Gm-Message-State: ABuFfogYCy3xrQaPlLZuFlwRQdlQf5M47wM6/e8SR1vzJmqSIj+c1jT+ jgiGvx3RCUyYywwYC78mLVE= X-Google-Smtp-Source: ACcGV60ufgfI5SQ6NsHE7MYhF583kXNBJYWQlI2LLq0qch2Ym3LEtgnrduypbHXO0VphFUQusWouCA== X-Received: by 2002:a62:460c:: with SMTP id t12-v6mr13139469pfa.206.1539658976393; Mon, 15 Oct 2018 20:02:56 -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.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 20:02:55 -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 8/9] arm64: dts: allwinner: a64: enable sound on Pine64 and SoPine Date: Mon, 15 Oct 2018 20:02:38 -0700 Message-Id: <20181016030239.15449-9-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_230309_715214_1D4B94FB X-CRM114-Status: GOOD ( 12.34 ) 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 | 29 +++++++++++++++++++ .../allwinner/sun50i-a64-sopine-baseboard.dts | 29 +++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index 1b9b92e541d2..2d67da43fcc9 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -64,6 +64,18 @@ }; }; +&codec { + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; +}; + &ehci0 { status = "okay"; }; @@ -238,6 +250,23 @@ 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", + "Speaker", "LINEOUT", + "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 c21f2331add6..a556b1733c9a 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts @@ -69,6 +69,18 @@ }; }; +&codec { + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; +}; + &ehci0 { status = "okay"; }; @@ -138,6 +150,23 @@ 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", + "Speaker", "LINEOUT", + "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_pins_a>;