From patchwork Tue Oct 16 03:02:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10642669 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 5132014E2 for ; Tue, 16 Oct 2018 03:05:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EC6828DAF for ; Tue, 16 Oct 2018 03:05:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 331E728FA9; Tue, 16 Oct 2018 03:05:16 +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 9FF8628DAF for ; Tue, 16 Oct 2018 03:05:15 +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=Y4j82TCsjS6Z13 c4g0Am3CWf9Rvb/5n/okFpCfmefxSor6LQ6b73h0QyQwnVvz26D1nMVnSyn5nE3TP4pJZQG+f4pk3 JJ5gfqCbQPbkCvsqaBsuvjg2lWA25mwB+MIPSEDxxmd9ugRZCjHXyiGitIRxITPA4GZ72XJwNWrdJ d8i0VK4kLCRAkjCDohMEB5tIGVGuw9kC2/RIXUACGhtSwLK+IYMMdzKwn+VnXbVWjtdVdnExCjWOh pzIul5UB6FmPVK5NJLPsT25xQBHwXrNgyzNblvYHkTEVCBh7wu7k/UslXlUjWGJpgFG03ds87/fZ7 rg2+LzEAl/RfChZPKvjA==; 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 1gCFfS-0000vL-PR; Tue, 16 Oct 2018 03:05:10 +0000 Received: from merlin.infradead.org ([205.233.59.134]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCFdZ-0008RF-0L for linux-arm-kernel@bombadil.infradead.org; Tue, 16 Oct 2018 03:03:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jOOwPAMWRymH2SGATsfsGImXhUnPETjaMhAUPhnnLq4=; b=aSsKensmutvp8HvgeAQkbKFDL5 EzcZQuAa/8q1NfKTKewomR59shx2Wz6LDlDl4IGhOzzqvctPGuZvRp/erjDkmWoIQvrmXDNEHyYdZ V4eilM/EVpBzmzml0LHuh7sUH6uf/6SpM7R0qOxg73vNreIflvXZaYXYZfpJFv/CMg4kb2SL4smjD zrFVo/+NjxQobCWvF9aXSD6dpW7J3yc35OQ2MjU0p+6wFF7lIlxS356jSbNayzhnAWxTPsC9qVDar X6/OO26eKFOC5y+Wh2XF87Ca1AI7TM3nrXrBoMxzSCBdNaHxFxPkVdQFbC95X9Z4xzPRdePc1JD7N qVhWPT2g==; Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCFdV-0004XQ-WC for linux-arm-kernel@lists.infradead.org; Tue, 16 Oct 2018 03:03:10 +0000 Received: by mail-pf1-x442.google.com with SMTP id j23-v6so10677361pfi.4 for ; Mon, 15 Oct 2018 20:02:59 -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=Zz24afrqm9Ucs4r7W4u4Urpedmr4vfUAZ3cQOP++wY6dsNhM8iKEutuP7rhmmLE51h 1LweyIYcSJrJJqiaW5921unZCzbuf197TLK6Qzav3MxF4uRkSJxMdTaTwdfFQu22eJ9l eSJxJtuO92Gy5qVWtcA/ZD3gmdgDCRCiiUBpA8Ove7/oUHkxX8fmXEu6KTtsAj1EANaf TSexTOrFxh4NCa65Dmdf5dfJxx6YxcUXp/ebzSMG7pAO2vQrTb+brRC9nUqmqQ1KjpGV xM5IDnOG97pNrlbc/71SQyIxOddlYq5sGj2sz2z6gXvtXd9BtSftItMp0HDKr1LMTB2E bKzQ== 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=GXeFwVT66opfTkKNWhNyukvSKGea/i7edpBaqkXfn9c+T9eX613OiBj4trDfY6cTzL 6ya66HCpXxP3DYjiFaA3Npv5IRZDC93fhzGkQcstq9GL4WWVxE/jNU8R6l9qYArumUdm IidSkvIfcQejMQodd1RhLIGQLRbs/Fl+5qKdwIS0kwK+7w9it4oL+8WQ6L4EZ3j5pZ2a YD2EV1LA9lCpKFOsrKgMbUySWvuwinepOER6+x8yQtJ3ZNLcj5YKJnAPhANeNcxBTPmR BbbQyxzWXde9xPRhhX3FEjxei8dKSxPB6eJ5jCFZt5bYDP2TBa3hPQ0kfMuL6dgagKn/ Z5Vg== X-Gm-Message-State: ABuFfog8/f3AqK5SqUf4nQ0aVLSa3d7/UokmoF6HkUp8agB7G5jrGyTw fM7jo2KZ5gNYQZwVBlDQanM= X-Google-Smtp-Source: ACcGV63xNWL2eUtdFykm2V3heDQxW/pn9SxjhqqPOywNa7IywNN3rdTojzU0bxZw/xxImdvEJq4XUw== X-Received: by 2002:aa7:880d:: with SMTP id c13-v6mr20483872pfo.251.1539658977404; Mon, 15 Oct 2018 20:02:57 -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.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 20:02:56 -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 v4 9/9] arm64: dts: allwinner: a64: enable sound on Pinebook Date: Mon, 15 Oct 2018 20:02:39 -0700 Message-Id: <20181016030239.15449-10-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_230310_116163_23BFF0E6 X-CRM114-Status: GOOD ( 12.77 ) 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>;