From patchwork Fri Apr 7 15:14:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 80891 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp359483vqo; Fri, 7 Apr 2023 08:24:28 -0700 (PDT) X-Google-Smtp-Source: AKy350YEHmbfTgVZGn7LZUq0c78DVU8JE1C4fiEkThfFf+PEZt3yYxkUkme7Elle6UYpH+ydJDse X-Received: by 2002:a05:6a20:49a8:b0:cb:ec5f:3c5b with SMTP id fs40-20020a056a2049a800b000cbec5f3c5bmr2867096pzb.18.1680881067974; Fri, 07 Apr 2023 08:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680881067; cv=none; d=google.com; s=arc-20160816; b=V34IbZWYz5mSSw78OAKH61Md4PPdWteGckq7uwDtcTOyrYbh4wW69Wtz9OeOa+Ohnv RdYdo40sm2+BAN2gPKMuzVHnlPw3Ji5PdEwCM0g1v22nEWR+oAYOd1iHd01QKV6gNA1D K1ALShbb/uZDfzyE3CwT75eVtafVgdCjnRXHePFAJ9N07b+j8PS83dK8ShaWPWwQsf41 pTrJ8MU9g59J8f2cuI1r1ntLBZWlFzmsMdanS1s6kl+eUITxhDCi9/uyRV9goUNqzaJP YP8RXdY9Qlzm4cl/RFswmD6eu+iLYzHBw8BKEWpHVhLW7FcE2m6CSs1cc8NZJ9qFB6/V CZYg== 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=aeRapXZ6YXLrDA/syxpArNEhWUclDcXeatzdduAfZtA=; b=0AoawJ5zdLBWFuYA2yI9mTVxlTmh9xvEpsYWcElv2RD+GUerPL9llW0wpAVEKxu3Nh TrW1KOYPmsL7eCX2UmMVe6zYhZNj2muyJVrNy3s1k3Dhg0OOsh7pGCuyE2OTuaIWaEmU l1WUtlN4X5fd3DJrXEllhHyFvalWvOLAKyH2YIolSIMm4zEjjoJzv+reMdOAK3P6VRql IZFlKYI/GOsDYG3/vtjK4NnbkHF9ewIPA9O21nde0mshApIzL6Z6Js7/vwE/WgMwMwpy EuBdzdTJdCxcaJGTCcZGHHnRM18G5ThpwpXMMxUGlmI39iEdpA9q6ZTSn4BdB1d3bNCT eXOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=VyrK2bE0; 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 u63-20020a638542000000b0051398c72685si3678808pgd.662.2023.04.07.08.24.15; Fri, 07 Apr 2023 08:24:27 -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=VyrK2bE0; 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 S240497AbjDGPPL (ORCPT + 99 others); Fri, 7 Apr 2023 11:15:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232122AbjDGPOq (ORCPT ); Fri, 7 Apr 2023 11:14:46 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24617211F; Fri, 7 Apr 2023 08:14:41 -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 A2F264187A; Fri, 7 Apr 2023 20:14:38 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1680880479; bh=pkBQ3odA/vxUW7vs17xlFsj9oqfx5sRH+tXb/d0CO9M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VyrK2bE0cZgvzR+SFDl/sOEctNSv/8tIjqdRUF7nwB9BOwaghLYK8Y1JOJW+2g2Ai QvpWZiVTxo1s/n0ki2P1JqyxYqa6elhOYQekgq6fDFMaRRquUs5hScejFj+1+VU9tr 7XQdNjKjTlEk+Ah901EYwOhkhdd55hY9RUhv8ovs4eOFJZyPK223V/c30IsXwpxh9c 0FOJLjyLoRj2GZ5+0YN25SsY0kBk6auAII0I+tD1X7eOHXTRMZsHTZuNy2s9wVIcow dpewrztYAHhTMNpYYO3RGJoGOFBdi65lvhGRZ5i0Ivh+QnVV6uNlkU+kzWkfYUVhR5 HHHB98WWe0Zsg== 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 v5 1/4] arm64: dts: qcom: sc7180: Don't enable lpass clocks by default Date: Fri, 7 Apr 2023 20:14:20 +0500 Message-Id: <20230407151423.59993-2-nikita@trvn.ru> In-Reply-To: <20230407151423.59993-1-nikita@trvn.ru> References: <20230407151423.59993-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?1762531546649488158?= X-GMAIL-MSGID: =?utf-8?q?1762531546649488158?= 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 Reviewed-by: Konrad Dybcio Reviewed-by: Douglas Anderson --- v5: minor style changes (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..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 */ }; };