From patchwork Wed Oct 17 07:38:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10644869 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 67F0E109C for ; Wed, 17 Oct 2018 07:44:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A52B2A968 for ; Wed, 17 Oct 2018 07:44:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DBEE2A995; Wed, 17 Oct 2018 07:44:21 +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=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 C918D2A968 for ; Wed, 17 Oct 2018 07:44:20 +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=Y9u1Mw8m0XPF8GgC5Tsxe74Pg2crw6O3mGlOTWQO8MA=; b=HC/V5raQ8PoF35 Pu0OTkIfLebijbRHtbC5i5emBUFs4EOc7eka1zc8RF9/LAbHptE+XLFxPNQBFCXRQ9zbuVgSUkK8W H2jBsuyF7kk44M6Ur8KrpZtX9XI/XmQZCBIs+hQny85OEQa6QDKmnmhzXKUaVmLg0UVXweM8gVHEc +5k98Duq8fGYcPlMZ8UdVgCIlC7jcqhws6vOyZ4WkJje5Rdxr+8CxVkfH+I35RiCaPG9hGzNhZo6c hZxjCEjNzD1tefDVuzMhv6Op49l/rC3rQsBv8QwS0Bqm49gqqj83yO/YfQvHkULXMTb4/ybgg/tdu hOP1Ve8sWc2KaDDYEL3g==; 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 1gCgV5-0001An-8l; Wed, 17 Oct 2018 07:44:15 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCgPj-00067U-Jj for linux-arm-kernel@lists.infradead.org; Wed, 17 Oct 2018 07:38:57 +0000 Received: by mail-pg1-x542.google.com with SMTP id c10-v6so12114504pgq.4 for ; Wed, 17 Oct 2018 00:38:33 -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=jOOwPAMWRymH2SGATsfsGImXhUnPETjaMhAUPhnnLq4=; b=lzIMoUEPrbLyDX09k3WdrjjYjoZ8C72ym2Xx38sJur+3morGxu2k7W06UreYRsVqaX 5GbJWz/jrKdlP852Bf3lloO/fH3bsMFU9817ZQNFyzli99G/pX+Xmm2IOpx7JkRGOxCq pxI6jwCzHMDC4wmbOgv2zKJ7uDDxKAd43feg1Wg4/VWLsjCC0gHqBsxNVvrSceXh90V3 tlc1lXgZMlppfcS2OdR8fEqO5baBSHBJQVdMEOHt6Co/k4LqFxUuhVodDQkCZE75eVxg 3G2fcpbiV5pvj9mufFIarVALLW7pcXuMbzV1AMECOKDAJ1stBzt5vy1f2ClJkxLD/Pt5 hQxA== 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=jOOwPAMWRymH2SGATsfsGImXhUnPETjaMhAUPhnnLq4=; b=V1W4JN+K6MO5PnkpIqZZVfTrc+Ne0vsYvmn5jeLj1uJFXi1xqIf52mlfr1swjzqc08 Dxchujmkh1TiferTCaPmvJep8cPoobEha7Rjf5sLE96JZsevV70oIVe9foxELuZg+/rU LgDVdRl0BbUyMpQ2EPIGIlEVjM3BWZhjuS1DhfAGMeqheuBRmMPSd5hbriUZBLL86S+i G6c4MiMnn86f6LgYCbv+c1I+lqfrAYyUwUX/nKEzkJweEbeVG72IbN3KdcpThQV06hlU 8sxwWfMaOojuk3OOAkGGbjh40CX9jYgV2NaILH5BaXNcOdz8qXNqEu4ylUqslwbXCnjq SGuQ== X-Gm-Message-State: ABuFfoj8SmVltioyYo84GL8n/6Ym/lNdcnWyN9ZsXYdoBWu9OPYONyJX lNA7esVGuulqqnuh/CdYntH7QqOBTCIqSQ== X-Google-Smtp-Source: ACcGV63Hfv2138XLC0Mjxtkhw+Nf5g0WA28S1YdXyXPA5s+hy4p9oeFUA60Qh+4z1L2dcVXaoThyjA== X-Received: by 2002:a62:8dcd:: with SMTP id p74-v6mr26096909pfk.217.1539761913079; Wed, 17 Oct 2018 00:38:33 -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 o12-v6sm23426387pfh.20.2018.10.17.00.38.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 00:38:32 -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 v5 9/9] arm64: dts: allwinner: a64: enable sound on Pinebook Date: Wed, 17 Oct 2018 00:38:13 -0700 Message-Id: <20181017073813.14127-10-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181017073813.14127-1-anarsoul@gmail.com> References: <20181017073813.14127-1-anarsoul@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181017_003843_705363_D590002C X-CRM114-Status: GOOD ( 12.32 ) 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 e2e426334cfe..b426a6e2b485 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -74,6 +74,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>; + }; +}; + +&codec { + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; }; &ehci0 { @@ -278,6 +295,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_pins_a>;