Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2171408ybv; Sat, 8 Feb 2020 15:43:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyXLjSjIErk44EWo0wtfhCR7OZ+O5NxG18nZ3H2GqieUamhs4RCAM9anLhByNOIk155VHve X-Received: by 2002:a05:6830:1d4c:: with SMTP id p12mr5230829oth.198.1581205410280; Sat, 08 Feb 2020 15:43:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581205410; cv=none; d=google.com; s=arc-20160816; b=YsZ1zOKfbxhk7BehOxH4FvEoP3VQnloah9/u5jA2sbAV7MG07Au1kX61VzM/QOxomC cXtgFg7ZKuNXyUmkFUO2Po3vovMwaaoJk+iAXbR348rflkL8JzId73ND0tLa89krBURv BB729LvAFWUdnCFmyDvEQiHZ5rZ30DPiVesmcU5eKNFA8JdpnkTKffcsh+2l54tfJxa0 qAzH8D4SajZVFLsd1DQw6NerSA3RtCDs3lvUXxyRo6t/UFvoj/5FPMc1Hbet1Z48Fofh nls80SY2qXhpawYHoUyIXPjQC608QVfJWDultXnmr45qrFK/hxs+uzmGmPMzntGVdr3L MibQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9bKVTe4EPYnW80XaiR29zvqneXX7nsNtUaMWPb/m8U4=; b=kJVoEl8e4hzXOZ/Y4YxW4kQJW6VEHnQMlL+bh+dGAZs8XTcYkqEfalCZ1cGQdoGqTI ZixzExtwaBKp/TGea7N66xtiQ9AC4YdaFtZ/12yh55zZessVFwkfoR5Xa9RnHbPeAX8g UMo22/Qadslkyh2289ieCyK2baFZWljY01nNd+6EXaIDZhp+43r6ofDjQYxSlib9Cqmn qS1Vfphzi8kXCFLxoC2t4PV9YsF+Phypw4O4ABWR9goatVsR5+vyHx/RW/oXXcVhyJn1 2DTP71oI1X2A7yTWhv7l2j/8SFikSdVrz7akP8S2X+BEDT1XCEmK1BeisI5J7ynS/TTF Nf0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H65l2JSE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e15si2239889otq.237.2020.02.08.15.43.18; Sat, 08 Feb 2020 15:43:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H65l2JSE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727542AbgBHXnI (ORCPT + 99 others); Sat, 8 Feb 2020 18:43:08 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:46833 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727524AbgBHXnH (ORCPT ); Sat, 8 Feb 2020 18:43:07 -0500 Received: by mail-pl1-f194.google.com with SMTP id y8so1259106pll.13 for ; Sat, 08 Feb 2020 15:43:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9bKVTe4EPYnW80XaiR29zvqneXX7nsNtUaMWPb/m8U4=; b=H65l2JSE2PhRMpq539YzAsWekK8mIqeqNmO7OJi+INifLQvdbictHYzSq6La0KAsAg KYvRHLMEMh8vtZnjlh5ekiiTcdvRtGnMX4wKfrSVw3f8NtcqHx1d08u/c0XVaMImUPfx 9dkUNwVR8yXtOH2QIBAO7N4cnfrftY9+hJ7evyTRbT5pJKtW/H41WP4lpuQBCWbQqZWp 4dgjm92BFvAxt3B1a0N9K5yxhfpFDlBeKhtcN6tSwXJVetg3lbHHavEA9/bFmvYYkQh4 wqsGBLwSPt0OqWI8YejGmuMrFuosbOCelh5RPGJFRrEJsB3eKSWRbh80Dp6MgY9Au5da hLXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9bKVTe4EPYnW80XaiR29zvqneXX7nsNtUaMWPb/m8U4=; b=CJ3p4httdTt86277fXlpF6kvzAcj5mqesd7EXnX2Rrn+mVooq/+Pw0aKHiZGW4sfg5 k67Xt4fu2nQxWDbuJbUQA8SZZE6s6sjyrlcof8OtwVSpneFk0sOq6vCT0IyzzYtTkBTT s/SQjl16CFi6eKYrgSsUeUz+37R051vhnSR0i61d+p1+igTNVKNsqmFQQHkoUHi8CE2I 3d+TkB27/Cchd4OGgSlMdjW0wGMS0o7vVn2EtV8AMLJP332/6eijzhfrprtxCJUpdUQO AOf+ugPi8IcUElxdXoAIkNmqkJZ55ms0nhOdTVcMswGg4R7Oc/XAOqbb49NgHQ2H46Tw ZTWQ== X-Gm-Message-State: APjAAAW+n0HHefBohWp3khFsApsL9q8s/MUFcbyLwdv8oQTa6IRQEr6X LM5vXnbCGq6Yrp/kJXjjC4koBA== X-Received: by 2002:a17:902:5ace:: with SMTP id g14mr5735961plm.311.1581205387061; Sat, 08 Feb 2020 15:43:07 -0800 (PST) Received: from ripper (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id r17sm7535567pgn.36.2020.02.08.15.43.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Feb 2020 15:43:06 -0800 (PST) Date: Sat, 8 Feb 2020 15:42:20 -0800 From: Bjorn Andersson To: Adam Serbinski Cc: Mark Brown , Srini Kandagatla , Rob Herring , Andy Gross , Mark Rutland , Liam Girdwood , Patrick Lai , Banajit Goswami , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/8] dts: msm8996/db820c: enable primary pcm and quaternary i2s Message-ID: <20200208234220.GC955802@ripper> References: <20200207205013.12274-1-adam@serbinski.com> <20200207205013.12274-8-adam@serbinski.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200207205013.12274-8-adam@serbinski.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 07 Feb 12:50 PST 2020, Adam Serbinski wrote: Please make subject "arm64: dts: qcom: db820c: Enable primary PCM and quaternary I2S" Regards, Bjorn > This patch adds support to primary pcm and quaternary i2s ports. > > Signed-off-by: Adam Serbinski > CC: Andy Gross > CC: Mark Rutland > CC: Liam Girdwood > CC: Patrick Lai > CC: Banajit Goswami > CC: Jaroslav Kysela > CC: Takashi Iwai > CC: alsa-devel@alsa-project.org > CC: linux-arm-msm@vger.kernel.org > CC: devicetree@vger.kernel.org > CC: linux-kernel@vger.kernel.org > --- > arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 113 +++++++++++++ > arch/arm64/boot/dts/qcom/msm8996-pins.dtsi | 162 +++++++++++++++++++ > 2 files changed, 275 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi > index dba3488492f1..4149ac4147a0 100644 > --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi > +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi > @@ -683,8 +683,31 @@ > }; > }; > > +/* PRI I2S on QCA6174 and QUAT I2S on LS each uses 2 I2S SD Lines for audio */ > +&q6afedai { > + pi2s@16 { > + reg = <16>; > + qcom,sd-lines = <1>; > + }; > + pi2s@17 { > + reg = <17>; > + qcom,sd-lines = <0>; > + }; > + qi2s@22 { > + reg = <22>; > + qcom,sd-lines = <0>; > + }; > + qi2s@23 { > + reg = <23>; > + qcom,sd-lines = <1>; > + }; > +}; > + > &sound { > compatible = "qcom,apq8096-sndcard"; > + pinctrl-0 = <&quat_mi2s_active &quat_mi2s_sd0_active &quat_mi2s_sd1_active &pri_mi2s_active &pri_mi2s_sd0_active &pri_mi2s_sd1_active>; > + pinctrl-names = "default"; > + > model = "DB820c"; > audio-routing = "RX_BIAS", "MCLK"; > > @@ -709,6 +732,41 @@ > }; > }; > > + mm4-dai-link { > + link-name = "MultiMedia4"; > + cpu { > + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>; > + }; > + }; > + > + mm5-dai-link { > + link-name = "MultiMedia5"; > + cpu { > + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA5>; > + }; > + }; > + > + mm6-dai-link { > + link-name = "MultiMedia6"; > + cpu { > + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA6>; > + }; > + }; > + > + mm7-dai-link { > + link-name = "MultiMedia7"; > + cpu { > + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA7>; > + }; > + }; > + > + mm8-dai-link { > + link-name = "MultiMedia8"; > + cpu { > + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA8>; > + }; > + }; > + > hdmi-dai-link { > link-name = "HDMI"; > cpu { > @@ -753,4 +811,59 @@ > sound-dai = <&wcd9335 1>; > }; > }; > + > + scoplay-dai-link { > + link-name = "SCO-PCM-Playback"; > + cpu { > + sound-dai = <&q6afedai PRIMARY_PCM_RX>; > + }; > + > + platform { > + sound-dai = <&q6routing>; > + }; > + }; > + > + scocap-dai-link { > + link-name = "SCO-PCM-Capture"; > + cpu { > + sound-dai = <&q6afedai PRIMARY_PCM_TX>; > + }; > + > + platform { > + sound-dai = <&q6routing>; > + }; > + }; > + > + mi2splay-dai-link { > + link-name = "QUAT-MI2S-Playback"; > + cpu { > + sound-dai = <&q6afedai QUATERNARY_MI2S_RX>; > + }; > + > + platform { > + sound-dai = <&q6routing>; > + }; > + > +// EXAMPLE: For adding real codecs > +// codec { > +// sound-dai = <&pcm5142_4c>, <&pcm5142_4d>; > +// }; > + > + }; > + > + mi2scap-dai-link { > + link-name = "QUAT-MI2S-Capture"; > + cpu { > + sound-dai = <&q6afedai QUATERNARY_MI2S_TX>; > + }; > + > + platform { > + sound-dai = <&q6routing>; > + }; > + > +// EXAMPLE: For adding real codecs > +// codec { > +// sound-dai = <&pcm1865>; > +// }; > + }; > }; > diff --git a/arch/arm64/boot/dts/qcom/msm8996-pins.dtsi b/arch/arm64/boot/dts/qcom/msm8996-pins.dtsi > index ac1ede579361..e8221c4d05f7 100644 > --- a/arch/arm64/boot/dts/qcom/msm8996-pins.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8996-pins.dtsi > @@ -288,6 +288,168 @@ > }; > }; > > + pri_mi2s_active: pri_mi2s_active { > + mux { > + pins = "gpio65", "gpio66"; > + function = "pri_mi2s"; > + }; > + config { > + pins = "gpio65", "gpio66"; > + drive-strength = <8>; /* 8 mA */ > + bias-disable; /* NO PULL */ > + output-high; > + }; > + }; > + > + pri_mi2s_sleep: pri_mi2s_sleep { > + mux { > + pins = "gpio65", "gpio66"; > + function = "gpio"; > + }; > + > + config { > + pins = "gpio65", "gpio66"; > + drive-strength = <2>; /* 2 mA */ > + bias-pull-down; /* PULL DOWN */ > + input-enable; > + }; > + }; > + > + pri_mi2s_sd0_sleep: pri_mi2s_sd0_sleep { > + mux { > + pins = "gpio67"; > + function = "gpio"; > + }; > + > + config { > + pins = "gpio67"; > + drive-strength = <2>; /* 2 mA */ > + bias-pull-down; /* PULL DOWN */ > + input-enable; > + }; > + }; > + > + pri_mi2s_sd0_active: pri_mi2s_sd0_active { > + mux { > + pins = "gpio67"; > + function = "pri_mi2s"; > + }; > + > + config { > + pins = "gpio67"; > + drive-strength = <8>; /* 8 mA */ > + bias-disable; /* NO PULL */ > + }; > + }; > + > + pri_mi2s_sd1_sleep: pri_mi2s_sd1_sleep { > + mux { > + pins = "gpio68"; > + function = "gpio"; > + }; > + > + config { > + pins = "gpio68"; > + drive-strength = <2>; /* 2 mA */ > + bias-pull-down; /* PULL DOWN */ > + input-enable; > + }; > + }; > + > + pri_mi2s_sd1_active: pri_mi2s_sd1_active { > + mux { > + pins = "gpio68"; > + function = "pri_mi2s"; > + }; > + > + config { > + pins = "gpio68"; > + drive-strength = <8>; /* 8 mA */ > + bias-disable; /* NO PULL */ > + }; > + }; > + > + quat_mi2s_active: quat_mi2s_active { > + mux { > + pins = "gpio58", "gpio59"; > + function = "qua_mi2s"; > + }; > + config { > + pins = "gpio58", "gpio59"; > + drive-strength = <8>; /* 8 mA */ > + bias-disable; /* NO PULL */ > + output-high; > + }; > + }; > + > + quat_mi2s_sleep: quat_mi2s_sleep { > + mux { > + pins = "gpio58", "gpio59"; > + function = "gpio"; > + }; > + > + config { > + pins = "gpio58", "gpio59"; > + drive-strength = <2>; /* 2 mA */ > + bias-pull-down; /* PULL DOWN */ > + input-enable; > + }; > + }; > + > + quat_mi2s_sd0_sleep: quat_mi2s_sd0_sleep { > + mux { > + pins = "gpio60"; > + function = "gpio"; > + }; > + > + config { > + pins = "gpio60"; > + drive-strength = <2>; /* 2 mA */ > + bias-pull-down; /* PULL DOWN */ > + input-enable; > + }; > + }; > + > + quat_mi2s_sd0_active: quat_mi2s_sd0_active { > + mux { > + pins = "gpio60"; > + function = "qua_mi2s"; > + }; > + > + config { > + pins = "gpio60"; > + drive-strength = <8>; /* 8 mA */ > + bias-disable; /* NO PULL */ > + }; > + }; > + > + quat_mi2s_sd1_sleep: quat_mi2s_sd1_sleep { > + mux { > + pins = "gpio61"; > + function = "gpio"; > + }; > + > + config { > + pins = "gpio61"; > + drive-strength = <2>; /* 2 mA */ > + bias-pull-down; /* PULL DOWN */ > + input-enable; > + }; > + }; > + > + quat_mi2s_sd1_active: quat_mi2s_sd1_active { > + mux { > + pins = "gpio61"; > + function = "qua_mi2s"; > + }; > + > + config { > + pins = "gpio61"; > + drive-strength = <8>; /* 8 mA */ > + bias-disable; /* NO PULL */ > + }; > + }; > + > sdc2_clk_on: sdc2_clk_on { > config { > pins = "sdc2_clk"; > -- > 2.21.1 >