1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * Copyright (c) 2022, Linaro Limited 4 */ 5 6 #include "msm8996.dtsi" 7 8 / { 9 /delete-node/ opp-table-cluster0; 10 /delete-node/ opp-table-cluster1; 11 12 /* 13 * On MSM8996 Pro the cpufreq driver s 14 * nibble of supported hw, so speed bi 15 * becomes 0x20, speed 2 becomes 0x40. 16 */ 17 18 cluster0_opp: opp-table-cluster0 { 19 compatible = "operating-points 20 nvmem-cells = <&speedbin_efuse 21 opp-shared; 22 23 opp-307200000 { 24 opp-hz = /bits/ 64 <30 25 opp-supported-hw = <0x 26 clock-latency-ns = <20 27 opp-peak-kBps = <19200 28 }; 29 opp-384000000 { 30 opp-hz = /bits/ 64 <38 31 opp-supported-hw = <0x 32 clock-latency-ns = <20 33 opp-peak-kBps = <19200 34 }; 35 opp-460800000 { 36 opp-hz = /bits/ 64 <46 37 opp-supported-hw = <0x 38 clock-latency-ns = <20 39 opp-peak-kBps = <19200 40 }; 41 opp-537600000 { 42 opp-hz = /bits/ 64 <53 43 opp-supported-hw = <0x 44 clock-latency-ns = <20 45 opp-peak-kBps = <19200 46 }; 47 opp-614400000 { 48 opp-hz = /bits/ 64 <61 49 opp-supported-hw = <0x 50 clock-latency-ns = <20 51 opp-peak-kBps = <19200 52 }; 53 opp-691200000 { 54 opp-hz = /bits/ 64 <69 55 opp-supported-hw = <0x 56 clock-latency-ns = <20 57 opp-peak-kBps = <30720 58 }; 59 opp-768000000 { 60 opp-hz = /bits/ 64 <76 61 opp-supported-hw = <0x 62 clock-latency-ns = <20 63 opp-peak-kBps = <30720 64 }; 65 opp-844800000 { 66 opp-hz = /bits/ 64 <84 67 opp-supported-hw = <0x 68 clock-latency-ns = <20 69 opp-peak-kBps = <38400 70 }; 71 opp-902400000 { 72 opp-hz = /bits/ 64 <90 73 opp-supported-hw = <0x 74 clock-latency-ns = <20 75 opp-peak-kBps = <44160 76 }; 77 opp-979200000 { 78 opp-hz = /bits/ 64 <97 79 opp-supported-hw = <0x 80 clock-latency-ns = <20 81 opp-peak-kBps = <53760 82 }; 83 opp-1056000000 { 84 opp-hz = /bits/ 64 <10 85 opp-supported-hw = <0x 86 clock-latency-ns = <20 87 opp-peak-kBps = <61440 88 }; 89 opp-1132800000 { 90 opp-hz = /bits/ 64 <11 91 opp-supported-hw = <0x 92 clock-latency-ns = <20 93 opp-peak-kBps = <69120 94 }; 95 opp-1209600000 { 96 opp-hz = /bits/ 64 <12 97 opp-supported-hw = <0x 98 clock-latency-ns = <20 99 opp-peak-kBps = <76800 100 }; 101 opp-1286400000 { 102 opp-hz = /bits/ 64 <12 103 opp-supported-hw = <0x 104 clock-latency-ns = <20 105 opp-peak-kBps = <84480 106 }; 107 opp-1363200000 { 108 opp-hz = /bits/ 64 <13 109 opp-supported-hw = <0x 110 clock-latency-ns = <20 111 opp-peak-kBps = <90240 112 }; 113 opp-1440000000 { 114 opp-hz = /bits/ 64 <14 115 opp-supported-hw = <0x 116 clock-latency-ns = <20 117 opp-peak-kBps = <97920 118 }; 119 opp-1516800000 { 120 opp-hz = /bits/ 64 <15 121 opp-supported-hw = <0x 122 clock-latency-ns = <20 123 opp-peak-kBps = <11328 124 }; 125 opp-1593600000 { 126 opp-hz = /bits/ 64 <15 127 opp-supported-hw = <0x 128 clock-latency-ns = <20 129 opp-peak-kBps = <11904 130 }; 131 opp-1996800000 { 132 opp-hz = /bits/ 64 <19 133 opp-supported-hw = <0x 134 clock-latency-ns = <20 135 opp-peak-kBps = <15168 136 }; 137 opp-2188800000 { 138 opp-hz = /bits/ 64 <21 139 opp-supported-hw = <0x 140 clock-latency-ns = <20 141 opp-peak-kBps = <15936 142 }; 143 }; 144 145 cluster1_opp: opp-table-cluster1 { 146 compatible = "operating-points 147 nvmem-cells = <&speedbin_efuse 148 opp-shared; 149 150 opp-307200000 { 151 opp-hz = /bits/ 64 <30 152 opp-supported-hw = <0x 153 clock-latency-ns = <20 154 opp-peak-kBps = <19200 155 }; 156 opp-384000000 { 157 opp-hz = /bits/ 64 <38 158 opp-supported-hw = <0x 159 clock-latency-ns = <20 160 opp-peak-kBps = <19200 161 }; 162 opp-460800000 { 163 opp-hz = /bits/ 64 <46 164 opp-supported-hw = <0x 165 clock-latency-ns = <20 166 opp-peak-kBps = <19200 167 }; 168 opp-537600000 { 169 opp-hz = /bits/ 64 <53 170 opp-supported-hw = <0x 171 clock-latency-ns = <20 172 opp-peak-kBps = <19200 173 }; 174 opp-614400000 { 175 opp-hz = /bits/ 64 <61 176 opp-supported-hw = <0x 177 clock-latency-ns = <20 178 opp-peak-kBps = <19200 179 }; 180 opp-691200000 { 181 opp-hz = /bits/ 64 <69 182 opp-supported-hw = <0x 183 clock-latency-ns = <20 184 opp-peak-kBps = <30720 185 }; 186 opp-748800000 { 187 opp-hz = /bits/ 64 <74 188 opp-supported-hw = <0x 189 clock-latency-ns = <20 190 opp-peak-kBps = <30720 191 }; 192 opp-825600000 { 193 opp-hz = /bits/ 64 <82 194 opp-supported-hw = <0x 195 clock-latency-ns = <20 196 opp-peak-kBps = <38400 197 }; 198 opp-902400000 { 199 opp-hz = /bits/ 64 <90 200 opp-supported-hw = <0x 201 clock-latency-ns = <20 202 opp-peak-kBps = <44160 203 }; 204 opp-979200000 { 205 opp-hz = /bits/ 64 <97 206 opp-supported-hw = <0x 207 clock-latency-ns = <20 208 opp-peak-kBps = <44160 209 }; 210 opp-1056000000 { 211 opp-hz = /bits/ 64 <10 212 opp-supported-hw = <0x 213 clock-latency-ns = <20 214 opp-peak-kBps = <53760 215 }; 216 opp-1132800000 { 217 opp-hz = /bits/ 64 <11 218 opp-supported-hw = <0x 219 clock-latency-ns = <20 220 opp-peak-kBps = <61440 221 }; 222 opp-1209600000 { 223 opp-hz = /bits/ 64 <12 224 opp-supported-hw = <0x 225 clock-latency-ns = <20 226 opp-peak-kBps = <69120 227 }; 228 opp-1286400000 { 229 opp-hz = /bits/ 64 <12 230 opp-supported-hw = <0x 231 clock-latency-ns = <20 232 opp-peak-kBps = <76800 233 }; 234 opp-1363200000 { 235 opp-hz = /bits/ 64 <13 236 opp-supported-hw = <0x 237 clock-latency-ns = <20 238 opp-peak-kBps = <84480 239 }; 240 opp-1440000000 { 241 opp-hz = /bits/ 64 <14 242 opp-supported-hw = <0x 243 clock-latency-ns = <20 244 opp-peak-kBps = <90240 245 }; 246 opp-1516800000 { 247 opp-hz = /bits/ 64 <15 248 opp-supported-hw = <0x 249 clock-latency-ns = <20 250 opp-peak-kBps = <97920 251 }; 252 opp-1593600000 { 253 opp-hz = /bits/ 64 <15 254 opp-supported-hw = <0x 255 clock-latency-ns = <20 256 opp-peak-kBps = <10560 257 }; 258 opp-1670400000 { 259 opp-hz = /bits/ 64 <16 260 opp-supported-hw = <0x 261 clock-latency-ns = <20 262 opp-peak-kBps = <11328 263 }; 264 opp-1747200000 { 265 opp-hz = /bits/ 64 <17 266 opp-supported-hw = <0x 267 clock-latency-ns = <20 268 opp-peak-kBps = <11904 269 }; 270 opp-1824000000 { 271 opp-hz = /bits/ 64 <18 272 opp-supported-hw = <0x 273 clock-latency-ns = <20 274 opp-peak-kBps = <12864 275 }; 276 opp-1900800000 { 277 opp-hz = /bits/ 64 <19 278 opp-supported-hw = <0x 279 clock-latency-ns = <20 280 opp-peak-kBps = <13632 281 }; 282 opp-1977600000 { 283 opp-hz = /bits/ 64 <19 284 opp-supported-hw = <0x 285 clock-latency-ns = <20 286 opp-peak-kBps = <14400 287 }; 288 opp-2054400000 { 289 opp-hz = /bits/ 64 <20 290 opp-supported-hw = <0x 291 clock-latency-ns = <20 292 opp-peak-kBps = <15168 293 }; 294 opp-2150400000 { 295 opp-hz = /bits/ 64 <21 296 opp-supported-hw = <0x 297 clock-latency-ns = <20 298 opp-peak-kBps = <15936 299 }; 300 opp-2246400000 { 301 opp-hz = /bits/ 64 <22 302 opp-supported-hw = <0x 303 clock-latency-ns = <20 304 opp-peak-kBps = <15936 305 }; 306 opp-2342400000 { 307 opp-hz = /bits/ 64 <23 308 opp-supported-hw = <0x 309 clock-latency-ns = <20 310 opp-peak-kBps = <15936 311 }; 312 }; 313 }; 314 315 &gpu_opp_table { 316 /* 317 * Unlike CPU opp tables, the GPU driv 318 * 319 * 652.8 Mhz is available on speed bin 320 * 624 Mhz and 560 Mhz are available o 321 * All the rest are available on all b 322 * plain 8996). 323 */ 324 325 opp-652800000 { 326 opp-hz = /bits/ 64 <652800000> 327 opp-supported-hw = <0x01>; 328 }; 329 opp-624000000 { 330 opp-hz = /bits/ 64 <624000000> 331 opp-supported-hw = <0x03>; 332 }; 333 opp-560000000 { 334 opp-hz = /bits/ 64 <560000000> 335 opp-supported-hw = <0x03>; 336 }; 337 /* The rest is inherited from msm8996 338 }; 339 340 &cbf { 341 compatible = "qcom,msm8996pro-cbf"; 342 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.