Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp233725pxf; Wed, 31 Mar 2021 01:49:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyoiRRBJXWCKi2Y7CewrZZcjzUlXouqfGil1xjJYZgvdAnXsOUOxxgKTQNnbBzjgaDrQGN X-Received: by 2002:a17:906:32d1:: with SMTP id k17mr2388299ejk.94.1617180594841; Wed, 31 Mar 2021 01:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617180594; cv=none; d=google.com; s=arc-20160816; b=xGRs6AZ5rM1/sGF9sicF0KLdtmmwGx1/00zf00W6+33saKiHJCU/qx6ASGCDkdOOik X9+RBLcATxMbg6JjreZw81iVO0abjitZ8mpMsYCOUEhPA4X7OCiq1eln8SXuuCmOqVG6 eEBlWBiIGmzwf5ACKjwn5EgStOqFvmH/zKE43ScnLOa3SxpQ9/nI1X2ivYMeteI+zcqG JEYd1D8REwZfs8Se5w8v8LhZ/cd6M0d2hs67n/Swienk6hwAW3lmrPvqB4zCX+SNStmz Xiz8QCo7E+UiGiy5bG2y/S6cnhfqwsRuN8P/iMT6WqdF87mIkPtiWDC9aaUzFB0nLdS2 cH4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=6D6+xRXupTucxw0etSGVbGVI62Hei8H8bx8KxOcIYiA=; b=ByGBQA9yOwsT1i3SMx4xdM/6/yKMLSO+9FE2NcFUA6Ou27jDWxR0mDTIUTDYkPFMMm RppfrqdTug6XKQswCN/7MtguHTR0NvkBymHmirFP+QgrNEeMX4XJJ9PYCczmV6VNEg+B nmlwv7eR8N7DoQjdCm0HjGu1W5a1+NbB6IHe+QQv4dkyKkf8Y31It5poYK/hit2QZaaU A4as/QQuNkjBd8FL8dCwxicS3Cko2P7XQqeoalgT9RQHzQZYnEhq+KxQbFry4YG2hxzm LzY4YFp/+mFEbYlIwRWyCrqWzhhKS/PQYqqu8x6ai90AXDMlUzk+tflxZIzbKKmwFliX /SLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R8k8EADw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h12si1254723ejx.570.2021.03.31.01.49.32; Wed, 31 Mar 2021 01:49:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R8k8EADw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234411AbhCaIsf (ORCPT + 99 others); Wed, 31 Mar 2021 04:48:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234423AbhCaIsY (ORCPT ); Wed, 31 Mar 2021 04:48:24 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5FC5C06174A for ; Wed, 31 Mar 2021 01:48:23 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id x21so21339350eds.4 for ; Wed, 31 Mar 2021 01:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=6D6+xRXupTucxw0etSGVbGVI62Hei8H8bx8KxOcIYiA=; b=R8k8EADw+X1IyYg6JsaBk6DM1a9NAcPtH3Pv221Ja6JagVQ870jwz1jrxNufsIjY2G jgrhuPzf+XUDLohKFDCb6z5yPY1sILmIYfH3hjp3ZJ7AJxhyVRejQ/wVanFHuDSOWkq7 rNUsNV/8TtWGu5An6ptRin3ycFTznFnzUfhSEdUkTcPHrsX5cKwaXW0l/8QnXQtYi/Vy dvNA6cJNSfMmW4Juct5bxTcY/SqVmsL7I6UU7mn71HbalzrBp6vMhR74lsmuZ28eke3R Ay5OwbXZPW9TlzV4yh5La2fdzC8WN8PzUWGHsl2lxV0/sD6xbEPTshGUjbU6ZkD3yUCx HGyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6D6+xRXupTucxw0etSGVbGVI62Hei8H8bx8KxOcIYiA=; b=tJlfNlpbJgk47gC2HdQwbfOxvMIx8F8nhVskA9Itlc9HauXKfqYydCXkOw0/DOCoJJ TlCzc/yEMaBG97j8veJKtIbTmdSY219N3s3yhigZpZj/rbhfu34K9t/Z3UG/I8aTkAiO 8JCtAvBBIBvmFiKB7D+KZhCt8HsFoLx4uh4HDSLqJr4CO/7K5F8xUprlX5c5gjDvo48w PMkbQOuLxyijnzKlnrx1nn2+moDHdGoEPqmI7+gucMlDIUwuMbxqXrYKzv3gY55kDAKx GRwhelInnOYU29nKEGlXqpOc7+PuWZKBoRBQz/3GdadLDzaIepHDcQE3xFnK91lnV8mG 9D9Q== X-Gm-Message-State: AOAM533aze/5AtOyR3tihEPB/jaxSEaBnoW4SWaubGcTyUTr9b2KdIdz 1kq46fLlMZDIaQiTEIm5UILHpA== X-Received: by 2002:a50:ec0e:: with SMTP id g14mr2365055edr.264.1617180502672; Wed, 31 Mar 2021 01:48:22 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id g7sm747619ejw.51.2021.03.31.01.48.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Mar 2021 01:48:22 -0700 (PDT) Subject: Re: [PATCH v7 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver To: Srinivasa Rao Mandadapu , agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, rohitkr@codeaurora.org, dianders@chromium.org, swboyd@chromium.org, judyhsiao@chromium.org Cc: Ajit Pandey , V Sujith Kumar Reddy References: <20210314061054.19451-1-srivasam@codeaurora.org> <20210314061054.19451-2-srivasam@codeaurora.org> From: Srinivas Kandagatla Message-ID: <2ac2e748-7e82-c670-5002-3fc6b361e1fe@linaro.org> Date: Wed, 31 Mar 2021 09:48:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20210314061054.19451-2-srivasam@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/03/2021 06:10, Srinivasa Rao Mandadapu wrote: > From: Ajit Pandey > > Add dai link for supporting lpass I2S driver, which is used > for audio capture and playback. > Add lpass-cpu node with pin controls and i2s primary > and secondary dai-links > > Signed-off-by: Ajit Pandey > Signed-off-by: V Sujith Kumar Reddy > Signed-off-by: Srinivasa Rao Mandadapu > --- LGTM, Reviewed-by: Srinivas Kandagatla > arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 58 ++++++++++++++++++++ > 1 file changed, 58 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > index 436582279dad..fd345972a361 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > > /* PMICs depend on spmi_bus label and so must come after SoC */ > #include "pm6150.dtsi" > @@ -283,6 +284,42 @@ keyboard_backlight: keyboard-backlight { > max-brightness = <1023>; > }; > }; > + > + sound: sound { > + compatible = "google,sc7180-trogdor"; > + model = "sc7180-rt5682-max98357a-1mic"; > + > + audio-routing = > + "Headphone Jack", "HPOL", > + "Headphone Jack", "HPOR"; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + dai-link@0 { > + link-name = "MultiMedia0"; > + reg = ; > + cpu { > + sound-dai = <&lpass_cpu MI2S_PRIMARY>; > + }; > + > + sound_multimedia0_codec: codec { > + sound-dai = <&alc5682 0 /* aif1 */>; > + }; > + }; > + > + dai-link@1 { > + link-name = "MultiMedia1"; > + reg = ; > + cpu { > + sound-dai = <&lpass_cpu MI2S_SECONDARY>; > + }; > + > + sound_multimedia1_codec: codec { > + sound-dai = <&max98357a>; > + }; > + }; > + }; > }; > > &qfprom { > @@ -720,6 +757,27 @@ &ipa { > modem-init; > }; > > +&lpass_cpu { > + status = "okay"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&sec_mi2s_active>, <&pri_mi2s_active>, <&pri_mi2s_mclk_active>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + mi2s@0 { > + reg = ; > + qcom,playback-sd-lines = <1>; > + qcom,capture-sd-lines = <0>; > + }; > + > + mi2s@1 { > + reg = ; > + qcom,playback-sd-lines = <0>; > + }; > +}; > + > &mdp { > status = "okay"; > }; >