Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1850572ybl; Thu, 19 Dec 2019 04:08:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzK2Nry+YvuJX91e8FkZOXntMl2qcOHOFH+/cSD7MhdEo/xUHyQ+yoS17OfRG5d4qk4wza4 X-Received: by 2002:aca:43c1:: with SMTP id q184mr1774666oia.116.1576757334034; Thu, 19 Dec 2019 04:08:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576757334; cv=none; d=google.com; s=arc-20160816; b=u41/JmMdKQhU7kFXeXxxcmbg10GWscqCkpBd50+E5pyEGg4NPiqrlTh7iVZtqDn7A7 gP9/yAqG6Rb8F2809hy8j16KINzFDNrj4j/tpaRBVAsYCAV0WaLwI10zsKH/DuFpB2z+ wNsCy5T2JwnCx+2X2goenyj9I1z8wUFWC/DWFAevDbBCd4jDchfwR5TOrUXDFeFYcp64 rKoZci5zdw3JbN7nuTigW3RsuGVUajd57kV7IurXFVyh9OY8RJhmy+4XKzgacRTPnurw 8037CUnxG9+AldyCvlXuDeDQSxUgO+YixkNeLJJTTZzHOq9DgQWYCdYQSh00P9OSyeuy RvGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature; bh=IF4vMvqiy9Q7KLJ8/f0lHi+0oxVzVOrufU/ebDNywnM=; b=dndg1BMwCOFhSRHDLLDec3drbEOkTZep+rblnuaXIuSQQtJkgSYcpPJgMmzwN20jTW zFtdrxNHG51QkgHK1eBhkkK0/WZ5yKwpSVO66HO4BaU9/rNH/FyEykG+NQnimHQYVqax P3Fe7laGsJd2t5QokfGorW0lSYm382XR9hzqyVmzwFjcjqd9Pi2WMMwr/dH38m5EK0kd wrzjm0UIrc+fNpY/WJGHaY3BP71qkVAu+n9AZB/bey3R4NtU8bVWZsidsTEIxnC8UiYb Pfxy5ThqZlndU5/7RPFAVmlRxn2ytrdbIwAAMOgbuq09MHzk6z8jMwiOW1OOBMJALZfG 9Uhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=unrgmKuz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z62si3115223oiz.271.2019.12.19.04.08.42; Thu, 19 Dec 2019 04:08:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=unrgmKuz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726828AbfLSMGw (ORCPT + 99 others); Thu, 19 Dec 2019 07:06:52 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:31927 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726712AbfLSMGw (ORCPT ); Thu, 19 Dec 2019 07:06:52 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1576757211; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=IF4vMvqiy9Q7KLJ8/f0lHi+0oxVzVOrufU/ebDNywnM=; b=unrgmKuzVlP9erLClJBzHyllYxA6hLSyzyZvmJww8Gd5aAvAuPEXg6F0LMoEiLkUOr0sPRR3 KHMUxymObo0P5PSumyhYYnPRvg9vo8Xg+an/HUj7huOw/d65/+vpwA9kH9PwdgueNZVhxjmt a84Mc6VQRenNNgp5CvkXwd3uNPE= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5dfb67d7.7f533b9aa148-smtp-out-n01; Thu, 19 Dec 2019 12:06:47 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 8DA9AC4479D; Thu, 19 Dec 2019 12:06:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from blr-ubuntu-87.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3CB0CC433CB; Thu, 19 Dec 2019 12:06:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3CB0CC433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: bjorn.andersson@linaro.org Cc: agross@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, Sibi Sankar Subject: [PATCH] arm64: dts: qcom: sm8150: Add cpufreq HW device node Date: Thu, 19 Dec 2019 17:36:33 +0530 Message-Id: <20191219120633.20723-1-sibis@codeaurora.org> X-Mailer: git-send-email 2.22.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add cpufreq HW device node to scale 4-Silver/3-Gold/1-Gold+ cores on SM8150 SoCs. Signed-off-by: Sibi Sankar --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 694be3c001a68..bad77e539cb1d 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -45,6 +45,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>; @@ -60,6 +61,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>; @@ -73,6 +75,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>; @@ -85,6 +88,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>; @@ -97,6 +101,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>; @@ -109,6 +114,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>; @@ -121,6 +127,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>; @@ -133,6 +140,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>; @@ -834,6 +842,19 @@ }; }; }; + + cpufreq_hw: cpufreq@18323000 { + compatible = "qcom,cpufreq-hw"; + reg = <0 0x18323000 0 0x1400>, <0 0x18325800 0 0x1400>, + <0 0x18327800 0 0x1400>; + reg-names = "freq-domain0", "freq-domain1", + "freq-domain2"; + + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GPLL0>; + clock-names = "xo", "alternate"; + + #freq-domain-cells = <1>; + }; }; timer { -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project