Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: qcom: sc7280: Add cpufreq hw node

Add cpufreq HW device node to scale 4-Silver/3-Gold/1-Gold+
cores on SC7280 SoCs.

Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lore.kernel.org/r/1618020280-5470-2-git-send-email-tdas@codeaurora.org
[bjorn: Dropped reg-names]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

authored by

Taniya Das and committed by
Bjorn Andersson
7dbd121a 822c8f2a

+18
+18
arch/arm64/boot/dts/qcom/sc7280.dtsi
··· 71 71 &LITTLE_CPU_SLEEP_1 72 72 &CLUSTER_SLEEP_0>; 73 73 next-level-cache = <&L2_0>; 74 + qcom,freq-domain = <&cpufreq_hw 0>; 74 75 #cooling-cells = <2>; 75 76 L2_0: l2-cache { 76 77 compatible = "cache"; ··· 91 90 &LITTLE_CPU_SLEEP_1 92 91 &CLUSTER_SLEEP_0>; 93 92 next-level-cache = <&L2_100>; 93 + qcom,freq-domain = <&cpufreq_hw 0>; 94 94 #cooling-cells = <2>; 95 95 L2_100: l2-cache { 96 96 compatible = "cache"; ··· 108 106 &LITTLE_CPU_SLEEP_1 109 107 &CLUSTER_SLEEP_0>; 110 108 next-level-cache = <&L2_200>; 109 + qcom,freq-domain = <&cpufreq_hw 0>; 111 110 #cooling-cells = <2>; 112 111 L2_200: l2-cache { 113 112 compatible = "cache"; ··· 125 122 &LITTLE_CPU_SLEEP_1 126 123 &CLUSTER_SLEEP_0>; 127 124 next-level-cache = <&L2_300>; 125 + qcom,freq-domain = <&cpufreq_hw 0>; 128 126 #cooling-cells = <2>; 129 127 L2_300: l2-cache { 130 128 compatible = "cache"; ··· 142 138 &BIG_CPU_SLEEP_1 143 139 &CLUSTER_SLEEP_0>; 144 140 next-level-cache = <&L2_400>; 141 + qcom,freq-domain = <&cpufreq_hw 1>; 145 142 #cooling-cells = <2>; 146 143 L2_400: l2-cache { 147 144 compatible = "cache"; ··· 159 154 &BIG_CPU_SLEEP_1 160 155 &CLUSTER_SLEEP_0>; 161 156 next-level-cache = <&L2_500>; 157 + qcom,freq-domain = <&cpufreq_hw 1>; 162 158 #cooling-cells = <2>; 163 159 L2_500: l2-cache { 164 160 compatible = "cache"; ··· 176 170 &BIG_CPU_SLEEP_1 177 171 &CLUSTER_SLEEP_0>; 178 172 next-level-cache = <&L2_600>; 173 + qcom,freq-domain = <&cpufreq_hw 1>; 179 174 #cooling-cells = <2>; 180 175 L2_600: l2-cache { 181 176 compatible = "cache"; ··· 193 186 &BIG_CPU_SLEEP_1 194 187 &CLUSTER_SLEEP_0>; 195 188 next-level-cache = <&L2_700>; 189 + qcom,freq-domain = <&cpufreq_hw 1>; 196 190 #cooling-cells = <2>; 197 191 L2_700: l2-cache { 198 192 compatible = "cache"; ··· 1154 1146 clock-names = "xo"; 1155 1147 #clock-cells = <1>; 1156 1148 }; 1149 + }; 1150 + 1151 + cpufreq_hw: cpufreq@18591000 { 1152 + compatible = "qcom,cpufreq-epss"; 1153 + reg = <0 0x18591000 0 0x1000>, 1154 + <0 0x18592000 0 0x1000>, 1155 + <0 0x18593000 0 0x1000>; 1156 + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_GPLL0>; 1157 + clock-names = "xo", "alternate"; 1158 + #freq-domain-cells = <1>; 1157 1159 }; 1158 1160 }; 1159 1161