Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2440894pxf; Sat, 13 Mar 2021 21:58:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5iXYzsCbx/39FMB7pbTu0f4A7bGhYPMFxNEOYPQjl+3VCeynL/3CVEUjFoFpLIQZjZF6E X-Received: by 2002:a05:6402:1a4f:: with SMTP id bf15mr23362853edb.304.1615701483181; Sat, 13 Mar 2021 21:58:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615701483; cv=none; d=google.com; s=arc-20160816; b=FuX1DduXjQoinyDZlmlOYqXsgjzBZ61tQJA4CjOGLcS6oDrO7ZjJ51qNbM34sl81SW qhSkUHwiYEpoYZxSzIVmu6w5c40muNk+7t3e5raw9GY8s7omqsOdT2/9xxEh8zHKidvc GS3WsvEGVXhMuH97WVFLIwIXXN0kMcOObhsQGcFtz9BOulWB9bnjJNtW+aVncXnLnCM6 EGtNVrNs7tfHq0fMmpplImBHkHK0gZ5+pExFaYEfgBd3zyHLXEvHZaSCvSYaLpoL31tm 3KkaHnjgDne/6dZj+JZW2jXidDCAYtcoeH3mIPR5TT2fCqM4Z3EBz3es8PJVdudWg5yZ GkSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dmarc-filter:sender:dkim-signature; bh=wAThHURuQOx7nkPEUGK2dOThw52EswUwEWvEcNsQV88=; b=aakuKaLbnu85J0qlAf5Z6pbQtRu9/ziaSp5+ICrKAwqXBd8vgnSwBqBGU3DovmN5fo +DaxZeVhT5uf4fX1NWWvvc17vhjc9rnJT6Dz5jqgnWXWRHZNuyPwLoI3fHCNGRhxuU7z 4O1UaLrhutrvwIPsnOPiAaC8W5jlnhXru3RfakIF43rISAoGmnU15J4jkGEf7r6JDQgn Uym0QQLBwodIFr6nxJpzl/QsNeefBIUGj8TEILAfayGkmsbv1PgMIwK0fpVxtTHiU65t x+kXsGlFECZjWLJLZGY2Az2T1wkgdPDz7xglA55Gxd4o99n8i7sjbJ/imfHV0lHYa5FX HMTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Ea0gdhlp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp23si8463338ejb.643.2021.03.13.21.57.38; Sat, 13 Mar 2021 21:58:03 -0800 (PST) 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=@mg.codeaurora.org header.s=smtp header.b=Ea0gdhlp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229539AbhCNFvT (ORCPT + 99 others); Sun, 14 Mar 2021 00:51:19 -0500 Received: from m42-2.mailgun.net ([69.72.42.2]:46095 "EHLO m42-2.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232645AbhCNFvC (ORCPT ); Sun, 14 Mar 2021 00:51:02 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1615701062; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=wAThHURuQOx7nkPEUGK2dOThw52EswUwEWvEcNsQV88=; b=Ea0gdhlpivPoeQp1VEfqjWRip5OYldXS+MNTqye8YEGWM2MFqSkQxs/aWBcMayx78KBc2P6l +BtzwQKZHieAWm5LtmnG9PrRRRFuosfjxa16tOWo4oOQsCmvexp2tA/RDpC3mdylaTqpJTL2 3yh9FkwfnSMMzY+/jWTAjJpsSR4= X-Mailgun-Sending-Ip: 69.72.42.2 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-west-2.postgun.com with SMTP id 604da43ee2200c0a0d6e381a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sun, 14 Mar 2021 05:50:53 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B7BE7C433CA; Sun, 14 Mar 2021 05:50:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.29.24] (unknown [49.37.152.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: srivasam) by smtp.codeaurora.org (Postfix) with ESMTPSA id E882FC433CA; Sun, 14 Mar 2021 05:50:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E882FC433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=srivasam@codeaurora.org Subject: Re: [PATCH v6 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver To: Stephen Boyd , agross@kernel.org, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, dianders@chromium.org, judyhsiao@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, rohitkr@codeaurora.org, srinivas.kandagatla@linaro.org Cc: Ajit Pandey , V Sujith Kumar Reddy References: <20210313054654.11693-1-srivasam@codeaurora.org> <20210313054654.11693-2-srivasam@codeaurora.org> <161566899554.1478170.1265435102634351195@swboyd.mtv.corp.google.com> From: Srinivasa Rao Mandadapu Organization: Qualcomm India Private Limited. Message-ID: <0f4bc153-edca-ca9d-a5ab-df765e992d7f@codeaurora.org> Date: Sun, 14 Mar 2021 11:20:46 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <161566899554.1478170.1265435102634351195@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, Thanks for Your Time and Inputs!!! On 3/14/2021 2:26 AM, Stephen Boyd wrote: > Quoting Srinivasa Rao Mandadapu (2021-03-12 21:46:53) >> 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 > Why two spaces before 'pin'? > >> and secondary dai-links > Please end sentence with a period. > >> Signed-off-by: Ajit Pandey >> Signed-off-by: V Sujith Kumar Reddy >> Signed-off-by: Srinivasa Rao Mandadapu >> --- >> 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..3a24383247db 100644 >> --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.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*/>; > Nitpick, add a space for comment > > sound-dai = <&alc5682 0 /* aif1 */>; Okay. Will re post with Fix. > >> + }; >> + }; >> + >> + 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>; > Super nitpick: I prefer this style > > pinctrl-0 = <&sec_mi2s_active>, <&pri_mi2s_active>, <&pri_mi2s_mclk_active>; > > It's effectively the same but the brackets help us see that these are > the end of the phandle specifier instead of having to figure out that > the first phandle isn't specifying the second phandle as an argument. Okay. Will change accordingly. > >> + >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + mi2s-primary@0 { > Should the node name just be mi2s instead of mi2s-primary? We have reg > property so I think 'mi2s' should be sufficient to differentiate. Okay. I will change it as mi2s@0 instead of mi2s-primary@0 > >> + reg = ; >> + qcom,playback-sd-lines = <1>; >> + qcom,capture-sd-lines = <0>; >> + }; >> + >> + mi2s-secondary@1 { >> + reg = ; >> + qcom,playback-sd-lines = <0>; >> + }; >> +}; >> + >> &mdp { >> status = "okay"; >> }; -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.