From patchwork Thu Nov 8 06:39:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10673591 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 CC7B11057 for ; Thu, 8 Nov 2018 06:42:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB0852CF4D for ; Thu, 8 Nov 2018 06:42:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEF762CFFE; Thu, 8 Nov 2018 06:42:52 +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 54F992CF4D for ; Thu, 8 Nov 2018 06:42:52 +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=X+shnAyhyiE5yiorQrWc/WPGP9c+8dGBXYEN7ac4pP0=; b=nTP/9DGfeoPqEa Rrdi+DlP0zhRlc4PbpTNGstT0Rlo/m87/b2vqA6RJNVrLB7k+SSGbX7tH7FMVARfTURrkMus8kaBv e5EpeBS6WbCKK9kKcs/E44vzg3C4bMEWwvQU8uobJgeBce6XEz/+/InWTxtdXCAVe6oLinyl37H0i 2YgQ/ifDd7wz38ZVFMF9BZmcKoAoGKbQxNCwPpBaDmnD6fmeJpMxsvXlE6+RI4WDsEmk5HYLgZOFC GeAp75pyCne0Gshpo1DYbmhPBoo7O97+iq8YL2bVfmU8CWnIkyuQhcVbcnffs1qnD5mGePrLm7PoS EObaoWIwydLzi2YvT+Yg==; 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 1gKe1d-0007qM-DZ; Thu, 08 Nov 2018 06:42:45 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKe18-0006wq-Ih for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2018 06:42:16 +0000 Received: by mail-pg1-x543.google.com with SMTP id w3-v6so8422483pgs.11 for ; Wed, 07 Nov 2018 22:42:04 -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=DFpEB9CEr1UB9Nmru4Fp2MdF0TIr5Q8Z9m7VBF3PKN8=; b=Ivg3KzMoraWtGvDD2r0p3w5HSfuQitLpJWx9MmkjFJ0pyrmt02OaHejwP5MqcFRxa7 FuUSxQUK2FA8OriCw3ukjMUGqF7avic6LCXiRY3y/dnRSfYn9q3WON59yazUPWkZB7PX Kaf61oxIDP1DN4xv0j6APOs+P29TrRWPbCAMQzkWkCoHEbe8W+rEgVLjGiC/O6XcGmQC KYvJfhsGk5/BRlF4fkHYtZgEgksVqx6xMtM2gjZeV6/FLE+nETCWBZSBokER3IPtGKIg 9HUTc1AC9n1h1M4ykk8/kCfxCiAZcBqmWQsGrnoqxMm/7HyCYZdmraCWa12kUzKfP3G1 mAZA== 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=DFpEB9CEr1UB9Nmru4Fp2MdF0TIr5Q8Z9m7VBF3PKN8=; b=PNYSQxkf3r9m2MqOwuY/IzicTgYwAkrdO0KIM3unJxRwFb9fmSrA1Jp5cTOwhXPs0W xDGGSamQNFTp1F2Fluk+EqWxGMkoZIhZMnOTSEFe/V59Krr7bHunz2Su+hrFzlClJftq 5+kqcuhSUbutdOXR/ezrowtR+6V+F/ngavnTBj0w7JtAAsjGnHgOZYlSxF9j/jV64iCv bhwl97831pUZ7LhGTrvKnTX92Pu47HsoepdT78kT/bkJzssqcBuJeLqOz7ips1eMoxL/ z7EFAu+Gv7cnI6vNk6eKVSrWYi0ooWM/z2iEy3B0zsEIESYh+oAFoDvjEwP7fYlu1ixw P3Rw== X-Gm-Message-State: AGRZ1gL34ob8mZllhDy/fQdpzEq7a4XM6juBc9EBJeK//N8/z2gJNiBs h2Tnzx6N9ljCBQNkvCK9wVY= X-Google-Smtp-Source: AJdET5fwMieBmMI+fU1tjiLL6lmp0uc3l+noV4h19lmzcWpvmKoBTrqfWu1p/K2jDtkyfHRI7VotNQ== X-Received: by 2002:a63:f844:: with SMTP id v4mr2834960pgj.82.1541659323642; Wed, 07 Nov 2018 22:42:03 -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.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 22:42:03 -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 3/3] arm64: dts: allwinner: a64: enable sound on Pinebook Date: Wed, 7 Nov 2018 22:39:29 -0800 Message-Id: <20181108063929.29720-4-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_224214_626227_A123C343 X-CRM114-Status: GOOD ( 12.93 ) 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 Pinebook Signed-off-by: Vasily Khoruzhick --- .../dts/allwinner/sun50i-a64-pinebook.dts | 42 +++++++++++++++++++ 1 file changed, 42 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..73f171f4ba9b 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,31 @@ 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", + "Left ADC", "ADC", + "Right ADC", "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>;