From patchwork Wed Feb 15 06:55:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 57397 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp40344wrn; Tue, 14 Feb 2023 22:57:30 -0800 (PST) X-Google-Smtp-Source: AK7set+wXA0887tlxlRvUGQwfBJ7lMhnPXxRoGOsocgBG1H1iEH+4lPutsV2N8sbdodXUsjq0lOu X-Received: by 2002:a17:906:ad98:b0:8b1:3002:bd6d with SMTP id la24-20020a170906ad9800b008b13002bd6dmr996468ejb.31.1676444250378; Tue, 14 Feb 2023 22:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676444250; cv=none; d=google.com; s=arc-20160816; b=hKyAqJ2pjgXMExYyWOYhhRj8P95sPhOMdXyTfs4uf2RjrkDBh4U3lh3Kz7CWaFLNWf BbJJwbgJMWyCzRkTDFTqJ48Dqu6Og+TV3Vk4P6TsFFK1BjIEAabXiH8ULBU3DvqKNA1w R9piCZVpnwHdHIXS7Ki9JlGu/Xuu4nYMzUVEkGpLGgfIwJ5mNVpMO+K81vNTsoi1qKDU oQwkU+VBn7SVrewLoHJ8sxu/7IsgDtyReahonSqOSfqjFnI7YYz6yjxYSukB4DWsmJNV PfImwJuVmN0ddgfHKYi25Ov+0WOSFNY2tTyqAKFCmTyhuYCdqg/Zmj/ddX9+K9Fi+dz5 mV7g== 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=iLerwrwmNfdynSXWopegSimuZHzpOIcHKtk78GRdX8o=; b=nY7ATy9lt5jNbuYzUdp+sYZd/W+3nx/glX/5yZbhK9lFUhKPQTXKQmMOJi4I0TjeCg iAz1KpitGASIAm9yTYYRmcbiOQAnrcpyR3nY0KRntqCM1IXoKaO7KYWBKqrlPpFk1kjK JIR8RxOwuPnF7dmIP65EjS5alO/ltW0WHPMn84x8PzzuP/smDy85f8/nthgMkhli19fw WmPli4epBs7yfgWn3yZdni0hzmbwYzI+K1eVvZ4/3Kj4lLAEEcvFGKsWnhvmXFpkihq+ IYaAcB0HX2GUh6ShBS4VNbjT2DGR+3XVJ61/yctnROYjghUzNGhB4867cjNGxGfHnKGJ MVYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UWT7PSGN; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a50ed07000000b004ad0993e54esi488569eds.487.2023.02.14.22.57.07; Tue, 14 Feb 2023 22:57:30 -0800 (PST) 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=@linaro.org header.s=google header.b=UWT7PSGN; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233641AbjBOG4Z (ORCPT + 99 others); Wed, 15 Feb 2023 01:56:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233644AbjBOG4E (ORCPT ); Wed, 15 Feb 2023 01:56:04 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0973C360A2 for ; Tue, 14 Feb 2023 22:55:50 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id oa11-20020a17090b1bcb00b002341a2656e5so1046218pjb.1 for ; Tue, 14 Feb 2023 22:55:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iLerwrwmNfdynSXWopegSimuZHzpOIcHKtk78GRdX8o=; b=UWT7PSGN+DTqPGi5/+E/wRvWd7NuIeEIeYB0D2DExXZ4sJSvhI4Y1UEDIO4fnbBxJ5 UzmCQPiZcwsEOnlRn4tilvAiTCOh06UFypIrUH9Fhp1Y05upYYcRFK0O23xzRYh8Xhta fw24qHfTeWhi2TozzQq3kAbhV10qKE1Vw9OzlrqbBD1XbRh8NRcUd+3JPs681E4gaPOE OPy8RiY5Ho0mIahQBXFameqTf2u6cnRrkC9AsqB4FurpJVYviYlOWupMYo2EtA17XVTO /qJmQuOV80JcPXx43yh6EezCfooJSagqhiHFPAvDmnwSk2kXFYUJ2NA+rAmnhxRKuuz8 6uzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iLerwrwmNfdynSXWopegSimuZHzpOIcHKtk78GRdX8o=; b=hB9EBwrT32uaUIZEyyDe62TX0rlDT9JAhPijZJ8l/SGHbe49ezBGiYQgU/Iac1qt5p fa+WrcCdyLxCZYpLU4S3zakwEC3ioIdAGrh1TlKnMArtti8sdYf3wG0RLOHwzpWGZYcY p27RttZGzvrmvIX93NLneQFp1W3wh6Tal+ubVC9P2q1MCQdkTg1MC7i0i/wovROQNciG SkjAAMGiAclZwhhAI9djXSI+OYcEtOayygvNvP8ZZv3qJ20NxNaqNM4uXwniuVplElWX KOTlsGU+IhwYUHLix/J6Y+xTSVUW+aVxs4zqnSej1+UmfWbIKBy4HL2g0Ys4UGiJN3UY CoTg== X-Gm-Message-State: AO0yUKWuyKDke4SKqU0enSH2o4HmNkD5MYzAU/6vBClhff3eBQdXRzWg fZ3z+iQA8R3w5F74CFyXMNv0 X-Received: by 2002:a17:902:ec81:b0:19a:c432:1f57 with SMTP id x1-20020a170902ec8100b0019ac4321f57mr1666194plg.17.1676444150390; Tue, 14 Feb 2023 22:55:50 -0800 (PST) Received: from localhost.localdomain ([117.217.179.87]) by smtp.gmail.com with ESMTPSA id d23-20020a170902b71700b001933b4b1a49sm10276870pls.183.2023.02.14.22.55.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 22:55:50 -0800 (PST) From: Manivannan Sadhasivam To: andersson@kernel.org Cc: konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, viresh.kumar@linaro.org, Manivannan Sadhasivam Subject: [PATCH 05/12] arm64: dts: qcom: sm8250: Supply clock from cpufreq node to CPUs Date: Wed, 15 Feb 2023 12:25:16 +0530 Message-Id: <20230215065520.5535-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230215065520.5535-1-manivannan.sadhasivam@linaro.org> References: <20230215065520.5535-1-manivannan.sadhasivam@linaro.org> 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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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?1757879206187892197?= X-GMAIL-MSGID: =?utf-8?q?1757879206187892197?= Qualcomm platforms making use of CPUFreq HW Engine (EPSS/OSM) supply clocks to the CPU cores. But this relationship is not represented in DTS so far. So let's make cpufreq node as the clock provider and CPU nodes as the consumers. The clock index for each CPU node is based on the frequency domain index. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 2f0e460acccd..44c8851178eb 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -97,6 +97,7 @@ CPU0: cpu@0 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x0>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; capacity-dmips-mhz = <448>; dynamic-power-coefficient = <205>; @@ -127,6 +128,7 @@ CPU1: cpu@100 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x100>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; capacity-dmips-mhz = <448>; dynamic-power-coefficient = <205>; @@ -151,6 +153,7 @@ CPU2: cpu@200 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x200>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; capacity-dmips-mhz = <448>; dynamic-power-coefficient = <205>; @@ -175,6 +178,7 @@ CPU3: cpu@300 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x300>; + clocks = <&cpufreq_hw 0>; enable-method = "psci"; capacity-dmips-mhz = <448>; dynamic-power-coefficient = <205>; @@ -199,6 +203,7 @@ CPU4: cpu@400 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x400>; + clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <379>; @@ -223,6 +228,7 @@ CPU5: cpu@500 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x500>; + clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <379>; @@ -248,6 +254,7 @@ CPU6: cpu@600 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x600>; + clocks = <&cpufreq_hw 1>; enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <379>; @@ -272,6 +279,7 @@ CPU7: cpu@700 { device_type = "cpu"; compatible = "qcom,kryo485"; reg = <0x0 0x700>; + clocks = <&cpufreq_hw 2>; enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <444>; @@ -5481,6 +5489,7 @@ cpufreq_hw: cpufreq@18591000 { ; interrupt-names = "dcvsh-irq-0", "dcvsh-irq-1", "dcvsh-irq-2"; #freq-domain-cells = <1>; + #clock-cells = <1>; }; };