From patchwork Wed Oct 17 07:38:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10644859 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 5FA9A109C for ; Wed, 17 Oct 2018 07:43:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F2D728564 for ; Wed, 17 Oct 2018 07:43:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 427F128DE4; Wed, 17 Oct 2018 07:43:46 +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 D30EA28564 for ; Wed, 17 Oct 2018 07:43:45 +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=RaPv/vKTHnoaBgGjtauTYJ/IPJ++/fZ4GP1qXuxkcq0=; b=M/O4QMj4viBv3X jW+50+aXVmOMVZyu0iITbrM6BXpDKuucllpu2tRJk05BoWT1xPBA8xMmrZ3E3ZgUFkIgSyKKkv7r3 3vGFsjvKp5CpC7yRz6tvfX2fJYR0lzTXYcbmJ/TUk9QeiZ6a7+lQVcBYwk51r0zw6pVGnNlHfBImA JsVV4maXbnCdpe+eC/pW1hWdAL3Dz7FV1lgE67tzFKT+XTgQJ52h4moOUFpcG3pWrofYxEPib22+O pAXctxhFDB7IeNA0LWeJabKs3SQW9QwpHEWx6tR2KLveFIkTcsIyIV1tUqJii3XokFunq0Qt+Fr09 17UX9iaSndNB8W0q2m4g==; 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 1gCgUQ-0000u9-Jj; Wed, 17 Oct 2018 07:43:34 +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 1gCgPi-00067T-NW for linux-arm-kernel@lists.infradead.org; Wed, 17 Oct 2018 07:38:58 +0000 Received: by mail-pg1-x541.google.com with SMTP id r9-v6so12113827pgv.6 for ; Wed, 17 Oct 2018 00:38:32 -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=XDMAWmIokZULLi4Pz9mLE2lsJ5kr+0QJ7pn0DbmBNc0=; b=XXl3Uwd0D4X0f4/Cz65/icQbNKg/PREYc4tZ+IMIaoofDmhntI4mbjf5tXnFhqkwlL i/SR6HsMZi9UcVnjz90l8YuiHU02WQJKbzgl44/Bf1CSpEAzwaYwxWRrYhORBVMk5UQi NnMHVYraFu14lTb56nCrCOECyDwQASQGWCSg/Ge4g9PsdJFw6Yo3+UbSqH0OtqsAUA4g HkQ9m8/XDsb1yMZic3fDmbM+5Zo6Y5KnAG5htWvsaUrHkPIyIaGq3sj7cRBLurNrrukw 3fFvNcgxBMujnCfOWzCd/ayNnsKkqI3QJ2kmBRLpRub1srPWqOTtGDnsgQu3Kv5lJ4EE nlLg== 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=XDMAWmIokZULLi4Pz9mLE2lsJ5kr+0QJ7pn0DbmBNc0=; b=OSu9/2EYOOM8ZXA3lGR+MR5n6Jg12kL+fpVo8x4CQt/cGXythmKKsnqwYpMehME+aW lzjrsbeIOKCJznhZd2F3e1qGkLwzqcgeU+sIOn0xitFpRgNhREglRyrE4GeQwthU+ceY yifzxacDzhQ2dsqOpmzhGJvnl4SefSTGO6K+sRLNXJ5NYGeMIPZJlA3QQIpffLKK11fE R8Gm0x75dqI/P8W2vgP2ALc6MfYeEQevDIZT2e36iu8Kg9COU1zvrA/C+k5i1FalKujT vgfBk9zmXwIUOnJGEgVpZ5/ty7+FslRRMW0Z4EmKL9XHk8bDVv+NIoFcGa0CCdCGQN4A Bjtw== X-Gm-Message-State: ABuFfoihy+ioHBAJTwDqSIY29UTZ3OYb77w/eD5egGJYC1ZQY8wMhVn8 Vhc3InGDxyS0W7FtQvYHjv4= X-Google-Smtp-Source: ACcGV61iolTZnzV2cRfr+hRM0YKcFfrngdI/XxGBWW8iODGTO6APX6yo1d5N/wsxDJTBfxgYxWgksQ== X-Received: by 2002:a62:dd01:: with SMTP id w1-v6mr25240402pff.129.1539761912087; Wed, 17 Oct 2018 00:38:32 -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.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 00:38:31 -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 8/9] arm64: dts: allwinner: a64: enable sound on Pine64 and SoPine Date: Wed, 17 Oct 2018 00:38:12 -0700 Message-Id: <20181017073813.14127-9-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_003842_847606_122CBDB6 X-CRM114-Status: GOOD ( 12.90 ) 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 Pine64 and SoPine boards. Signed-off-by: Vasily Khoruzhick --- .../boot/dts/allwinner/sun50i-a64-pine64.dts | 29 +++++++++++++++++++ .../allwinner/sun50i-a64-sopine-baseboard.dts | 29 +++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index 1b9b92e541d2..2d67da43fcc9 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -64,6 +64,18 @@ }; }; +&codec { + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; +}; + &ehci0 { status = "okay"; }; @@ -238,6 +250,23 @@ status = "disabled"; }; +&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", + "Microphone Jack", "HBIAS", + "MIC2", "Microphone Jack"; +}; + /* On Exp and Euler connectors */ &uart0 { pinctrl-names = "default"; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts index c21f2331add6..a556b1733c9a 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts @@ -69,6 +69,18 @@ }; }; +&codec { + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; +}; + &ehci0 { status = "okay"; }; @@ -138,6 +150,23 @@ 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", + "Microphone Jack", "HBIAS", + "MIC2", "Microphone Jack"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;