From ee17ea5be706b522ca48047d69955d03c0273990 Mon Sep 17 00:00:00 2001 From: Veera Vegivada Date: Fri, 6 Nov 2020 09:23:45 +0530 Subject: [PATCH] arm64: dts: qcom: sm8150: Add cpufreq HW device node Add cpufreq HW device node to scale 4-Silver/3-Gold/1-Gold+ cores on SM8150 SoCs. Change-Id: I37fe076fbcc66b04183939ef555381f02825f387 Signed-off-by: Sibi Sankar Link: https://lore.kernel.org/r/20191219120633.20723-1-sibis@codeaurora.org Signed-off-by: Bjorn Andersson Git-commit: fea8930bd55e6d88e43ce44cd058aee3b85de274 Git-repo: https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next [vvegivad@codeaurora.org: minor modifications needed to handle as per cpufreq-hw driver] Signed-off-by: Veera Vegivada --- qcom/sm8150.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/qcom/sm8150.dtsi b/qcom/sm8150.dtsi index dc15e677873c..28a139213f08 100644 --- a/qcom/sm8150.dtsi +++ b/qcom/sm8150.dtsi @@ -42,6 +42,7 @@ cpu-idle-states = <&SLVR_RAIL_OFF>; capacity-dmips-mhz = <1024>; next-level-cache = <&L2_0>; + qcom,freq-domain = <&cpufreq_hw 0 4>; L2_0: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; @@ -76,6 +77,7 @@ cpu-idle-states = <&SLVR_RAIL_OFF>; capacity-dmips-mhz = <1024>; next-level-cache = <&L2_1>; + qcom,freq-domain = <&cpufreq_hw 0 4>; L2_1: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; @@ -105,6 +107,7 @@ cpu-idle-states = <&SLVR_RAIL_OFF>; capacity-dmips-mhz = <1024>; next-level-cache = <&L2_2>; + qcom,freq-domain = <&cpufreq_hw 0 4>; L2_2: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; @@ -134,6 +137,7 @@ cpu-idle-states = <&SLVR_RAIL_OFF>; capacity-dmips-mhz = <1024>; next-level-cache = <&L2_3>; + qcom,freq-domain = <&cpufreq_hw 0 4>; L2_3: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; @@ -163,6 +167,7 @@ cpu-idle-states = <&GOLD_RAIL_OFF>; capacity-dmips-mhz = <1740>; next-level-cache = <&L2_4>; + qcom,freq-domain = <&cpufreq_hw 1 4>; L2_4: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; @@ -201,6 +206,7 @@ cpu-idle-states = <&GOLD_RAIL_OFF>; capacity-dmips-mhz = <1740>; next-level-cache = <&L2_5>; + qcom,freq-domain = <&cpufreq_hw 1 4>; L2_5: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; @@ -239,6 +245,7 @@ cpu-idle-states = <&GOLD_RAIL_OFF>; capacity-dmips-mhz = <1740>; next-level-cache = <&L2_6>; + qcom,freq-domain = <&cpufreq_hw 1 4>; L2_6: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; @@ -277,6 +284,7 @@ cpu-idle-states = <&GOLD_RAIL_OFF>; capacity-dmips-mhz = <1740>; next-level-cache = <&L2_7>; + qcom,freq-domain = <&cpufreq_hw 2 4>; L2_7: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; @@ -849,6 +857,20 @@ #clock-cells = <1>; }; + cpufreq_hw: cpufreq@18323000 { + compatible = "qcom,cpufreq-hw"; + reg = <0x18323000 0x1400>, <0x18325800 0x1400>, + <0x18327800 0x1400>; + reg-names = "freq-domain0", "freq-domain1", + "freq-domain2"; + + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GPLL0>; + clock-names = "xo", "alternate"; + + + #freq-domain-cells = <2>; + }; + osm_l3: interconnect@0x18321000 { reg = <0x18321000 0x1400>; compatible = "qcom,sm8150-osm-l3";