From patchwork Fri Nov 9 04:24:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10675297 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 A922813BF for ; Fri, 9 Nov 2018 04:25:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 966B82DE49 for ; Fri, 9 Nov 2018 04:25:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A69F2E659; Fri, 9 Nov 2018 04:25:50 +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=unavailable 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 0E6E92DE49 for ; Fri, 9 Nov 2018 04:25:49 +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=V4AatvgLvqAqr5hjqixQK5eoJAB9ewPFn/78qxJoSrA=; b=GHHb2wNqGaajq9 +mjTfy9x/i6B+zKRQC4WX70n/BTxFH4ulZwIGtpjTexkTNiJThJI28zjXdzl6ybu/Ny6A8RzUcPqt 2P9FyfS0MtQcQ0j9A/su4sOAWH6nnxYxQ97IyToWWK9+zz87uQ+1Cdf4ufDpBfyMfHLJlE2ZA1z9w NTovsQyu3zhdkohZ85iD6NI/wwIfCL4XUFS7IMTIJvq0jmi8tRgl8nK0VUQLxnkiHHfmnn1IW2iee JVBqsNukWdC9A5r2pVQdGi+E5tX6LFhDuiGbNv24MdDwE4i5oNBQxspghteYcTj0jh960K4RPfBv3 ZQQ7anzUaRHBromvZCAw==; 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 1gKyMd-0008Sg-3v; Fri, 09 Nov 2018 04:25:47 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKyLi-0006H8-44 for linux-arm-kernel@lists.infradead.org; Fri, 09 Nov 2018 04:24:51 +0000 Received: by mail-pf1-x444.google.com with SMTP id u10-v6so329575pfn.9 for ; Thu, 08 Nov 2018 20:24:36 -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=XsI6liqRm0Icct1UwElzJzz0WL5cnOhqGHow0nya2E8=; b=a4d7VFXDruYnIo5HJVbxmT7ILPu3YeAaGoJPAvudGws/g8fc+x1PHvfOAPkfpGRuNc xFL+X+3JO/SLdzrADSdNLKM6ym5gBE+FaBNzmP7Mc8OMZCXbjlEoWjT0NOAaFj9RBEP9 3vKpIRxN8xzzqelNf+ukab6PawW8Ym2bwTQWn5W0zdOw5o8iVQx2hKTsUmnEQGNh4sYk WjsWwGOpnhtOK4DOMxybXutBkI4tCyEAg0kOLY8vlQPxPp4lknFmu9NU0hSchSifAPUA DpYGvvGwm/1Jom2wzcmarU7avBw+BiNFvYhQOGH2wXNk54lNlUeqxHi6NGUe/E4U0rZu 02tw== 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=XsI6liqRm0Icct1UwElzJzz0WL5cnOhqGHow0nya2E8=; b=s4o5bZCOeHGt0bEZ0TpKfbbrzYV2n6iXyWPNJZQCIw6LqvmRT/nVPIMbu0Bh8BrdoX ZetwLfOarsymXBWZuAXg88lGGaE4UBnFY/0/grRjWBtBuzL1juMvlgzOD1NMLeKjJcMG k4Zw0wJ9JRn6YN1U5zpaPJ1CLQ6ojr03iqeJfH5FD05Ot01egRwWgJn6YwdvDQgjaNOI 6w/olr9xX6Hp3p5zU2tsYdnGlRxzM04zRxY9EZQwL/DhdKARcPGv8btL+l7eNU/es1Fz beZkr/YpRiAR52RMnGu7e98GsYQi9b3DTWhURM8skLHm1AW/B3uETb/qFj5u+3HUOGTR rKcw== X-Gm-Message-State: AGRZ1gJOcWCUe2XbFAy8Qt0g9tmsGM4MpFI2E9iAXCRCyPBqG7Vhg5S4 gMhRmzJR3oxXhUXd5SiLhN0= X-Google-Smtp-Source: AJdET5cij+BKCciv+ccpu9ON8gl/yfrvnxxVpu6ENBt8RSmX1+nHQ5yrpPeuIEJXspaF2QuJFTNb6g== X-Received: by 2002:a62:5210:: with SMTP id g16-v6mr7418806pfb.256.1541737475757; Thu, 08 Nov 2018 20:24:35 -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.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 20:24:35 -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 3/4] arm64: dts: allwinner: a64: enable sound on Pine64 and SoPine Date: Thu, 8 Nov 2018 20:24:21 -0800 Message-Id: <20181109042422.25653-4-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_202450_159074_437FDA5F X-CRM114-Status: GOOD ( 13.15 ) 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 Pine64 and SoPine boards. Signed-off-by: Vasily Khoruzhick --- .../boot/dts/allwinner/sun50i-a64-pine64.dts | 25 +++++++++++++++++++ .../allwinner/sun50i-a64-sopine-baseboard.dts | 25 +++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index c077b6c1f458..aba40b4c5216 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -75,6 +75,18 @@ }; }; +&codec { + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; +}; + &de { status = "okay"; }; @@ -264,6 +276,19 @@ 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", + "Headphone Jack", "HP", + "AIF1 Slot 0 Left ADC", "Left ADC", + "AIF1 Slot 0 Right ADC", "Right ADC", + "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 53fcc9098df3..be45e2a287e1 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts @@ -80,6 +80,18 @@ }; }; +&codec { + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; +}; + &de { status = "okay"; }; @@ -164,6 +176,19 @@ 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", + "Headphone Jack", "HP", + "AIF1 Slot 0 Left ADC", "Left ADC", + "AIF1 Slot 0 Right ADC", "Right ADC", + "MIC2", "Microphone Jack"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;