From patchwork Sat Apr 8 08:13:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 81137 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp744260vqo; Sat, 8 Apr 2023 01:16:00 -0700 (PDT) X-Google-Smtp-Source: AKy350bK2C1xqRYPQS2nlTafTQbCEXZZahiKczF8/0ktkpNvJSjwDjz5bO9dTFfL9l7nGqla6awy X-Received: by 2002:a05:6402:409:b0:501:d3a0:30d9 with SMTP id q9-20020a056402040900b00501d3a030d9mr3898090edv.7.1680941759957; Sat, 08 Apr 2023 01:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680941759; cv=none; d=google.com; s=arc-20160816; b=SvYory3B+n3yJQQxlak1S4P+h4P4kbYMPqclbIexif2lYJBVW+twf/rjVOntJb6/j3 7jydYZIVy7jkduNacIhJaTTjCZ7//f/8AAgSsRsrO8vQgwSPKXcC3hx1FbJowzp/IHol 2DIq9RHoZ9HN8Bo4Hn633MaJQ/2pAoGS1jEk9PuE0SdtH6id7Iq/4m4Zr14xf+guevkv 1SjgLXc0vdTLbdotznbq8aOY0U+wjzo7lZW1vVICOAxY1/hwHILiSHg0dNS9sRetMllK bQavEQm+7TlTfjv1CrNrONTRXVQxLd+vwyrrIBYfa0KsAY4zCTyGkby6SqblQMmRBf4u StjQ== 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=aJwyWJ6rY+FhcgTRfyDF2/XJgP1VdpWtlf8txDx+STo=; b=pniWmkzloW+HmFbqTgQ+BRjZs7Yu40EkHWrDiN50/JXtYCubTJ/aRvpQ1rFQkBTEi+ iK725pOZ1u46eKFcQ6Op/DyVDAF936h67uhG5kOnvY8zkHyoqVgk6qEVMU3ZJYXs+UQG B+1MWjwpUM9whqDFe+96dg8AuAjkZ+bUXO0vXNNDdxy5AvzUjYTvuDcIS/MGS2t4VLW6 U4VsfW/o7BgY6czs9qK6j95gl4P91GlgF75BPMVsvTSJeO3uBOxMu04PoEgPTcPp6in7 YjYn0fW+FlJgLTAZrp5xOou4wBfDp0W5KrWpcHF5txlu3Xvl0yJ+JguiDbs4CPpL6Aqj Lw5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=BqYXlA8X; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c24-20020aa7d618000000b005048a3a8533si752649edr.88.2023.04.08.01.15.36; Sat, 08 Apr 2023 01:15:59 -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=BqYXlA8X; 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 S230079AbjDHIOX (ORCPT + 99 others); Sat, 8 Apr 2023 04:14:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229902AbjDHIOU (ORCPT ); Sat, 8 Apr 2023 04:14:20 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E373549F4; Sat, 8 Apr 2023 01:14:18 -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 6840441850; Sat, 8 Apr 2023 13:14:15 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1680941655; bh=C6lgJgkZpQ+Vok1PSRW8xpEjtlkFr/cDQ9phQ33f1NU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BqYXlA8Xgai76pJbJ8wsHr7RpEoSprbMxZQZj/p7WUgxaF3aWmn2G3AkNedabCxDD s0FEEZIci8QgjRcnVHYo9rOigvOGP5R8o6+P/PV8rmhBJzAoHIwIWKDIRUcpApPQy/ WAzhpN0rCnKWcc86k+5w//+vNbCvRqvstGa19liBa771ikFAedIVkobxjtN1k9WI0i DKICYvolSG01fWunTaLMflIJeCQPz4A79+qaOft6xfr21tFPNhm/pM6uWrT73rLCba NHYkGQZT6k4ZVBtXKWefwpl1sp2Q5BdPddlnGiUfdMSV0Vm2+UwzYkahpGvbj6N5Xj V0Yrn4PAvV/XQ== 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, cros-qcom-dts-watchers@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 v6 1/4] arm64: dts: qcom: sc7180: Don't enable lpass clocks by default Date: Sat, 8 Apr 2023 13:13:13 +0500 Message-Id: <20230408081316.234293-2-nikita@trvn.ru> In-Reply-To: <20230408081316.234293-1-nikita@trvn.ru> References: <20230408081316.234293-1-nikita@trvn.ru> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762595186565488714?= X-GMAIL-MSGID: =?utf-8?q?1762595186565488714?= 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. The IDP board gets lpass clocks disabled as it doesn't make use of sound anyway and might use Qualcomm firmware that blocks those clocks. [1] [1] https://lore.kernel.org/all/ZBJhmDd3zK%2FAiwBD@google.com/ Signed-off-by: Nikita Travkin Reviewed-by: Konrad Dybcio Reviewed-by: Douglas Anderson --- v5: minor style changes (Konrad) v6: Extend the commit message (Doug) --- 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..7e57899ef2c6 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -785,6 +785,10 @@ alc5682: codec@1a { }; }; +&lpasscc { + status = "okay"; +}; + &lpass_cpu { status = "okay"; @@ -810,6 +814,10 @@ dai-link@5 { }; }; +&lpass_hm { + status = "okay"; +}; + &mdp { 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 */ }; };