Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2245336pxf; Sat, 13 Mar 2021 12:58:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnQRiD0MF0gQZKXnHJxMUWB+8Bli8kfd2QxsRdSWRY58S+7ifhKj30qkAa/Fyduk3c/td6 X-Received: by 2002:a17:907:162b:: with SMTP id hb43mr16042997ejc.41.1615669118858; Sat, 13 Mar 2021 12:58:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615669118; cv=none; d=google.com; s=arc-20160816; b=SFJqOPSvju5Um1ZBfoNk4xrBfi/jNGsnMetER7r9xLnrc2oQMNNXzCMxa8+psLS25Q CxAQq+WXo3TV5z+MrS4dB8N9JnRbd3MFE97btqgRxjUYDGjU/+258QrMZpS33GO2CYRC 3XTFCrJof6bxNrXUZMuXmVmXVpir4SOo7i9oiZvVKOhySY/RDqVzjbqRazy82PkbN+v9 uqNnQiHstfmn8kdq9lSVnKD+mpbLLLnJFm61MUv4e43Ek5vjXv2ZyGsXwgV2kBkt6qcw Q0DPfFShnI4/BnSjl4cBUxLtVhuDubMIumyE6swyt7ORmmvwPmzsZY3/tTjJLnQ0x995 t+Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=omQQ7Zsxd9ScrTPA5EKinVOg0Ak40N0oMvDticu25WY=; b=Mdz+FsNdqxYjzMoKEUFQXGMb80X8rMxXImUUUdW9OTgRrTXPpWl/KzCZVvnvP2W9cK USN/UnbuVvlMS+oxZcjeL3NJkF+MMVkkM072Wop+N+NgQQfQAE+oLRKhkcP88qsn+zGp 7kdX68Kb3ff7VsAgNyhDU983vBfAkB/0bumZW1Xyde5NpJuI/B7JlHCAOTivApyZCR2w AjtY8NaRzd/QI97gBOccvrFpwl/p10fvRHBIfjRK8lFGZ2W11PyNZIJo7kwNJ08rjXKz dUt960/gWjLRmnKo17WJup+6LYzgte+Scqh1v+z9MvMqLREqL9DtYRayxUikY8s0aG7H JrhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WN7KC5Qc; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i6si7048214ejk.722.2021.03.13.12.58.15; Sat, 13 Mar 2021 12:58:38 -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=@chromium.org header.s=google header.b=WN7KC5Qc; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234573AbhCMU5L (ORCPT + 99 others); Sat, 13 Mar 2021 15:57:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234377AbhCMU4i (ORCPT ); Sat, 13 Mar 2021 15:56:38 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51E3AC061762 for ; Sat, 13 Mar 2021 12:56:38 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id s21so6847565pjq.1 for ; Sat, 13 Mar 2021 12:56:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=omQQ7Zsxd9ScrTPA5EKinVOg0Ak40N0oMvDticu25WY=; b=WN7KC5Qc8Zj06QbnI7kSACGe5QT/Ay6O65xbbfdYX6IMiTEiMclbFdqQ3JePPbP/wd EiHc/xZYgFCqY5NScqddwW6R9AjSwZMzhrAjxn/FzTJ22gBJCgacej/C5SuibuM6AosX GxAW+KMdPQ0nZ8dOmQAHTosOS6OmloE9PJKUM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=omQQ7Zsxd9ScrTPA5EKinVOg0Ak40N0oMvDticu25WY=; b=PMJA8pDF8CjePC+Q+Ow/KueFXxCoTIgKkr6xHSEIrMyaDG5pOpMU///d5x4XILD4Z7 OG7ymgI3Mcu4eWt9+YnbP3yzRABhs5mXxew8aLtxlOiMs8DayyNO5L9/c3hSZvb13Rx4 6054prnUasYTHqqLv9ecnxW9rt0xSNa60JBMXfYErRYWrCDt1OfFkA0AVCxHZZ5CDQEt Avl0mNejic/CGuSy2xUz991xZ6Hyk1vq+W+OzW7m5tTXkEd3auJWLtPimRryE+G05av+ dB/2aXhiTgZ1R669wnsDpPqrldyVf+cz4TvtLmshZKeoHGvDwlPu8UVCU1GLo8iN+wqK ln7A== X-Gm-Message-State: AOAM531oHjDgl3c9bb9Zuoy4XmO9xxqW6sG2KZGYplfqFBgn7jm8ZO8c 4vJ8lukTzXWCIRLoOBgCbCEJqQ== X-Received: by 2002:a17:90a:be0e:: with SMTP id a14mr4964683pjs.131.1615668997641; Sat, 13 Mar 2021 12:56:37 -0800 (PST) Received: from chromium.org ([2620:15c:202:201:e859:c7d5:7d7b:5ed8]) by smtp.gmail.com with ESMTPSA id u20sm9149305pfm.146.2021.03.13.12.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Mar 2021 12:56:37 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210313054654.11693-2-srivasam@codeaurora.org> References: <20210313054654.11693-1-srivasam@codeaurora.org> <20210313054654.11693-2-srivasam@codeaurora.org> Subject: Re: [PATCH v6 1/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for I2S driver From: Stephen Boyd Cc: Ajit Pandey , V Sujith Kumar Reddy , Srinivasa Rao Mandadapu To: Srinivasa Rao Mandadapu , 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 Date: Sat, 13 Mar 2021 12:56:35 -0800 Message-ID: <161566899554.1478170.1265435102634351195@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Srinivasa Rao Mandadapu (2021-03-12 21:46:53) > From: Ajit Pandey >=20 > 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. >=20 > 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(+) >=20 > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/bo= ot/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 =3D <1023>; > }; > }; > + > + sound: sound { > + compatible =3D "google,sc7180-trogdor"; > + model =3D "sc7180-rt5682-max98357a-1mic"; > + > + audio-routing =3D > + "Headphone Jack", "HPOL", > + "Headphone Jack", "HPOR"; > + > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + dai-link@0 { > + link-name =3D "MultiMedia0"; > + reg =3D ; > + cpu { > + sound-dai =3D <&lpass_cpu MI2S_PRIMARY>; > + }; > + > + sound_multimedia0_codec: codec { > + sound-dai =3D <&alc5682 0 /*aif1*/>; Nitpick, add a space for comment sound-dai =3D <&alc5682 0 /* aif1 */>; > + }; > + }; > + > + dai-link@1 { > + link-name =3D "MultiMedia1"; > + reg =3D ; > + cpu { > + sound-dai =3D <&lpass_cpu MI2S_SECONDARY>; > + }; > + > + sound_multimedia1_codec: codec { > + sound-dai =3D <&max98357a>; > + }; > + }; > + }; > }; > =20 > &qfprom { > @@ -720,6 +757,27 @@ &ipa { > modem-init; > }; > =20 > +&lpass_cpu { > + status =3D "okay"; > + > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&sec_mi2s_active &pri_mi2s_active &pri_mi2s_mclk_a= ctive>; Super nitpick: I prefer this style pinctrl-0 =3D <&sec_mi2s_active>, <&pri_mi2s_active>, <&pri_mi2s_mclk_acti= ve>; 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. > + > + #address-cells =3D <1>; > + #size-cells =3D <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. > + reg =3D ; > + qcom,playback-sd-lines =3D <1>; > + qcom,capture-sd-lines =3D <0>; > + }; > + > + mi2s-secondary@1 { > + reg =3D ; > + qcom,playback-sd-lines =3D <0>; > + }; > +}; > + > &mdp { > status =3D "okay"; > };