From patchwork Sat Oct 13 03:32:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10639869 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 87BBA925 for ; Sat, 13 Oct 2018 03:34:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71EE02B955 for ; Sat, 13 Oct 2018 03:34:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 669522B969; Sat, 13 Oct 2018 03:34:09 +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 BFFA52B95B for ; Sat, 13 Oct 2018 03:34:08 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 422412679E8; Sat, 13 Oct 2018 05:33:15 +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 75ED72679C0; Sat, 13 Oct 2018 05:33:00 +0200 (CEST) Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by alsa0.perex.cz (Postfix) with ESMTP id E659E2679C0 for ; Sat, 13 Oct 2018 05:32:55 +0200 (CEST) Received: by mail-pl1-f196.google.com with SMTP id f18-v6so6774075plr.1 for ; Fri, 12 Oct 2018 20:32:55 -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=hNLSQRmgm6g2pla+BjOde1kPx1OTuOOBalgjP3UUYr0=; b=n4QI6GYziGj/7srmMYCT4pAJSrwwA1+EgbDFJ10Gq2LaJI0m880TTd4OsdwV7shXd4 ZR7xdYFbYlC16PX/+Xq1x2ks8y9jk59CZ2Rs6RpYTy1lXYPczmx5am4yE0fwEiEFwWqN NQGhQbmLihCZVAtg9YsjyUFHD0Wdc024ZEaQ8rbsN2x71iznmG+rtLgwqPLraExTB9OF c/ypvQkUvMJUPr/jNh6xKBGepF6cL5qXBvrUx9W5Rcu50GhUaU/mSZKONHehtSgUrKWv 8akj5AdYljTptXgeAy/Nyaw0IjsJ2xgJJ9yZ7gFG/hCIt38VPs6WDMIaSm6gryYGSh8l Jjeg== 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=hNLSQRmgm6g2pla+BjOde1kPx1OTuOOBalgjP3UUYr0=; b=HV9tRur7m+EG2FsByWIY2rt6VDrINiiou8wFpKzECiH8CoZ1O/uF5TG8qU0TxMLKns g63dBuZD2z3GY6FaHnuE50xmJ0rYappaeHWULBXj9DC2gYWWK2ag0xEmXQrOGO/7Oqss OqAGxivchO4tzFN3ri7k4K9kUmxSdOhBtR58NBQBeiOM1SYODMQnCdfj1IQdAJuKBLXP o8f4JgJV1huhcN1u75XFudq9l2Neet0OmWyyCYUwg+CjpWhU+TfVy47J5ICPEM1P1RKs 2V6xN4j4A0PvhYYBWCnErdYnfX0Ah34k1qa8qDLhE2UjS580wY/3gJ77EXhTDXBZsLxE 8ASg== X-Gm-Message-State: ABuFfogKBKegoqDOhY0oJTuvsYcyjeuRJ0/kVFGGEzeo+UKB33//9bkp xVsOHMkVX5EnJuJLbZx4gdY= X-Google-Smtp-Source: ACcGV630XDsVkfD6t8P58auNrSS0C0OllVnVsIJ5mllFfPxv3+pQl1PW8f0q3X4W3sdUR1p5dcouAA== X-Received: by 2002:a17:902:9a0c:: with SMTP id v12-v6mr8350073plp.159.1539401574873; Fri, 12 Oct 2018 20:32:54 -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 u79-v6sm5565039pfi.104.2018.10.12.20.32.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 20:32: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 Date: Fri, 12 Oct 2018 20:32:30 -0700 Message-Id: <20181013033230.6506-11-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181013033230.6506-1-anarsoul@gmail.com> References: <20181013033230.6506-1-anarsoul@gmail.com> MIME-Version: 1.0 Cc: Vasily Khoruzhick Subject: [alsa-devel] [PATCH 10/10] arm64: dts: allwinner: a64: enable sound on Pinebook 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 Pinebook Signed-off-by: Vasily Khoruzhick --- .../dts/allwinner/sun50i-a64-pinebook.dts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index e2e426334cfe..3145459722c7 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -76,6 +76,19 @@ }; }; +&codec { + allwinner,pa-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; +}; + &ehci0 { phys = <&usbphy 0>; phy-names = "usb"; @@ -278,6 +291,26 @@ 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", + "Mic", "MBIAS", + "MIC1", "Mic", + "Headset Mic", "Microphone Jack", + "Microphone Jack", "HBIAS", + "MIC2", "Headset Mic"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;