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: 10642663 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 6497014E2 for ; Tue, 16 Oct 2018 03:04:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51E6328CF3 for ; Tue, 16 Oct 2018 03:04:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4618E28D6B; Tue, 16 Oct 2018 03:04:03 +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 92EE628CF3 for ; Tue, 16 Oct 2018 03:04:02 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 0C7B62678FE; Tue, 16 Oct 2018 05:03:14 +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 312892678F8; Tue, 16 Oct 2018 05:03:00 +0200 (CEST) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by alsa0.perex.cz (Postfix) with ESMTP id 45F0D267845 for ; Tue, 16 Oct 2018 05:02:57 +0200 (CEST) Received: by mail-pf1-f195.google.com with SMTP id j23-v6so10677332pfi.4 for ; Mon, 15 Oct 2018 20:02:57 -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=X+ZqWPaoGGPYYpAlMCnYv5PuUtJUVZVe1ZMFBtp7/vpbFGRxryVni8V9XQ6UM4BLLA zsC1ZsQgdynjTPh3p8dmcQRkTZyyhM/rh7y6KhWc2HnHsXsKEvJV/xsfXUDobZwRzYu/ 01jvoFmJ7TtGFVXuws+q+NPiw7m/2N1l6Mg59zFkIGUHOSst6PxTyw/QDvqZ5Pzkt8DA +NaRuAudTUlLBQo3vuIET/aPz6/u/2AGNsw/FotzjDcW9IwecZByMwdwO+hs/ttxA/aH 7Y4kEcSiTmZ6voK+U7bngZWcvm7ZvS7Tpz6lrcnnCsxH39RIUhnqVh8dAEyFMgU7rggS j29w== X-Gm-Message-State: ABuFfojMkYWz0w3XmF0HC65njvQnuvY3J41LuPtRvfo9GtJ+SsG4SWk6 TPbqoGeZJInyACqgkpskn/U= 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 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 Cc: Vasily Khoruzhick Subject: [alsa-devel] [PATCH v4 8/9] arm64: dts: allwinner: a64: enable sound on Pine64 and SoPine 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 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>;