From patchwork Tue Sep 8 07:57:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 249278 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4326515ilg; Tue, 8 Sep 2020 00:58:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv9fWOJXtYLePThaYzKZenU4O8ZpX3YyMe8KKMtKyuKVCBsFVZ8zjy3Q1ObsHv6Leo3+l7 X-Received: by 2002:a50:bb65:: with SMTP id y92mr25463283ede.53.1599551883578; Tue, 08 Sep 2020 00:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599551883; cv=none; d=google.com; s=arc-20160816; b=FHBn4l1pjME1ETxhTfVdRaLW9wMxADh+kZoT3Kk7QlYExcCQDJ2FFlVRlr3aY0hqnt dKGpbe2vN6kOKYnsev4zl9kp0Qje3+YRfG9uObFxiOv/FRRIs9JrSEHFPUWQgK2187nA H9HsDWveP/Ra5H/Ysps/IK+rT+FSXglRsU2FwrQBQv0Nag9OGHp2rDusXbnsY3WYugte ce787U7zwxXzE8D65NTY+cOX9nx9Oakrz9hFKUiWgNcETA+wyXFdY6mF9WZOPmEbKNZ5 XfdR0dYjjrs2SOn9Ule0H62ZR/2CsDZZd++w2NdCMfJL0fGbml4k54zulDzX/kKDhy2D TneA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=dVSf2eOrndrAFT6QUUuIacL06FJeCrpQS/XjWnR+m+g=; b=m0Qe3dWJmjIjHSp6HJz42H5rtIXRROPm4VvF8adn6ROE2T/d1i/Or6ur/O4uamZPBR aO9oMfy/JjJAYiT635uu68eyvp2nNGbpH7eWWzEZVCNoZVXYBpW8EBWSznuVaN1AMHvQ xJQ4H3lvbV3i76ehfiJUNEXNYR5MgBpT9xpZq9o6sV9+rqwZGjiAmZxr169IWJIiaveU MHUyPfgW2Pwa4BRzV5bneN7UuNSRKr9A0e/3157exuqHT06vpnuD5jL6+RZx0Id8Tg6s y66aDQgu1pK2XXyDeXEEb54yGdoAQYW8MQN3tti8i7z2kzw22UoTlS1SFjk0fIMMMTVX qLNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mvoXEciH; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si11696398ejt.529.2020.09.08.00.58.03; Tue, 08 Sep 2020 00:58:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mvoXEciH; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S1729953AbgIHH5z (ORCPT + 10 others); Tue, 8 Sep 2020 03:57:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729922AbgIHH5s (ORCPT ); Tue, 8 Sep 2020 03:57:48 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F84EC061795 for ; Tue, 8 Sep 2020 00:57:40 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id 34so58935pgo.13 for ; Tue, 08 Sep 2020 00:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dVSf2eOrndrAFT6QUUuIacL06FJeCrpQS/XjWnR+m+g=; b=mvoXEciH3g8cWyPFw9lkTqVILJbvJy/xomNt+JSdkBHHQNF2MlRH3EQjTsB8fq73HL 2OZCi1DOBNI99po5o1KJh8+/J1arFAi5xBt0YYPBLBFwx9NqCcwg5QyVZt+CFyU4APy4 yc7mNeeXusKRsmrPx3hq6my8gSLdit/IQwU3NM0Q8MlimrqEOp8DNDuQ5G99nQ860Yh3 GnlwLFicuh0PSeLacjzMz5W0R+65KY9RJ2tj4FsCgn2cYAQ4WTwPQAukCbnzwIrP5ylZ kwStDaBvKbOHy67PH4dMpLliQneKVF9eTGavJE0tB+kI1GaRpozoAnjlCxcB4yjo1L4y nEsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dVSf2eOrndrAFT6QUUuIacL06FJeCrpQS/XjWnR+m+g=; b=R+UpWOf0hN3fPS65+c00UNRBPaz5JKq7F+27cNT0e0U0bOoa3x4J0NY4aGK8Tsew4Z dRljswLWe/ZzYGixbH616XCMCokBVkKGJOtix4GtgWyKOrcgYNPxSF2TfIUVPXdMX5KI mlstXAHPAlaI/QLJkEIbXjFfkSBUc9QWEmj77I2nv3dy06VHm1H19NASUmwBcOiDBhk6 gl/y+IZ0vMejik5E9a3d00/zLae2PMgeOwzECoPxZp5sWXWf3j0dRp1Tg+87QebcTVGH e0KOjG+078CUzsg6ps3+rtiR7XQEO8BSWCl4IOdtrZk7pGLpvR1hOm1vgrZ1SBx4Yys0 r0mQ== X-Gm-Message-State: AOAM531IiBd2p2yvnjE+7MpaIIBmYko+MwhKkLyhauH9sNdUEPptaxqp 3BGcX8vYJJjhVEY9TPffZ323 X-Received: by 2002:a63:2055:: with SMTP id r21mr6448504pgm.118.1599551858556; Tue, 08 Sep 2020 00:57:38 -0700 (PDT) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id m21sm7560154pfo.13.2020.09.08.00.57.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 00:57:38 -0700 (PDT) From: Manivannan Sadhasivam To: rjw@rjwysocki.net, viresh.kumar@linaro.org, robh+dt@kernel.org, agross@kernel.org, bjorn.andersson@linaro.org Cc: amitk@kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, dmitry.baryshkov@linaro.org, tdas@codeaurora.org, Manivannan Sadhasivam Subject: [PATCH 2/7] arm64: dts: qcom: sm8250: Add cpufreq hw node Date: Tue, 8 Sep 2020 13:27:11 +0530 Message-Id: <20200908075716.30357-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200908075716.30357-1-manivannan.sadhasivam@linaro.org> References: <20200908075716.30357-1-manivannan.sadhasivam@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Bjorn Andersson Add cpufreq HW device node to scale 4-Silver/3-Gold/1-Gold+ cores on SM8250 SoCs. Signed-off-by: Bjorn Andersson Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) -- 2.17.1 Acked-by: Viresh Kumar Reviewed-by: Amit Kucheria diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index e7d139e1a6ce..aafb46a26a9c 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -87,6 +87,7 @@ reg = <0x0 0x0>; enable-method = "psci"; next-level-cache = <&L2_0>; + qcom,freq-domain = <&cpufreq_hw 0>; L2_0: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -102,6 +103,7 @@ reg = <0x0 0x100>; enable-method = "psci"; next-level-cache = <&L2_100>; + qcom,freq-domain = <&cpufreq_hw 0>; L2_100: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -114,6 +116,7 @@ reg = <0x0 0x200>; enable-method = "psci"; next-level-cache = <&L2_200>; + qcom,freq-domain = <&cpufreq_hw 0>; L2_200: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -126,6 +129,7 @@ reg = <0x0 0x300>; enable-method = "psci"; next-level-cache = <&L2_300>; + qcom,freq-domain = <&cpufreq_hw 0>; L2_300: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -138,6 +142,7 @@ reg = <0x0 0x400>; enable-method = "psci"; next-level-cache = <&L2_400>; + qcom,freq-domain = <&cpufreq_hw 1>; L2_400: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -150,6 +155,7 @@ reg = <0x0 0x500>; enable-method = "psci"; next-level-cache = <&L2_500>; + qcom,freq-domain = <&cpufreq_hw 1>; L2_500: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -163,6 +169,7 @@ reg = <0x0 0x600>; enable-method = "psci"; next-level-cache = <&L2_600>; + qcom,freq-domain = <&cpufreq_hw 1>; L2_600: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -175,6 +182,7 @@ reg = <0x0 0x700>; enable-method = "psci"; next-level-cache = <&L2_700>; + qcom,freq-domain = <&cpufreq_hw 2>; L2_700: l2-cache { compatible = "cache"; next-level-cache = <&L3_0>; @@ -2076,6 +2084,20 @@ }; }; }; + + cpufreq_hw: cpufreq@18591000 { + compatible = "qcom,sm8250-epss"; + reg = <0 0x18591000 0 0x1000>, + <0 0x18592000 0 0x1000>, + <0 0x18593000 0 0x1000>; + reg-names = "freq-domain0", "freq-domain1", + "freq-domain2"; + + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GPLL0>; + clock-names = "xo", "alternate"; + + #freq-domain-cells = <1>; + }; }; timer {