Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp343720pxa; Fri, 31 Jul 2020 13:41:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjQ9uVGpnOfmAu2yPqjCKN36+P42MqYkg9PlYJStXvQzq5XL0e5IkOR1rbTmnhcJMY+nJ3 X-Received: by 2002:a50:e803:: with SMTP id e3mr5352322edn.75.1596228066736; Fri, 31 Jul 2020 13:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596228066; cv=none; d=google.com; s=arc-20160816; b=t5YVRB1NOgs4iqiwv7Fn4Zvb7nlqVth26FizftfOXMtYsPfk6AGSmS1c7DS8D6P8nt kQzAOi/uHISHTSiGcGc31eT7xLMbZcM7k+Uu4yboFGSC0+nAY2r4gckKE0UMnvNzKqBH g4vH/605wqvaryyPKBewaePHGES+wJEfOk4/nIil4uKhCmh685olK8ZVBPxHHth0hwtP qCZshljImWOhYjpcKVCZaTnbveM7G/OPn84h3B0slcaBYJ99GsSElUMrEYf4fi/9pWJw tS8+uqVoll+4m8wi+2bRF7JVeeYHbRKvArHi3MlJcDOBiTYZK0nH/+ugZ0Vz6d111tIj 0J6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4d/8M1GaZlaQ7i6vBuXiApjomUk8MCCMGihxn8SEhGI=; b=ExafpykQMqQKKTlftmL2JE8UNv2oxRBlgwrv4LOf6hunpa9Pn+Ouk2ophP5zh3a3Q8 /K26BtNP1sRGwGYPY2gzP2yd1obpyAqfOhzOt6nHwOiD2fn8gTXnBo0Ha40wZ1D/4k64 LGeaKFU9wmFrmaWpxJTckzjkyX0RARz7/ex0wBQVNr8Mz8qVrQGGADqSC33N8SIu0WxC +pEX1RWx7LsS61RjUa4DwlA+0rd/M35BYulrsWjpY0jPjn65PePPbO85AAFNZX+kVmor lbVcyZWC4tMEtdo8lIcIBsBRe5nYAsWaQvuwy+0C5OVPXyMf7eiNF8fR01IEpmcKxvU4 vluA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oMSBX8wb; 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 gx14si5491079ejb.99.2020.07.31.13.40.44; Fri, 31 Jul 2020 13:41:06 -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=oMSBX8wb; 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 S1728477AbgGaUi0 (ORCPT + 99 others); Fri, 31 Jul 2020 16:38:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727121AbgGaUiZ (ORCPT ); Fri, 31 Jul 2020 16:38:25 -0400 Received: from mail-ua1-x944.google.com (mail-ua1-x944.google.com [IPv6:2607:f8b0:4864:20::944]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F2E7C061574 for ; Fri, 31 Jul 2020 13:38:24 -0700 (PDT) Received: by mail-ua1-x944.google.com with SMTP id g4so10084362uaq.10 for ; Fri, 31 Jul 2020 13:38:24 -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=4d/8M1GaZlaQ7i6vBuXiApjomUk8MCCMGihxn8SEhGI=; b=oMSBX8wbpDzhemKtin6iMIKcj9YHdfUP9X96BhXqiZwdkCb6iflhh4d7i3EnV4OThK S0pcBJh0PmNPWnK36W4jg1mctQtYXyJEK2gQA8OF3/7zytcotFTZRXy/pTH3aBfnQ6sv 1j904VGcwfZKsOW6F8z7hQHUOEav8AFBiIlwA= 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=4d/8M1GaZlaQ7i6vBuXiApjomUk8MCCMGihxn8SEhGI=; b=T6vlvu4OIMcoof57RHTwGK8Do98XcAw2qnUtOU5Ptr1CFS1aluA0PFGShdHuupBRQ2 qWtFIeVoN6RYOBas6MPgczUNicW+Y1vZnNtWfKsBnn+AO1Mu0zuCYLhNUAIYCt5s/1l2 rRWE/6/YorUbcOqbgHTVxA0K+oetZ6GmeYUYus3lmGjqjCGrUjVzotVdeLhI/Nt95Skx DxYlMtvmW7jVDdARPjASv/ItPNNXhWkE47LOEdeefz6rFMMcTMhkVqOqAQbJG4CXu0Uh YOe5hKaDrq7WaJrf+VvyDRkBRfR+E/XvjaQGZ0WjFUvL9fNW23hfg/aGy4Ee9LJVypdP hKKw== X-Gm-Message-State: AOAM532wj2tnIXufXvKgVkq5wSOfUaXdpjaxD/ynEx9XTot0OAeOQoHL Dl22+DmwJCY3ewCp1ukDhT0WeZM2/9A= X-Received: by 2002:ab0:63c1:: with SMTP id i1mr4103834uap.120.1596227902726; Fri, 31 Jul 2020 13:38:22 -0700 (PDT) Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com. [209.85.217.44]) by smtp.gmail.com with ESMTPSA id k14sm835075vkk.18.2020.07.31.13.38.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 Jul 2020 13:38:21 -0700 (PDT) Received: by mail-vs1-f44.google.com with SMTP id y8so10114657vsq.8 for ; Fri, 31 Jul 2020 13:38:21 -0700 (PDT) X-Received: by 2002:a67:5c2:: with SMTP id 185mr4706433vsf.42.1596227901080; Fri, 31 Jul 2020 13:38:21 -0700 (PDT) MIME-Version: 1.0 References: <1594796149-14778-1-git-send-email-tdas@codeaurora.org> In-Reply-To: From: Doug Anderson Date: Fri, 31 Jul 2020 13:38:09 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: sc7180: Add LPASS clock controller nodes To: Taniya Das Cc: Stephen Boyd , Michael Turquette , David Brown , Rajendra Nayak , linux-arm-msm , "open list:ARM/QUALCOMM SUPPORT" , linux-clk , LKML , Andy Gross , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Rob Herring , Rob Herring , Jimmy Cheng-Yi Chiang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Jul 16, 2020 at 10:34 AM Doug Anderson wrote: > > Hi, > > On Tue, Jul 14, 2020 at 11:56 PM Taniya Das wrote: > > > > Update the clock controller nodes for Low power audio subsystem > > functionality. > > > > Signed-off-by: Taniya Das > > --- > > Somewhere here you should be pointing to the unlanded bindings patch, AKA: > > https://lore.kernel.org/r/1594795010-9074-3-git-send-email-tdas@codeaurora.org > > As per usual the fact that are using a new bindings #include file > means Qualcomm maintainers and clock maintainers will need to > coordinate landing and this needs to be pointed out. > > > > arch/arm64/boot/dts/qcom/sc7180.dtsi | 22 ++++++++++++++++++++++ > > 1 file changed, 22 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > index 2be81a2..8c30a17 100644 > > --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > @@ -8,6 +8,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > #include > > @@ -2136,6 +2137,27 @@ > > }; > > }; > > > > + lpasscc: clock-controller@62d00000 { > > + compatible = "qcom,sc7180-lpasscorecc"; > > + reg = <0 0x62d00000 0 0x50000>, > > + <0 0x62780000 0 0x30000>; > > + reg-names = "lpass_core_cc", "lpass_audio_cc"; > > + clocks = <&gcc GCC_LPASS_CFG_NOC_SWAY_CLK>; > > + clock-names = "iface"; > > + power-domains = <&lpass_hm LPASS_CORE_HM_GDSCR>; > > + #clock-cells = <1>; > > + #power-domain-cells = <1>; > > + }; > > + > > + lpass_hm: clock-controller@63000000 { > > + compatible = "qcom,sc7180-lpasshm"; > > + reg = <0 0x63000000 0 0x28>; > > + clocks = <&gcc GCC_LPASS_CFG_NOC_SWAY_CLK>; > > + clock-names = "iface"; > > + #clock-cells = <1>; > > + #power-domain-cells = <1>; > > + }; > > Question: would it ever make sense for a board not to need this clock > controller? I ask because the sdm845 "lpass" clock controller is > "disabled" by default but yours here isn't. I know sc7180 and sdm845 > work pretty differently and perhaps the sdm845's default of "disabled" > was just overkill, but I thought I'd ask. > > > > + > > etm@7040000 { > > compatible = "arm,coresight-etm4x", "arm,primecell"; > > reg = <0 0x07040000 0 0x1000>; > > Your sort order is off. You should be sorting by unit address. Note > that the "ETM" has an extra 0 before its 7, so you're comparing 63 to > 07 and you should be after. > > Other than those small things above this patch looks like it matches > the example in the bindings, so as long as Rob / the clock guys are > fine with the bindings then this seems good to go. So it looks like the bindings landed and one would think we'd be good to go. Except that when I mixed your device tree patch with the driver that landed things went boom. Can you please re-post addressing my concerns above and also adding "bi_tcxo" as I have done in the bindings example here: https://lore.kernel.org/r/20200731133006.1.Iee81b115f5be50d6d69500fe1bda11bba6e16143@changeid Thanks! -Doug