Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2279561rwl; Thu, 6 Apr 2023 08:08:15 -0700 (PDT) X-Google-Smtp-Source: AKy350b2vP3qummHyk6baAjAqKwViBQ8tO3bXT13hBrJyNC94zUmArZMc8uNH62tsibF+1W/CiUW X-Received: by 2002:a17:90a:6b01:b0:23f:2c65:fab7 with SMTP id v1-20020a17090a6b0100b0023f2c65fab7mr11641136pjj.42.1680793695662; Thu, 06 Apr 2023 08:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680793695; cv=none; d=google.com; s=arc-20160816; b=sd4hixl6CmJS4t+ZTYHAYxfVfXb/hb8e1l1qOeS7r1KFEthGYASl9o8VZiyjmiyteo F/WDTi96yF9BgC9VuezgSFLBtP0uIaF1qvLfEJnANuyjmT/DKZZ248R9XrqIK47/kwlm 6LDag+wmo6KcQgdDHOPG3NRHIoiqs7gBLyFdVjqjgziSoW7dWc3cdViEYBvJ+QLsivmd 1LAuOo4wcbFhkVavlbSwPE+rQIkbp4YS+tzklP2Wmh6wz581zqUUoyU7GqtvdmK/ImyU 1cs1+/wrT/Hl+Xwx9yJ6GCuhAuSjyxNxR6UdFYpk+60x+nI/DeGo6NHTAIbPumX+SV9q QKfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NN72bZpDjzARU4DKFr24xS5v5SfaOVUJsDMPDamkaYw=; b=Enb1gYGGqtmMJq7rNtXHvntgTrwr0lqbSoVcDF95l+F9W6uZ1j2ac3As0S/Fisc5V7 aS+4Ls9+XtdFSj6xhKdhn2jFVahIYnb4ueShHjHfG7uS8oxrc683DZSRugABmU3OAiR0 whO6kHaKJvs/geDZw+A8/03rVDYF0gWvdisODn9eHLKOxlrg0B+BFXinpy7zLjqm830m HE2YVD5bp3uAMGVT/wx3o/Q7+5FKY9YC0fAS2b1F842OjXUMyLsWG8EsNGfiR1NOMA9G wboUpvnL6EHFuSVx5iuEKJ9eNGxsk93JlB+Z+XfZfL5SUf8j7amUAXDJ0TLu6GUzLgaJ nYOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=VrFxFnsO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a170902d38600b001a50f2a8a91si73562pld.333.2023.04.06.08.08.01; Thu, 06 Apr 2023 08:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=VrFxFnsO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239625AbjDFPHY (ORCPT + 99 others); Thu, 6 Apr 2023 11:07:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239601AbjDFPHU (ORCPT ); Thu, 6 Apr 2023 11:07:20 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64D89AD37; Thu, 6 Apr 2023 08:06:58 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 97DC241848; Thu, 6 Apr 2023 20:06:54 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1680793615; bh=N6oObUDYJcJKRmHqEIXrt+Eeic0D8f7CSqwLjgqLK6o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VrFxFnsOH4oBDgxKjU2ZXbba4nRtm85aNwrA2CzHFX8qVVxvjdZuRZv7miiLZ0BHq YvcvkXqwi+L7QHIwsbXOepyo3kRWJXo8twZ1oIW8J0dlxC9fRmOaSMh5AZbE/GsT4v CSGOyIBoWZ2HqypfSShzEKEs11jwjANySLUxX2KXr3WcUdeq/1iuiwo8OnDjBsQmPf Rl2s6WP+NgDl9CZSA1AgM5EawKibqbMejeK2SR7EVYUzYmTHzLs2U4vyc8q4oD9MVT brSAoZiDxp50NL0CnBTw2I3fJOuEvBhYn7mgM99bd8di5vYap6CUaIAthfymg4wK+J fQso5oRdohirg== From: Nikita Travkin To: agross@kernel.org, andersson@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, konrad.dybcio@linaro.org, quic_srivasam@quicinc.com, judyhsiao@chromium.org, mka@chromium.org, dianders@chromium.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin Subject: [PATCH v4 1/4] arm64: dts: qcom: sc7180: Don't enable lpass clocks by default Date: Thu, 6 Apr 2023 20:06:30 +0500 Message-Id: <20230406150633.83351-2-nikita@trvn.ru> In-Reply-To: <20230406150633.83351-1-nikita@trvn.ru> References: <20230406150633.83351-1-nikita@trvn.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 3c799b564b64..6f40301faa1c 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -3621,6 +3621,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 { @@ -3669,6 +3671,8 @@ lpass_hm: clock-controller@63000000 { #clock-cells = <1>; #power-domain-cells = <1>; + + status = "reserved"; /* Controlled by ADSP */ }; }; -- 2.39.2