Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86B4EC7618B for ; Thu, 16 Mar 2023 00:24:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232909AbjCPAX6 (ORCPT ); Wed, 15 Mar 2023 20:23:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230477AbjCPAXz (ORCPT ); Wed, 15 Mar 2023 20:23:55 -0400 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D96DE2A6EB for ; Wed, 15 Mar 2023 17:23:53 -0700 (PDT) Received: by mail-il1-x12e.google.com with SMTP id 4so129375ilz.6 for ; Wed, 15 Mar 2023 17:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1678926233; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=jlAFS2ptLbb09Z2fk4u0nRnOMwaR/p+cy4WdKwMS5KE=; b=O7Ma84nGqQRrwnDGLKZepKEFD5Rxht1S15njoHqb9jkbekoJFYRhIqJZtKSeJz1fCA eHD5ZjNJRrz7uxDWX0lq7HkFVtuU40BwtSnof1g8D/TJxn41D7JRWSa01wyQjG9pVqVD dSf9z2TTFnXBpm44lI2BZ4Xj+DLAVN1Hx4Srg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678926233; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jlAFS2ptLbb09Z2fk4u0nRnOMwaR/p+cy4WdKwMS5KE=; b=uVhhiXtsjBVqP5ff7FJeaj7hTwIALE4v5HLXnuvbEb9XLem5GwREou1XfmAbJrZm4i xY3rQvrNMZ0KXu40RYaLdu/C9ARaC1de3s6I1+vMMADWXttdbYVomwZDIGRCb/wsxMcp jHwJo1nESt3pccSZP01dlPpztvGApgx/YuEpH9GMjumkhfwWeYP/6zny7CeJ5OUOcgJj W+4FjuuvJ5PXosF5V3f66nb9k9dtkeRNAROqbk3yEK4Eg4qg5hc9jv7FEVcNAR1sWuZh OIw0gTLFR8+nw/G87NzQTWpCA7vMKlU9f3nwjWSweIP/OhekK4FoMKO40cM8bGx84rI6 IK4g== X-Gm-Message-State: AO0yUKUKbgoAdb2yxkFhz+ISfBCc6y1XG37gGFn8a8ZH8KYFMUvPBWbR OWfpbNzdEpwi5FULu/qrcfb8sA== X-Google-Smtp-Source: AK7set/jVZJYGrNvI1a5w7tJAIRRuOUPioI5Snz6rKF9dWqIzp4qMZlZJdnWHxwzaYJ95W6rLqRDAQ== X-Received: by 2002:a92:dd08:0:b0:315:4449:cb50 with SMTP id n8-20020a92dd08000000b003154449cb50mr5413182ilm.16.1678926233242; Wed, 15 Mar 2023 17:23:53 -0700 (PDT) Received: from localhost (30.23.70.34.bc.googleusercontent.com. [34.70.23.30]) by smtp.gmail.com with UTF8SMTPSA id o12-20020a056e02068c00b003179b81610csm1994591ils.17.2023.03.15.17.23.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Mar 2023 17:23:52 -0700 (PDT) Date: Thu, 16 Mar 2023 00:23:52 +0000 From: Matthias Kaehlcke To: Doug Anderson Cc: Konrad Dybcio , Nikita Travkin , agross@kernel.org, andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Srinivasa Rao Mandadapu , Judy Hsiao Subject: Re: [PATCH v3 1/4] arm64: dts: qcom: sc7180: Don't enable lpass clocks by default Message-ID: References: <20230315154311.37299-1-nikita@trvn.ru> <20230315154311.37299-2-nikita@trvn.ru> <3557aa94-6a83-d054-a9d9-81751165eb8a@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 15, 2023 at 05:06:04PM -0700, Doug Anderson wrote: > Hi, > > On Wed, Mar 15, 2023 at 9:12 AM Konrad Dybcio wrote: > > > > > > > > On 15.03.2023 16:43, Nikita Travkin wrote: > > > lpass clocks are usually blocked from HLOS by the firmware and > > > instead are managed by the ADSP. Mark them as reserved and explicitly > > > enable in the CrOS boards that have special, cooperative firmware. > > > > > > Signed-off-by: Nikita Travkin > > > --- > > +CC Doug > > > > Please confirm whether this also applies to IDP (in which case > > this would have been a bugfix). > > Thanks for the CC! Actually, Judy (and maybe Matthias) might be > better. The audio stuff makes my head spin a little bit and I know > they've kept track of it much better than I have. If they don't have > time, I can dig more into it myself. I also added Srinivasa just in > case. > > In general, though, I think people at Google don't interact with IDP > very much. It's a reference board from Qualcomm and not the right form > factor. It also doesn't support most of the tooling that folks at > Google on the ChromeOS team expect. I don't know if audio was ever > really supported on IDP. Probably not since there's no "sound" node in > the IDP device tree file. I don't know about the history of audio on the IDP either, I share Doug's assessment that it looks like it was never supported. > > Konrad > > > arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 8 ++++++++ > > > arch/arm64/boot/dts/qcom/sc7180.dtsi | 4 ++++ > > > 2 files changed, 12 insertions(+) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > > > index 423630c4d02c..26def6e12723 100644 > > > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > > > @@ -785,6 +785,14 @@ alc5682: codec@1a { > > > }; > > > }; > > > > > > +&lpasscc { > > > + status = "okay"; > > > +}; > > > + > > > +&lpass_hm { > > > + status = "okay"; > > > +}; > > > + > > > &lpass_cpu { > > > status = "okay"; > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > > index 53f0076f20f6..f0de177981f9 100644 > > > --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > > @@ -3623,6 +3623,8 @@ lpasscc: clock-controller@62d00000 { > > > power-domains = <&lpass_hm LPASS_CORE_HM_GDSCR>; > > > #clock-cells = <1>; > > > #power-domain-cells = <1>; > > > + > > > + status = "reserved"; /* Controlled by ADSP */ > > > }; > > > > > > lpass_cpu: lpass@62d87000 { > > > @@ -3671,6 +3673,8 @@ lpass_hm: clock-controller@63000000 { > > > > > > #clock-cells = <1>; > > > #power-domain-cells = <1>; > > > + > > > + status = "reserved"; /* Controlled by ADSP */ > > > }; > > > }; > > >