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 5F9FDC7618B for ; Thu, 16 Mar 2023 17:28:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbjCPR2b (ORCPT ); Thu, 16 Mar 2023 13:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbjCPR23 (ORCPT ); Thu, 16 Mar 2023 13:28:29 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8240A56523 for ; Thu, 16 Mar 2023 10:28:27 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id s4so1118059ioj.11 for ; Thu, 16 Mar 2023 10:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1678987707; 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=B3FjaBu6x21XrrzbR+AxSaDNfxqnAu0VSeMOIMX/zrg=; b=GtN6xipVyPnGEDUMBwNEtI3DlE92FVD8cSHb1s84EO/FbLFPPJd1jU3oMFbPTnmybP flyb3uB98J3FOnUxlqpoQnDoRkA078xnGIq4wRcFcnEklQE1Et3IdUK7E7GGpeAlXUta SO3/KVaOxKJ6IMAoezzL1Vi9joSKp7eonxTuU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678987707; 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=B3FjaBu6x21XrrzbR+AxSaDNfxqnAu0VSeMOIMX/zrg=; b=XNEu/ulGdABv57216bMoW03ssLl4sKBOl2gJnwLV528LQN2Q3i7Ui1Nuey6BL0lnkw qp5M7vQ5yw92iPMnpwJzxH/719KD743188QLjHGEuYKejBrs7FNjopW3cCWMWHHt1Qki nWGE/xpqwRpKn4zkMWNwHu8bkvEJAuxsECju8lkehi3Ec0qItsr9MbF2ufE8PKmOkd8Z YmdIy/IHWUoWyGIoFWlftK4dJMg4iyO56wQzGiujv5ntj7r3oZWT5r4xpJWYinLMGVM8 OlkllCmuggvrZnNPMyMsWhYkJnd4vDZOIPVo+A4NWE59UozF9jBdfDsBwqJtYgrFjgGH 4fYA== X-Gm-Message-State: AO0yUKXTPTHCQJ5BU+i1t5tBsN0IW2AHxOXTaWPUF9tW0Uf/iBCwKVVy NGIRcKeNaRC51bgocDoVpDWmHj6vyaEAOTl6aGU= X-Google-Smtp-Source: AK7set/0JqH+UexaDw/MTN/hA95AFev253RaQms5iT54Va3edzThmccTAwBSqO0cWduYoavviohH/Q== X-Received: by 2002:a6b:7c09:0:b0:74e:3b0f:4498 with SMTP id m9-20020a6b7c09000000b0074e3b0f4498mr26240030iok.7.1678987706859; Thu, 16 Mar 2023 10:28:26 -0700 (PDT) Received: from localhost (30.23.70.34.bc.googleusercontent.com. [34.70.23.30]) by smtp.gmail.com with UTF8SMTPSA id k8-20020a6b4008000000b0074ca38eb11fsm2691459ioa.8.2023.03.16.10.28.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Mar 2023 10:28:26 -0700 (PDT) Date: Thu, 16 Mar 2023 17:28:26 +0000 From: Matthias Kaehlcke To: Nikita Travkin Cc: agross@kernel.org, andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht 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> <67077784fcf9aa928be9a6503e3d1e83@trvn.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <67077784fcf9aa928be9a6503e3d1e83@trvn.ru> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 16, 2023 at 08:42:03AM +0500, Nikita Travkin wrote: > Matthias Kaehlcke писал(а) 16.03.2023 05:28: > > On Wed, Mar 15, 2023 at 08:43:08PM +0500, 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 > >> --- > >> 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 */ > > > > Why not "disabled"? I see "reserved" is used in a couple of other > > instances, but it doesn't appear in Documentation/devicetree/bindings/, > > so it doesn't seem to have a well defined meaning that distinguishes it > > from "disabled". > > Hi, the standard properties like this one are defined in the > Devicetree specification, notably chapter 2.3.4 "status" says: > > "reserved" Indicates that the device is operational, but should > not be used. Typically this is used for devices that are controlled > by another software component, such as platform firmware. > > On the contrary, > > "disabled" Indicates that the device is not presently operational (...) > > Since the hardware is operational but is controlled by "foreign" > firmware, I believe "reserved" state is more correct here. Thanks for the clarification!