Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015-2016, 2018, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | / { |
| 15 | psci { |
| 16 | compatible = "arm,psci-1.0"; |
| 17 | method = "smc"; |
| 18 | }; |
| 19 | |
| 20 | cpus { |
| 21 | #address-cells = <1>; |
| 22 | #size-cells = <0>; |
| 23 | cpu-map { |
| 24 | cluster0 { |
| 25 | core0 { |
| 26 | cpu = <&CPU4>; |
| 27 | }; |
| 28 | core1 { |
| 29 | cpu = <&CPU5>; |
| 30 | }; |
| 31 | core2 { |
| 32 | cpu = <&CPU6>; |
| 33 | }; |
| 34 | core3 { |
| 35 | cpu = <&CPU7>; |
| 36 | }; |
| 37 | }; |
| 38 | |
| 39 | cluster1 { |
| 40 | core0 { |
| 41 | cpu = <&CPU0>; |
| 42 | }; |
| 43 | core1 { |
| 44 | cpu = <&CPU1>; |
| 45 | }; |
| 46 | core2 { |
| 47 | cpu = <&CPU2>; |
| 48 | }; |
| 49 | core3 { |
| 50 | cpu = <&CPU3>; |
| 51 | }; |
| 52 | }; |
| 53 | }; |
| 54 | |
| 55 | CPU0: cpu@100 { |
| 56 | device_type = "cpu"; |
| 57 | compatible = "arm,cortex-a53"; |
| 58 | reg = <0x100>; |
| 59 | enable-method = "psci"; |
blong | 74c5cc2 | 2018-03-02 14:10:27 +0800 | [diff] [blame] | 60 | efficiency = <1126>; |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 61 | sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 62 | next-level-cache = <&L2_1>; |
Manaf Meethalavalappu Pallikunhi | aeb6bc7 | 2018-03-14 18:09:18 +0530 | [diff] [blame] | 63 | #cooling-cells = <2>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 64 | L2_1: l2-cache { |
| 65 | compatible = "arm,arch-cache"; |
| 66 | cache-level = <2>; |
| 67 | /* A53 L2 dump not supported */ |
| 68 | qcom,dump-size = <0x0>; |
| 69 | }; |
| 70 | L1_I_100: l1-icache { |
| 71 | compatible = "arm,arch-cache"; |
| 72 | qcom,dump-size = <0x8800>; |
| 73 | }; |
| 74 | L1_D_100: l1-dcache { |
| 75 | compatible = "arm,arch-cache"; |
| 76 | qcom,dump-size = <0x9000>; |
| 77 | }; |
| 78 | }; |
| 79 | |
| 80 | CPU1: cpu@101 { |
| 81 | device_type = "cpu"; |
| 82 | compatible = "arm,cortex-a53"; |
| 83 | reg = <0x101>; |
| 84 | enable-method = "psci"; |
blong | 74c5cc2 | 2018-03-02 14:10:27 +0800 | [diff] [blame] | 85 | efficiency = <1126>; |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 86 | sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 87 | next-level-cache = <&L2_1>; |
Manaf Meethalavalappu Pallikunhi | aeb6bc7 | 2018-03-14 18:09:18 +0530 | [diff] [blame] | 88 | #cooling-cells = <2>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 89 | L1_I_101: l1-icache { |
| 90 | compatible = "arm,arch-cache"; |
| 91 | qcom,dump-size = <0x8800>; |
| 92 | }; |
| 93 | L1_D_101: l1-dcache { |
| 94 | compatible = "arm,arch-cache"; |
| 95 | qcom,dump-size = <0x9000>; |
| 96 | }; |
| 97 | }; |
| 98 | |
| 99 | CPU2: cpu@102 { |
| 100 | device_type = "cpu"; |
| 101 | compatible = "arm,cortex-a53"; |
| 102 | reg = <0x102>; |
| 103 | enable-method = "psci"; |
blong | 74c5cc2 | 2018-03-02 14:10:27 +0800 | [diff] [blame] | 104 | efficiency = <1126>; |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 105 | sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 106 | next-level-cache = <&L2_1>; |
Manaf Meethalavalappu Pallikunhi | aeb6bc7 | 2018-03-14 18:09:18 +0530 | [diff] [blame] | 107 | #cooling-cells = <2>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 108 | L1_I_102: l1-icache { |
| 109 | compatible = "arm,arch-cache"; |
| 110 | qcom,dump-size = <0x8800>; |
| 111 | }; |
| 112 | L1_D_102: l1-dcache { |
| 113 | compatible = "arm,arch-cache"; |
| 114 | qcom,dump-size = <0x9000>; |
| 115 | }; |
| 116 | }; |
| 117 | |
| 118 | CPU3: cpu@103 { |
| 119 | device_type = "cpu"; |
| 120 | compatible = "arm,cortex-a53"; |
| 121 | reg = <0x103>; |
| 122 | enable-method = "psci"; |
blong | 74c5cc2 | 2018-03-02 14:10:27 +0800 | [diff] [blame] | 123 | efficiency = <1126>; |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 124 | sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 125 | next-level-cache = <&L2_1>; |
Manaf Meethalavalappu Pallikunhi | aeb6bc7 | 2018-03-14 18:09:18 +0530 | [diff] [blame] | 126 | #cooling-cells = <2>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 127 | L1_I_103: l1-icache { |
| 128 | compatible = "arm,arch-cache"; |
| 129 | qcom,dump-size = <0x8800>; |
| 130 | }; |
| 131 | L1_D_103: l1-dcache { |
| 132 | compatible = "arm,arch-cache"; |
| 133 | qcom,dump-size = <0x9000>; |
| 134 | }; |
| 135 | }; |
| 136 | |
| 137 | CPU4: cpu@0 { |
| 138 | device_type = "cpu"; |
| 139 | compatible = "arm,cortex-a53"; |
| 140 | reg = <0x0>; |
| 141 | enable-method = "psci"; |
blong | 74c5cc2 | 2018-03-02 14:10:27 +0800 | [diff] [blame] | 142 | efficiency = <1024>; |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 143 | sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 144 | next-level-cache = <&L2_0>; |
Manaf Meethalavalappu Pallikunhi | aeb6bc7 | 2018-03-14 18:09:18 +0530 | [diff] [blame] | 145 | #cooling-cells = <2>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 146 | L2_0: l2-cache { |
| 147 | compatible = "arm,arch-cache"; |
| 148 | cache-level = <2>; |
| 149 | qcom,dump-size = <0x0>; |
| 150 | }; |
| 151 | L1_I_0: l1-icache { |
| 152 | compatible = "arm,arch-cache"; |
| 153 | qcom,dump-size = <0x8800>; |
| 154 | }; |
| 155 | L1_D_0: l1-dcache { |
| 156 | compatible = "arm,arch-cache"; |
| 157 | qcom,dump-size = <0x9000>; |
| 158 | }; |
| 159 | }; |
| 160 | |
| 161 | CPU5: cpu@1 { |
| 162 | device_type = "cpu"; |
| 163 | compatible = "arm,cortex-a53"; |
| 164 | reg = <0x1>; |
| 165 | enable-method = "psci"; |
blong | 74c5cc2 | 2018-03-02 14:10:27 +0800 | [diff] [blame] | 166 | efficiency = <1024>; |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 167 | sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 168 | next-level-cache = <&L2_0>; |
Manaf Meethalavalappu Pallikunhi | aeb6bc7 | 2018-03-14 18:09:18 +0530 | [diff] [blame] | 169 | #cooling-cells = <2>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 170 | L1_I_1: l1-icache { |
| 171 | compatible = "arm,arch-cache"; |
| 172 | qcom,dump-size = <0x8800>; |
| 173 | }; |
| 174 | L1_D_1: l1-dcache { |
| 175 | compatible = "arm,arch-cache"; |
| 176 | qcom,dump-size = <0x9000>; |
| 177 | }; |
| 178 | }; |
| 179 | |
| 180 | CPU6: cpu@2 { |
| 181 | device_type = "cpu"; |
| 182 | compatible = "arm,cortex-a53"; |
| 183 | reg = <0x2>; |
| 184 | enable-method = "psci"; |
blong | 74c5cc2 | 2018-03-02 14:10:27 +0800 | [diff] [blame] | 185 | efficiency = <1024>; |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 186 | sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 187 | next-level-cache = <&L2_0>; |
Manaf Meethalavalappu Pallikunhi | aeb6bc7 | 2018-03-14 18:09:18 +0530 | [diff] [blame] | 188 | #cooling-cells = <2>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 189 | L1_I_2: l1-icache { |
| 190 | compatible = "arm,arch-cache"; |
| 191 | qcom,dump-size = <0x8800>; |
| 192 | }; |
| 193 | L1_D_2: l1-dcache { |
| 194 | compatible = "arm,arch-cache"; |
| 195 | qcom,dump-size = <0x9000>; |
| 196 | }; |
| 197 | }; |
| 198 | |
| 199 | CPU7: cpu@3 { |
| 200 | device_type = "cpu"; |
| 201 | compatible = "arm,cortex-a53"; |
| 202 | reg = <0x3>; |
| 203 | enable-method = "psci"; |
blong | 74c5cc2 | 2018-03-02 14:10:27 +0800 | [diff] [blame] | 204 | efficiency = <1024>; |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 205 | sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 206 | next-level-cache = <&L2_0>; |
Manaf Meethalavalappu Pallikunhi | aeb6bc7 | 2018-03-14 18:09:18 +0530 | [diff] [blame] | 207 | #cooling-cells = <2>; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 208 | L1_I_3: l1-icache { |
| 209 | compatible = "arm,arch-cache"; |
| 210 | qcom,dump-size = <0x8800>; |
| 211 | }; |
| 212 | L1_D_3: l1-dcache { |
| 213 | compatible = "arm,arch-cache"; |
| 214 | qcom,dump-size = <0x9000>; |
| 215 | }; |
| 216 | }; |
| 217 | }; |
blong | 74c5cc2 | 2018-03-02 14:10:27 +0800 | [diff] [blame] | 218 | |
| 219 | energy_costs: energy-costs { |
| 220 | compatible = "sched-energy"; |
| 221 | |
| 222 | CPU_COST_0: core-cost0 { |
| 223 | busy-cost-data = < |
| 224 | 700000 623 |
| 225 | 1000000 917 |
| 226 | 1100000 1106 |
| 227 | 1250000 1432 |
| 228 | 1400000 1740 |
| 229 | >; |
| 230 | idle-cost-data = < |
| 231 | 100 80 60 40 |
| 232 | >; |
| 233 | }; |
| 234 | CPU_COST_1: core-cost1 { |
| 235 | busy-cost-data = < |
| 236 | 500000 70 |
| 237 | 800000 114 |
| 238 | 900000 141 |
| 239 | 1000000 178 |
| 240 | 1100000 213 |
| 241 | >; |
| 242 | idle-cost-data = < |
| 243 | 40 20 10 8 |
| 244 | >; |
| 245 | }; |
| 246 | CLUSTER_COST_0: cluster-cost0 { |
| 247 | busy-cost-data = < |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 248 | 700000 85 |
| 249 | 1000000 126 |
| 250 | 1100000 152 |
| 251 | 1250000 197 |
| 252 | 1400000 239 |
blong | 74c5cc2 | 2018-03-02 14:10:27 +0800 | [diff] [blame] | 253 | >; |
| 254 | idle-cost-data = < |
| 255 | 4 3 2 1 |
| 256 | >; |
| 257 | }; |
| 258 | CLUSTER_COST_1: cluster-cost1 { |
| 259 | busy-cost-data = < |
Lingutla Chandrasekhar | d800547 | 2018-03-19 18:07:29 +0530 | [diff] [blame] | 260 | 500000 19 |
| 261 | 800000 29 |
| 262 | 900000 36 |
| 263 | 1000000 46 |
| 264 | 1100000 55 |
blong | 74c5cc2 | 2018-03-02 14:10:27 +0800 | [diff] [blame] | 265 | >; |
| 266 | idle-cost-data = < |
| 267 | 4 3 2 1 |
| 268 | >; |
| 269 | }; |
| 270 | }; |
Jingbiao Lu | cff0037 | 2018-02-01 15:18:17 +0800 | [diff] [blame] | 271 | }; |
Jingbiao Lu | def5c9a | 2018-03-13 15:54:29 +0800 | [diff] [blame] | 272 | |
| 273 | &soc { |
| 274 | cpuss_dump { |
| 275 | compatible = "qcom,cpuss-dump"; |
| 276 | qcom,l2_dump0 { |
| 277 | /* L2 cache dump for A53 cluster */ |
| 278 | qcom,dump-node = <&L2_0>; |
| 279 | qcom,dump-id = <0xC0>; |
| 280 | }; |
| 281 | qcom,l2_dump1 { |
| 282 | /* L2 cache dump for A53 cluster */ |
| 283 | qcom,dump-node = <&L2_1>; |
| 284 | qcom,dump-id = <0xC1>; |
| 285 | }; |
| 286 | qcom,l1_i_cache0 { |
| 287 | qcom,dump-node = <&L1_I_0>; |
| 288 | qcom,dump-id = <0x60>; |
| 289 | }; |
| 290 | qcom,l1_i_cache1 { |
| 291 | qcom,dump-node = <&L1_I_1>; |
| 292 | qcom,dump-id = <0x61>; |
| 293 | }; |
| 294 | qcom,l1_i_cache2 { |
| 295 | qcom,dump-node = <&L1_I_2>; |
| 296 | qcom,dump-id = <0x62>; |
| 297 | }; |
| 298 | qcom,l1_i_cache3 { |
| 299 | qcom,dump-node = <&L1_I_3>; |
| 300 | qcom,dump-id = <0x63>; |
| 301 | }; |
| 302 | qcom,l1_i_cache100 { |
| 303 | qcom,dump-node = <&L1_I_100>; |
| 304 | qcom,dump-id = <0x64>; |
| 305 | }; |
| 306 | qcom,l1_i_cache101 { |
| 307 | qcom,dump-node = <&L1_I_101>; |
| 308 | qcom,dump-id = <0x65>; |
| 309 | }; |
| 310 | qcom,l1_i_cache102 { |
| 311 | qcom,dump-node = <&L1_I_102>; |
| 312 | qcom,dump-id = <0x66>; |
| 313 | }; |
| 314 | qcom,l1_i_cache103 { |
| 315 | qcom,dump-node = <&L1_I_103>; |
| 316 | qcom,dump-id = <0x67>; |
| 317 | }; |
| 318 | qcom,l1_d_cache0 { |
| 319 | qcom,dump-node = <&L1_D_0>; |
| 320 | qcom,dump-id = <0x80>; |
| 321 | }; |
| 322 | qcom,l1_d_cache1 { |
| 323 | qcom,dump-node = <&L1_D_1>; |
| 324 | qcom,dump-id = <0x81>; |
| 325 | }; |
| 326 | qcom,l1_d_cache2 { |
| 327 | qcom,dump-node = <&L1_D_2>; |
| 328 | qcom,dump-id = <0x82>; |
| 329 | }; |
| 330 | qcom,l1_d_cache3 { |
| 331 | qcom,dump-node = <&L1_D_3>; |
| 332 | qcom,dump-id = <0x83>; |
| 333 | }; |
| 334 | qcom,l1_d_cache100 { |
| 335 | qcom,dump-node = <&L1_D_100>; |
| 336 | qcom,dump-id = <0x84>; |
| 337 | }; |
| 338 | qcom,l1_d_cache101 { |
| 339 | qcom,dump-node = <&L1_D_101>; |
| 340 | qcom,dump-id = <0x85>; |
| 341 | }; |
| 342 | qcom,l1_d_cache102 { |
| 343 | qcom,dump-node = <&L1_D_102>; |
| 344 | qcom,dump-id = <0x86>; |
| 345 | }; |
| 346 | qcom,l1_d_cache103 { |
| 347 | qcom,dump-node = <&L1_D_103>; |
| 348 | qcom,dump-id = <0x87>; |
| 349 | }; |
| 350 | }; |
| 351 | }; |