From patchwork Fri Nov 9 04:24:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10675293 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 7479613BF for ; Fri, 9 Nov 2018 04:25:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62E972DE49 for ; Fri, 9 Nov 2018 04:25:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56BB62DE75; Fri, 9 Nov 2018 04:25:27 +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 E44862DE49 for ; Fri, 9 Nov 2018 04:25:26 +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: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:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=g9W+vLYIDTsq0TYnWSoGpuMPWPUJ6CRJMjimFmNPBrE=; b=hsxHf5KoIMHSXS g36a8uGjdW4LwpdNXXCq2eEfdqFOvZxvzqXcUC/RD4MXx3YP0c02dPovT6vgsNw1x4m83kVHRe+3a 7ylUE0zRbrZ5No+84OnO2wpnC9dEkt38UXlZ+E/UmJKpUzdl562N9y6nx7lHfvivuAZJNRLO5LsK0 Tqx/AJOiD8v9BZ53SERLwAUG/7eQ/z2HSxhFKaLeJCqC3Cu73NUR5zKMJWSChLHFAxNYH1XZFbV33 QfGeZO/QAEUdh75vD4n6utq0dNaNpxch7eDpnQxQLqpFLLR3NqqjjgF1Cxwqer08eVmJeLL6sPmV4 f+/2oJfTEfV5sp4IUb8Q==; 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 1gKyM9-0007yQ-T5; Fri, 09 Nov 2018 04:25:17 +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 1gKyLh-0006H9-4s for linux-arm-kernel@lists.infradead.org; Fri, 09 Nov 2018 04:24:50 +0000 Received: by mail-pg1-x541.google.com with SMTP id w7so291872pgp.13 for ; Thu, 08 Nov 2018 20:24:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=G+RX/XTDnH8SuA0piGZ4cLJUbmY7TC6rn7MVdOwvqE4=; b=EqvvyFifydwDlvfI3oOMZh8dznvsUXcLb+uSgx8yc0PhFd4WPK9kGnGiAqjB+gnwEA mtQzvd2s4K4PgtYSeK4El4C3gZoPIbHzBniZTWFVgoH1wK8Va/z4sRcW/hAaWvB2o/x4 nf3ICVoLx4P4fBCcNuPzbC3S3vuvniB0KJ8JXeRTa7cPwAAvJdYVsigliMZ9B+OADgu6 sgXU9NZ9wBR/YEg9tIyTFb3m/x/g5+78+pX3L7xUu8u0vX8FP9kHLE0WxCaF31vuNuHW GzLHGs8zOfCXksQEe3ZEjxwoAn0RtKguwnFNV6wlgSYASJXSLvANz+IXyr6nCtBg9Uy0 QaLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=G+RX/XTDnH8SuA0piGZ4cLJUbmY7TC6rn7MVdOwvqE4=; b=qVrpWvjPb+/aa4qnCZlSE8w6X+YylI36yr2ZntJpctx8s/XiGNrDKprx1etx6KF/pI GwCrOpTC4Y0t7BueczS1gDi6Zmg6C+pTcK8q1VdEUlvxxI94TVp9Em/PdZoIjLzoOO5h ly+RBsI/FS1PmPMR+JOD/j11dQYiSUTqAdIzT35YTjLryz9bGy795valGCX46SmuRRss 6pk0WmjuDwr5GtADGBPtrwbWGY/QBp1bp0ZNJV4l6KYBscr2WMpNIBUnlyjTbcTeUKNG vQ34YNaa80VJlYng8nimWnvE1Ew4edxHdYzj6neuRMPafQA65bwP5RQN4PevRCXgvzTR qBKw== X-Gm-Message-State: AGRZ1gJtVbCbxBNLv9RHFtCzejqmvgu1BFqjt4Kmh5DL0DvfTrvHCiQL cVgTwWwAFZBM+b052JMbKSw= X-Google-Smtp-Source: AJdET5d0GOscQFdQ6vC6TCI4eTIoCyW4kBhlQLskdHTiefNG4NGOrJdcT5dHn3KeqNJFqM4R9XJy1Q== X-Received: by 2002:a62:db44:: with SMTP id f65-v6mr7462806pfg.94.1541737476761; Thu, 08 Nov 2018 20:24:36 -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 f22-v6sm6018442pff.29.2018.11.08.20.24.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 20:24:36 -0800 (PST) From: Vasily Khoruzhick To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Vasily Khoruzhick , Mylene JOSSERAND , Kuninori Morimoto , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH v7 4/4] arm64: dts: allwinner: a64: enable sound on Pinebook Date: Thu, 8 Nov 2018 20:24:22 -0800 Message-Id: <20181109042422.25653-5-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181109042422.25653-1-anarsoul@gmail.com> References: <20181109042422.25653-1-anarsoul@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181108_202449_185771_F0B3322F X-CRM114-Status: GOOD ( 12.84 ) 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: , 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 | 40 +++++++++++++++++++ 1 file changed, 40 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..ec4dd9877355 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,29 @@ 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", + "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>;