From patchwork Mon May 15 09:37:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 94085 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6813979vqo; Mon, 15 May 2023 03:31:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6vCkvrLmmlBXXrwYEwAGKg6Ekex/8i7YildJlqbGgSRaOg9LyIUsiXHWW14Wa+umhXNm8G X-Received: by 2002:a05:6a20:548a:b0:104:1428:8d36 with SMTP id i10-20020a056a20548a00b0010414288d36mr18539682pzk.35.1684146691838; Mon, 15 May 2023 03:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684146691; cv=none; d=google.com; s=arc-20160816; b=vMnwGI8l3mFhc8qbsdTL/SSTc2SZGOqgA8sXr0I46mhjqCMz4IvTeFlUci+6Z/uZxX R0BYzKqo6sYcYUxvxuU9F6V/Jw0Lp4cz0Hz4Lm8tOT1ZmaDPRPUC+xOIQreWQrwKr6pG NAo94vHLiLdm2LewWBRhJVDm0BkIaM8XI6HJFuSg/0DlKYIsvq2WHiryxBkrwu8koRIM I0/0Zg2URpG/FY4enyP7Ir4ZNaOKTjsIbKEZh9lA3k/xvGnzFel2k4l+8ReF71dMF552 /e81AeyexjqP+MbVOCI6UnWgPTzKXiUkrNJvqBBVBZ/wruPLWtbC/NhhFGjLyLRpN+gt ej9g== 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=bBb/AfwFt4SRYRympI6YPigOwOaM0ZwsHMVT/fhjwLE=; b=oaNpcR3UU/Fi6fw65/EmNbnFjk5WRSjbdes2h4u8xflOTbnvmBWPsKHBdXZ8EyQJ+Q AXH1AHuE7tjviEFIBXGsqpY/QQpiIOukcP/svIkeR5iazmWHlKxAvcKTJT2enjNM42uD 6QKA8fjxNUba6S0Ytca1RnMEck79cNeyalzEnpqidobUEPAj2ByJai3DY0Mo6xceYHYS Lwq5dOJhMX8uIr6FD2EvoIbjU069/jsay6lRxpy12GesIFF2mUWCPZqvbJRW0iUVb+VR m3vnn/vbBDqlFLwmdiBK1PTxuVXyUlaW9Tlo3OXC3PLlNHId96PkJ6aRWUcbg/yX/Dxr QsWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=PpPJYtmK; 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 j5-20020a637a45000000b0052875a200fesi15998104pgn.215.2023.05.15.03.31.18; Mon, 15 May 2023 03:31:31 -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=PpPJYtmK; 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 S241080AbjEOKIa (ORCPT + 99 others); Mon, 15 May 2023 06:08:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240667AbjEOKIJ (ORCPT ); Mon, 15 May 2023 06:08:09 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56ACD199; Mon, 15 May 2023 03:07:50 -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 5E2364185F; Mon, 15 May 2023 14:37:51 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1684143471; bh=oNqE/0HvBFxcIEMYbtudwPxtjKI2KGW2T9KslsLh1fM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PpPJYtmKVF6Pcs3/gVFzny3SDv7d+1qIlOUfbM+Ozqa3fE4KAgnx3P4VtrFGBpBab LZyGE1VU4y9pj3+wwlMNf38zl53mALl8H4URw7zF+bqfCkXakOM1QXMFbrmThOjO2z GNVnIi+F/NRYSsPBugM/9xvrFsImWFqK6gkvo/vuByLflFvJFrdKCSrDyaNx2oyXBq PsAQQ0rxVnLhUCUTZGTTtKUzd0B6fpMR91TKqYW/ntbNOEeudSth7OoQ+UHdDsLBrh gd3lXJVAff0wkqlA5lgPlb0uFfywh+E/WuPOmVD5iOiZNflfpmIQ04KDFI6N6N5yM5 dTY5XYVkOke1w== From: Nikita Travkin To: agross@kernel.org, andersson@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.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 RESEND 1/4] arm64: dts: qcom: sc7180: Don't enable lpass clocks by default Date: Mon, 15 May 2023 14:37:41 +0500 Message-Id: <20230515093744.289045-2-nikita@trvn.ru> In-Reply-To: <20230515093744.289045-1-nikita@trvn.ru> References: <20230515093744.289045-1-nikita@trvn.ru> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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?1765955801739303206?= X-GMAIL-MSGID: =?utf-8?q?1765955801739303206?= 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 ca6920de7ea8..6cf09152fdfd 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -788,6 +788,10 @@ alc5682: codec@1a { }; }; +&lpasscc { + status = "okay"; +}; + &lpass_cpu { status = "okay"; @@ -813,6 +817,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 ea1ffade1aa1..39130596dc7d 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -3627,6 +3627,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 { @@ -3675,6 +3677,8 @@ lpass_hm: clock-controller@63000000 { #clock-cells = <1>; #power-domain-cells = <1>; + + status = "reserved"; /* Controlled by ADSP */ }; };