Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp601729pxv; Thu, 22 Jul 2021 07:56:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMcGthjx94ytqIe08ZwSgLbSuo5b06+GBvIl+SIu2LxiGsEaCkUESdfh3IdJJVnooG3WnQ X-Received: by 2002:a17:906:3e08:: with SMTP id k8mr283947eji.89.1626965761612; Thu, 22 Jul 2021 07:56:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626965761; cv=none; d=google.com; s=arc-20160816; b=ZQBVy8RPZs+0jR2t3Yhy+82Wh0JIBDE8C16zLYhX/TLnobl+vxcCCMLiNOCrPfmYMI NQYcK1wPAsJcNlnt+mUQtSsTwpeaD0tGpcxmEYgsZXa0zy8vceTRWeT5v/EDdxSqOeP5 C/KNvSjiH8BMNYmKZth4dkVPXSGUNlc3NqXcDPQKKCvpZlJx0lsV1dYCMeXCEKoVTfyS kwxc5exZxhsSZVSnvBrKz1xWV01IKVOt/ufaaASAaxrIACOKMlN4FHbLkKqOj7xkbmch hLksJDcqlgWAzKa9XuGqfJtuZbq9/NdZB8DQz/goZ5z07RLTJQWRkW9fanMCFUpK1zFe zVlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8F9aS2bitLy3DUQnf7TGV/UhbX2TURQDr3klee2mdNE=; b=gO+FYDCsxJwTUCOfqdrsXAMPYiVHlTXITXK8UeuZvCwfEN5MaT/9a70T6T8mFUc4v0 J6g2AFal2nE2sX9/aLVHW2u4IkBbCxmgWvgkajdd/JiWOE+hTXUgNkCdGnoF0eTP5+w9 1cy+huiE0644P1z4lym/1LaGcRrzsVT8PzV8Sl+KLQZpbmkq+FRNhXYlYujIj5mBhKaA WROAY1yKK8qO8J99XW0Gu0y+HGgqXpKu7Do+KgncDzD8l3CSC5H6E1nw9AY5Yz85vS11 g8jykeiQVaOdtVMrWCoMTfQnJ9YDqXCuxC8GZ9MO5eQvSLBdPSIijGvpk4hr/LhAJ/s/ MCHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TCEmHUnD; 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 dm11si9206658edb.257.2021.07.22.07.55.38; Thu, 22 Jul 2021 07:56:01 -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=@chromium.org header.s=google header.b=TCEmHUnD; 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 S232540AbhGVONU (ORCPT + 99 others); Thu, 22 Jul 2021 10:13:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232556AbhGVOMG (ORCPT ); Thu, 22 Jul 2021 10:12:06 -0400 Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB93C0613C1 for ; Thu, 22 Jul 2021 07:52:35 -0700 (PDT) Received: by mail-qv1-xf31.google.com with SMTP id ay16so2689508qvb.12 for ; Thu, 22 Jul 2021 07:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8F9aS2bitLy3DUQnf7TGV/UhbX2TURQDr3klee2mdNE=; b=TCEmHUnDQ6gGKtpkcfMY8QA+PP7hwAJM99sdFy1TpD6Zxd36UhPg7wDLUpKFOYRFka 0qgEao99I/oIqcyIhKjAf8RelxNRSKMZLoK5FaVBJAaHw42dmESsP5LHMJN17TSXjyAr zgPN521fVJt0ikVchspk6Sik+X+XS/6eHboUc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8F9aS2bitLy3DUQnf7TGV/UhbX2TURQDr3klee2mdNE=; b=fakZYTeaxUuyJFk6zmE3YNz52jktDkwf6s4NnYWICIrRigsCRNjd8lboda9PqPURy8 fmb/P2f8xmZH6QpFwgdkiiejTBWaeS0lRE/4yZCAYEz8pGSuzyh3glBbt034Jipx3W3M NzCMWnXmFXn5T1/LylEdJPDrJ+fgP96w1OCCWRQ4slt+cc498YaDQY0eJMymHAnkXi0w jFugDHM8JQ+4eElMfJKb8li+Vn+nvM6Mxdppe+wGTvzfqQPg0PD18XzmdM8osjn8Ki+f 2tyGRluXRnVu3XIIpLaWZVX0ZR2nzxlRlyC89CjmX4tUx4caPemyysQDY+iVD+i+sGZr kvPw== X-Gm-Message-State: AOAM533CJ/8UP6ShRPRg//0wTC8EkZrAuhMgAvMdFwpJvbpGxu9J3ZW3 w7thXmjMRD7b27Csw2tZfpfopHPqXCuISQ== X-Received: by 2002:ad4:4bca:: with SMTP id l10mr298585qvw.50.1626965554306; Thu, 22 Jul 2021 07:52:34 -0700 (PDT) Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com. [209.85.219.174]) by smtp.gmail.com with ESMTPSA id 67sm12805317qkm.134.2021.07.22.07.52.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Jul 2021 07:52:33 -0700 (PDT) Received: by mail-yb1-f174.google.com with SMTP id i18so8662308yba.13 for ; Thu, 22 Jul 2021 07:52:32 -0700 (PDT) X-Received: by 2002:a25:dc50:: with SMTP id y77mr53799516ybe.405.1626965552146; Thu, 22 Jul 2021 07:52:32 -0700 (PDT) MIME-Version: 1.0 References: <20210721084126.14035-1-srivasam@codeaurora.org> <20210721084126.14035-3-srivasam@codeaurora.org> In-Reply-To: From: Doug Anderson Date: Thu, 22 Jul 2021 07:52:18 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 2/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for HDMI To: Srinivasa Rao Mandadapu Cc: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Rohit kumar , Srinivas Kandagatla , Stephen Boyd , Judy Hsiao , V Sujith Kumar Reddy Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Jul 22, 2021 at 7:49 AM Srinivasa Rao Mandadapu wrote: > > Thanks for your time Doug!! > > On 7/21/2021 9:50 PM, Doug Anderson wrote: > > Hi, > > > > On Wed, Jul 21, 2021 at 1:42 AM Srinivasa Rao Mandadapu > > wrote: > >> From: V Sujith Kumar Reddy > >> > >> Add dai link in sc7180-trogdor.dtsi for supporting audio over DP > >> > >> Signed-off-by: V Sujith Kumar Reddy > >> Signed-off-by: Srinivasa Rao Mandadapu > >> Reviewed-by: Srinivas Kandagatla > >> --- > >> arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 17 +++++++++++++++++ > >> 1 file changed, 17 insertions(+) > >> > >> diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > >> index 31bf7c698b8f..a4cb9ee567ff 100644 > >> --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > >> +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > >> @@ -288,6 +288,7 @@ sound: sound { > >> "Headphone Jack", "HPOL", > >> "Headphone Jack", "HPOR"; > >> > >> + #sound-dai-cells = <0>; > > The `#sound-dai-cells` is not in the bindings. The bindings also say > > `additionalProperties: false`. So either your patch is wrong for > > including this or the bindings are wrong for omitting it. Which is it? > > I notice that downstream we don't have this. > > > Yes it's wrongly placed Here. Will remove it. > >> @@ -314,6 +315,18 @@ sound_multimedia1_codec: codec { > >> sound-dai = <&max98357a>; > > Ideally you'll want to rebase to make context clean since the above > > got changed from `max98357a` to `max98360a`. > > > > > >> }; > >> }; > >> + > >> + dai-link@2 { > >> + link-name = "MultiMedia2"; > >> + reg = <2>; > > I am certainly not an expert, but I notice that downstream we have reg > > as , which makes the node name dai-link@5 instead of @2. > > Does that matter? > > > Yes,Here reg as is correct option. Will change > accordingly. But It seems dai-link@2 is appropriate as in this platform I think you misunderstand. The "@num" is _required_ to match the value for "reg". So if reg is 5 then you need "@5", not "@2" > we are using only 3 nodes. i.e. I2S primary, I2S secondary and DP node. > > >> @@ -768,6 +781,10 @@ secondary_mi2s: mi2s@1 { > >> reg = ; > >> qcom,playback-sd-lines = <0>; > >> }; > >> + > >> + hdmi-primary@0 { > >> + reg = ; > > Your node name and `reg` don't match. `LPASS_DP_RX` is 5 so the node > > name should include @5, not @0. I also notice that downstream the node > > name is called `hdmi`, not `hdmi-primary`. The downstream `hdmi` seems > > more parallel to the sibling nodes, like `mi2s@0` and `mi2s@1`. > Yes hdmi@2 is appropriate. will change accordingly. Same here. Since LPASS_DP_RX is actually the number 5 then you need @5. I think there was discussion about allowing it to be @LPASS_DP_RX but last I remember the decision was to keep it as a number. -Doug