Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (c) 2018, The Linux Foundation. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #include "skeleton64.dtsi" |
Deepak Katragadda | 5bbf814 | 2018-06-20 16:12:13 -0700 | [diff] [blame] | 7 | |
| 8 | #include <dt-bindings/clock/qcom,aop-qmp.h> |
| 9 | #include <dt-bindings/clock/qcom,camcc-kona.h> |
| 10 | #include <dt-bindings/clock/qcom,cpucc-kona.h> |
| 11 | #include <dt-bindings/clock/qcom,dispcc-kona.h> |
| 12 | #include <dt-bindings/clock/qcom,gcc-kona.h> |
| 13 | #include <dt-bindings/clock/qcom,gpucc-kona.h> |
| 14 | #include <dt-bindings/clock/qcom,npucc-kona.h> |
| 15 | #include <dt-bindings/clock/qcom,rpmh.h> |
| 16 | #include <dt-bindings/clock/qcom,videocc-kona.h> |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 17 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
Raghavendra Rao Ananta | 0295796 | 2018-08-06 15:28:34 -0700 | [diff] [blame] | 18 | #include <dt-bindings/soc/qcom,ipcc.h> |
Lina Iyer | ea91c72 | 2018-06-20 14:58:05 -0600 | [diff] [blame] | 19 | #include <dt-bindings/soc/qcom,rpmh-rsc.h> |
Deepak Katragadda | 5bbf814 | 2018-06-20 16:12:13 -0700 | [diff] [blame] | 20 | |
David Collins | 54e4530 | 2018-06-29 18:46:53 -0700 | [diff] [blame] | 21 | #include "kona-regulators.dtsi" |
| 22 | |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 23 | / { |
| 24 | model = "Qualcomm Technologies, Inc. kona"; |
| 25 | compatible = "qcom,kona"; |
| 26 | qcom,msm-id = <356 0x10000>; |
| 27 | interrupt-parent = <&intc>; |
| 28 | |
Can Guo | b04bed5 | 2018-07-10 19:27:32 -0700 | [diff] [blame] | 29 | aliases { |
| 30 | ufshc1 = &ufshc_mem; /* Embedded UFS slot */ |
| 31 | }; |
| 32 | |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 33 | cpus { |
| 34 | #address-cells = <2>; |
| 35 | #size-cells = <0>; |
| 36 | |
| 37 | CPU0: cpu@0 { |
| 38 | device_type = "cpu"; |
| 39 | compatible = "qcom,kryo"; |
| 40 | reg = <0x0 0x0>; |
| 41 | enable-method = "spin-table"; |
| 42 | cache-size = <0x8000>; |
| 43 | cpu-release-addr = <0x0 0x90000000>; |
| 44 | next-level-cache = <&L2_0>; |
| 45 | L2_0: l2-cache { |
| 46 | compatible = "arm,arch-cache"; |
| 47 | cache-size = <0x20000>; |
| 48 | cache-level = <2>; |
| 49 | next-level-cache = <&L3_0>; |
| 50 | |
| 51 | L3_0: l3-cache { |
| 52 | compatible = "arm,arch-cache"; |
| 53 | cache-size = <0x400000>; |
| 54 | cache-level = <3>; |
| 55 | }; |
| 56 | }; |
| 57 | }; |
| 58 | |
| 59 | CPU1: cpu@100 { |
| 60 | device_type = "cpu"; |
| 61 | compatible = "qcom,kryo"; |
| 62 | reg = <0x0 0x100>; |
| 63 | enable-method = "spin-table"; |
| 64 | cache-size = <0x8000>; |
| 65 | cpu-release-addr = <0x0 0x90000000>; |
| 66 | next-level-cache = <&L2_1>; |
| 67 | L2_1: l2-cache { |
| 68 | compatible = "arm,arch-cache"; |
| 69 | cache-size = <0x20000>; |
| 70 | cache-level = <2>; |
| 71 | next-level-cache = <&L3_0>; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | CPU2: cpu@200 { |
| 76 | device_type = "cpu"; |
| 77 | compatible = "qcom,kryo"; |
| 78 | reg = <0x0 0x200>; |
| 79 | enable-method = "spin-table"; |
| 80 | cache-size = <0x8000>; |
| 81 | cpu-release-addr = <0x0 0x90000000>; |
| 82 | next-level-cache = <&L2_2>; |
| 83 | L2_2: l2-cache { |
| 84 | compatible = "arm,arch-cache"; |
| 85 | cache-size = <0x20000>; |
| 86 | cache-level = <2>; |
| 87 | next-level-cache = <&L3_0>; |
| 88 | }; |
| 89 | }; |
| 90 | |
| 91 | CPU3: cpu@300 { |
| 92 | device_type = "cpu"; |
| 93 | compatible = "qcom,kryo"; |
| 94 | reg = <0x0 0x300>; |
| 95 | enable-method = "spin-table"; |
| 96 | cache-size = <0x8000>; |
| 97 | cpu-release-addr = <0x0 0x90000000>; |
| 98 | next-level-cache = <&L2_3>; |
| 99 | L2_3: l2-cache { |
| 100 | compatible = "arm,arch-cache"; |
| 101 | cache-size = <0x20000>; |
| 102 | cache-level = <2>; |
| 103 | next-level-cache = <&L3_0>; |
| 104 | }; |
| 105 | }; |
| 106 | |
| 107 | CPU4: cpu@400 { |
| 108 | device_type = "cpu"; |
| 109 | compatible = "qcom,kryo"; |
| 110 | reg = <0x0 0x400>; |
| 111 | enable-method = "spin-table"; |
| 112 | cache-size = <0x10000>; |
| 113 | cpu-release-addr = <0x0 0x90000000>; |
| 114 | next-level-cache = <&L2_4>; |
| 115 | L2_4: l2-cache { |
| 116 | compatible = "arm,arch-cache"; |
| 117 | cache-size = <0x20000>; |
| 118 | cache-level = <2>; |
| 119 | next-level-cache = <&L3_0>; |
| 120 | }; |
| 121 | }; |
| 122 | |
| 123 | CPU5: cpu@500 { |
| 124 | device_type = "cpu"; |
| 125 | compatible = "qcom,kryo"; |
| 126 | reg = <0x0 0x500>; |
| 127 | enable-method = "spin-table"; |
| 128 | cache-size = <0x10000>; |
| 129 | cpu-release-addr = <0x0 0x90000000>; |
| 130 | next-level-cache = <&L2_5>; |
| 131 | L2_5: l2-cache { |
| 132 | compatible = "arm,arch-cache"; |
| 133 | cache-size = <0x20000>; |
| 134 | cache-level = <2>; |
| 135 | next-level-cache = <&L3_0>; |
| 136 | }; |
| 137 | }; |
| 138 | |
| 139 | CPU6: cpu@600 { |
| 140 | device_type = "cpu"; |
| 141 | compatible = "qcom,kryo"; |
| 142 | reg = <0x0 0x600>; |
| 143 | enable-method = "spin-table"; |
| 144 | cache-size = <0x10000>; |
| 145 | cpu-release-addr = <0x0 0x90000000>; |
| 146 | next-level-cache = <&L2_6>; |
| 147 | L2_6: l2-cache { |
| 148 | compatible = "arm,arch-cache"; |
| 149 | cache-size = <0x20000>; |
| 150 | cache-level = <2>; |
| 151 | next-level-cache = <&L3_0>; |
| 152 | }; |
| 153 | }; |
| 154 | |
| 155 | CPU7: cpu@700 { |
| 156 | device_type = "cpu"; |
| 157 | compatible = "qcom,kryo"; |
| 158 | reg = <0x0 0x700>; |
| 159 | enable-method = "spin-table"; |
| 160 | cache-size = <0x10000>; |
| 161 | cpu-release-addr = <0x0 0x90000000>; |
| 162 | next-level-cache = <&L2_7>; |
| 163 | L2_7: l2-cache { |
| 164 | compatible = "arm,arch-cache"; |
| 165 | cache-size = <0x80000>; |
| 166 | cache-level = <2>; |
| 167 | next-level-cache = <&L3_0>; |
| 168 | }; |
| 169 | }; |
| 170 | |
| 171 | cpu-map { |
| 172 | cluster0 { |
| 173 | core0 { |
| 174 | cpu = <&CPU0>; |
| 175 | }; |
| 176 | |
| 177 | core1 { |
| 178 | cpu = <&CPU1>; |
| 179 | }; |
| 180 | |
| 181 | core2 { |
| 182 | cpu = <&CPU2>; |
| 183 | }; |
| 184 | |
| 185 | core3 { |
| 186 | cpu = <&CPU3>; |
| 187 | }; |
| 188 | }; |
| 189 | |
| 190 | cluster1 { |
| 191 | core0 { |
| 192 | cpu = <&CPU4>; |
| 193 | }; |
| 194 | |
| 195 | core1 { |
| 196 | cpu = <&CPU5>; |
| 197 | }; |
| 198 | |
| 199 | core2 { |
| 200 | cpu = <&CPU6>; |
| 201 | }; |
| 202 | |
| 203 | core3 { |
| 204 | cpu = <&CPU7>; |
| 205 | }; |
| 206 | }; |
| 207 | }; |
| 208 | }; |
| 209 | |
Channagoud Kadabi | cdd72a0 | 2018-09-21 14:46:21 -0700 | [diff] [blame] | 210 | cpu_pmu: cpu-pmu { |
| 211 | compatible = "arm,armv8-pmuv3"; |
| 212 | qcom,irq-is-percpu; |
| 213 | interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; |
| 214 | }; |
| 215 | |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 216 | soc: soc { }; |
Swathi Sridhar | a79a954 | 2018-06-21 11:40:44 -0700 | [diff] [blame] | 217 | |
| 218 | reserved-memory { |
| 219 | #address-cells = <2>; |
| 220 | #size-cells = <2>; |
| 221 | ranges; |
| 222 | |
| 223 | hyp_mem: hyp_region@80000000 { |
| 224 | no-map; |
| 225 | reg = <0x0 0x80000000 0x0 0x600000>; |
| 226 | }; |
| 227 | |
| 228 | xbl_aop_mem: xbl_aop_region@80700000 { |
| 229 | no-map; |
| 230 | reg = <0x0 0x80700000 0x0 0x140000>; |
| 231 | }; |
| 232 | |
| 233 | smem_mem: smem_region@80900000 { |
| 234 | no-map; |
| 235 | reg = <0x0 0x80900000 0x0 0x200000>; |
| 236 | }; |
| 237 | |
| 238 | removed_mem: removed_region@80b00000 { |
| 239 | no-map; |
| 240 | reg = <0x0 0x80b00000 0x0 0xc00000>; |
| 241 | }; |
| 242 | |
| 243 | qtee_apps_mem: qtee_apps_region@81e00000 { |
| 244 | no-map; |
| 245 | reg = <0x0 0x81e00000 0x0 0x2600000>; |
| 246 | }; |
| 247 | |
Lina Iyer | 3229689 | 2018-06-20 17:03:44 -0600 | [diff] [blame] | 248 | cmd_db: reserved-memory@85fe0000 { |
| 249 | reg = <0x0 0x85fe0000 0x0 0x20000>; |
| 250 | compatible = "qcom,cmd-db"; |
| 251 | no-map; |
| 252 | }; |
| 253 | |
Swathi Sridhar | a79a954 | 2018-06-21 11:40:44 -0700 | [diff] [blame] | 254 | pil_camera_mem: pil_camera_region@86000000 { |
| 255 | no-map; |
| 256 | reg = <0x0 0x86000000 0x0 0x500000>; |
| 257 | }; |
| 258 | |
| 259 | pil_wlan_fw_mem: pil_wlan_fw_region@86500000 { |
| 260 | no-map; |
| 261 | reg = <0x0 0x86500000 0x0 0x100000>; |
| 262 | }; |
| 263 | |
| 264 | pil_ipa_fw_mem: pil_ipa_fw_region@86600000 { |
| 265 | no-map; |
| 266 | reg = <0x0 0x86600000 0x0 0x10000>; |
| 267 | }; |
| 268 | |
| 269 | pil_ipa_gsi_mem: pil_ipa_gsi_region@86610000 { |
| 270 | no-map; |
| 271 | reg = <0x0 0x86610000 0x0 0x5000>; |
| 272 | }; |
| 273 | |
| 274 | pil_gpu_mem: pil_gpu_region@86615000 { |
| 275 | no-map; |
| 276 | reg = <0x0 0x86615000 0x0 0x2000>; |
| 277 | }; |
| 278 | |
| 279 | pil_npu_mem: pil_npu_region@86680000 { |
| 280 | no-map; |
| 281 | reg = <0x0 0x86680000 0x0 0x80000>; |
| 282 | }; |
| 283 | |
| 284 | pil_video_mem: pil_video_region@86700000 { |
| 285 | no-map; |
| 286 | reg = <0x0 0x86700000 0x0 0x500000>; |
| 287 | }; |
| 288 | |
| 289 | pil_cvp_mem: pil_cvp_region@86c00000 { |
| 290 | no-map; |
| 291 | reg = <0x0 0x86c00000 0x0 0x500000>; |
| 292 | }; |
| 293 | |
| 294 | pil_cdsp_mem: pil_cdsp_region@87100000 { |
| 295 | no-map; |
| 296 | reg = <0x0 0x87100000 0x0 0x800000>; |
| 297 | }; |
| 298 | |
| 299 | pil_slpi_mem: pil_slpi_region@87900000 { |
| 300 | no-map; |
| 301 | reg = <0x0 0x87900000 0x0 0x1400000>; |
| 302 | }; |
| 303 | |
| 304 | pil_adsp_mem: pil_adsp_region@88d00000 { |
| 305 | no-map; |
| 306 | reg = <0x0 0x88d00000 0x0 0x1a00000>; |
| 307 | }; |
| 308 | |
| 309 | pil_spss_mem: pil_spss_region@8a700000 { |
| 310 | no-map; |
| 311 | reg = <0x0 0x8a700000 0x0 0x100000>; |
| 312 | }; |
| 313 | |
| 314 | /* global autoconfigured region for contiguous allocations */ |
| 315 | linux,cma { |
| 316 | compatible = "shared-dma-pool"; |
| 317 | alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; |
| 318 | reusable; |
| 319 | alignment = <0x0 0x400000>; |
| 320 | size = <0x0 0x2000000>; |
| 321 | linux,cma-default; |
| 322 | }; |
| 323 | }; |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 324 | }; |
| 325 | |
| 326 | &soc { |
| 327 | #address-cells = <1>; |
| 328 | #size-cells = <1>; |
| 329 | ranges = <0 0 0 0xffffffff>; |
| 330 | compatible = "simple-bus"; |
| 331 | |
| 332 | intc: interrupt-controller@17a00000 { |
| 333 | compatible = "arm,gic-v3"; |
| 334 | #interrupt-cells = <3>; |
| 335 | interrupt-controller; |
| 336 | #redistributor-regions = <1>; |
| 337 | redistributor-stride = <0x0 0x20000>; |
| 338 | reg = <0x17a00000 0x10000>, /* GICD */ |
| 339 | <0x17a60000 0x100000>; /* GICR * 8 */ |
| 340 | interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; |
| 341 | }; |
| 342 | |
Rishabh Bhatnagar | fd73eb1 | 2018-09-04 15:00:46 -0700 | [diff] [blame] | 343 | qcom,chd_silver { |
| 344 | compatible = "qcom,core-hang-detect"; |
| 345 | label = "silver"; |
| 346 | qcom,threshold-arr = <0x18000058 0x18010058 |
| 347 | 0x18020058 0x18030058>; |
| 348 | qcom,config-arr = <0x18000060 0x18010060 |
| 349 | 0x18020060 0x18030060>; |
| 350 | }; |
| 351 | |
| 352 | qcom,chd_gold { |
| 353 | compatible = "qcom,core-hang-detect"; |
| 354 | label = "gold"; |
| 355 | qcom,threshold-arr = <0x18040058 0x18050058 |
| 356 | 0x18060058 0x18070058>; |
| 357 | qcom,config-arr = <0x18040060 0x18050060 |
| 358 | 0x18060060 0x18070060>; |
| 359 | }; |
| 360 | |
Rishabh Bhatnagar | 8f0dd4b | 2018-08-07 11:07:40 -0700 | [diff] [blame] | 361 | cache-controller@9200000 { |
| 362 | compatible = "qcom,kona-llcc"; |
| 363 | reg = <0x9200000 0x1d0000> , <0x9600000 0x50000>; |
| 364 | reg-names = "llcc_base", "llcc_broadcast_base"; |
| 365 | }; |
| 366 | |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 367 | timer { |
| 368 | compatible = "arm,armv8-timer"; |
| 369 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, |
| 370 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, |
| 371 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, |
| 372 | <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>; |
| 373 | clock-frequency = <19200000>; |
| 374 | }; |
| 375 | |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 376 | timer@0x17c20000{ |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 377 | #address-cells = <1>; |
| 378 | #size-cells = <1>; |
| 379 | ranges; |
| 380 | compatible = "arm,armv7-timer-mem"; |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 381 | reg = <0x17c20000 0x1000>; |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 382 | clock-frequency = <19200000>; |
| 383 | |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 384 | frame@0x17c21000 { |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 385 | frame-number = <0>; |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 386 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 387 | <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 388 | reg = <0x17c21000 0x1000>, |
| 389 | <0x17c22000 0x1000>; |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 390 | }; |
| 391 | |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 392 | frame@17c23000 { |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 393 | frame-number = <1>; |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 394 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; |
| 395 | reg = <0x17c23000 0x1000>; |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 396 | status = "disabled"; |
| 397 | }; |
| 398 | |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 399 | frame@17c25000 { |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 400 | frame-number = <2>; |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 401 | interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; |
| 402 | reg = <0x17c25000 0x1000>; |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 403 | status = "disabled"; |
| 404 | }; |
| 405 | |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 406 | frame@17c27000 { |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 407 | frame-number = <3>; |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 408 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; |
| 409 | reg = <0x17c27000 0x1000>; |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 410 | status = "disabled"; |
| 411 | }; |
| 412 | |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 413 | frame@17c29000 { |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 414 | frame-number = <4>; |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 415 | interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; |
| 416 | reg = <0x17c29000 0x1000>; |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 417 | status = "disabled"; |
| 418 | }; |
| 419 | |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 420 | frame@17c2b0000 { |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 421 | frame-number = <5>; |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 422 | interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; |
| 423 | reg = <0x17c2b000 0x1000>; |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 424 | status = "disabled"; |
| 425 | }; |
| 426 | |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 427 | frame@17c2d000 { |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 428 | frame-number = <6>; |
Rishabh Bhatnagar | 5c1c176 | 2018-05-29 17:04:46 -0700 | [diff] [blame] | 429 | interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; |
| 430 | reg = <0x17c2d000 0x1000>; |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 431 | status = "disabled"; |
| 432 | }; |
| 433 | }; |
Deepak Katragadda | 5bbf814 | 2018-06-20 16:12:13 -0700 | [diff] [blame] | 434 | |
Rishabh Bhatnagar | 2b6a59c | 2018-09-06 11:06:16 -0700 | [diff] [blame] | 435 | qcom,msm-imem@146bf000 { |
| 436 | compatible = "qcom,msm-imem"; |
| 437 | reg = <0x146bf000 0x1000>; |
| 438 | ranges = <0x0 0x146bf000 0x1000>; |
| 439 | #address-cells = <1>; |
| 440 | #size-cells = <1>; |
| 441 | |
| 442 | restart_reason@65c { |
| 443 | compatible = "qcom,msm-imem-restart_reason"; |
| 444 | reg = <0x65c 4>; |
| 445 | }; |
| 446 | |
| 447 | dload_type@1c { |
| 448 | compatible = "qcom,msm-imem-dload-type"; |
| 449 | reg = <0x1c 0x4>; |
| 450 | }; |
| 451 | |
| 452 | boot_stats@6b0 { |
| 453 | compatible = "qcom,msm-imem-boot_stats"; |
| 454 | reg = <0x6b0 32>; |
| 455 | }; |
| 456 | |
| 457 | kaslr_offset@6d0 { |
| 458 | compatible = "qcom,msm-imem-kaslr_offset"; |
| 459 | reg = <0x6d0 12>; |
| 460 | }; |
| 461 | |
| 462 | pil@94c { |
| 463 | compatible = "qcom,msm-imem-pil"; |
| 464 | reg = <0x94c 200>; |
| 465 | }; |
| 466 | }; |
| 467 | |
Rishabh Bhatnagar | 19ddb35e | 2018-09-18 15:53:03 -0700 | [diff] [blame] | 468 | mdm0: qcom,mdm0 { |
| 469 | compatible = "qcom,ext-sdx50m"; |
| 470 | cell-index = <0>; |
| 471 | #address-cells = <0>; |
| 472 | interrupt-parent = <&mdm0>; |
| 473 | #interrupt-cells = <1>; |
| 474 | interrupt-map-mask = <0xffffffff>; |
| 475 | interrupt-names = |
| 476 | "err_fatal_irq", |
| 477 | "status_irq", |
| 478 | "mdm2ap_vddmin_irq"; |
| 479 | /* modem attributes */ |
| 480 | qcom,ramdump-delay-ms = <3000>; |
| 481 | qcom,ramdump-timeout-ms = <120000>; |
| 482 | qcom,vddmin-modes = "normal"; |
| 483 | qcom,vddmin-drive-strength = <8>; |
| 484 | qcom,sfr-query; |
| 485 | qcom,sysmon-id = <20>; |
| 486 | qcom,ssctl-instance-id = <0x10>; |
| 487 | qcom,support-shutdown; |
| 488 | qcom,pil-force-shutdown; |
| 489 | qcom,esoc-skip-restart-for-mdm-crash; |
| 490 | pinctrl-names = "default", "mdm_active", "mdm_suspend"; |
| 491 | pinctrl-0 = <&ap2mdm_pon_reset_default>; |
| 492 | pinctrl-1 = <&ap2mdm_active &mdm2ap_active>; |
| 493 | pinctrl-2 = <&ap2mdm_sleep &mdm2ap_sleep>; |
| 494 | interrupt-map = <0 &tlmm 1 0x3 |
| 495 | 1 &tlmm 3 0x3>; |
| 496 | qcom,mdm2ap-errfatal-gpio = <&tlmm 1 0x00>; |
| 497 | qcom,ap2mdm-errfatal-gpio = <&tlmm 57 0x00>; |
| 498 | qcom,mdm2ap-status-gpio = <&tlmm 3 0x00>; |
| 499 | qcom,ap2mdm-status-gpio = <&tlmm 56 0x00>; |
| 500 | qcom,ap2mdm-soft-reset-gpio = <&tlmm 145 0x00>; |
| 501 | qcom,mdm-link-info = "0306_02.01.00"; |
| 502 | status = "ok"; |
| 503 | }; |
| 504 | |
Lina Iyer | 8551c79 | 2018-06-21 16:06:53 -0600 | [diff] [blame] | 505 | pdc: interrupt-controller@b220000 { |
| 506 | compatible = "qcom,kona-pdc"; |
| 507 | reg = <0xb220000 0x30000>; |
| 508 | qcom,pdc-ranges = <0 480 29>, <42 522 52>, <94 609 30>; |
| 509 | #interrupt-cells = <2>; |
| 510 | interrupt-parent = <&intc>; |
| 511 | interrupt-controller; |
| 512 | }; |
| 513 | |
David Collins | a6d833b | 2018-09-25 14:44:32 -0700 | [diff] [blame^] | 514 | clock_xo: bi_tcxo { |
| 515 | compatible = "fixed-clock"; |
| 516 | #clock-cells = <0>; |
| 517 | clock-frequency = <19200000>; |
| 518 | clock-output-names = "bi_tcxo"; |
| 519 | }; |
| 520 | |
Deepak Katragadda | 5bbf814 | 2018-06-20 16:12:13 -0700 | [diff] [blame] | 521 | clock_rpmh: qcom,rpmhclk { |
| 522 | compatible = "qcom,dummycc"; |
| 523 | clock-output-names = "rpmh_clocks"; |
| 524 | #clock-cells = <1>; |
| 525 | }; |
| 526 | |
| 527 | clock_aop: qcom,aopclk { |
| 528 | compatible = "qcom,dummycc"; |
| 529 | clock-output-names = "qdss_clocks"; |
| 530 | #clock-cells = <1>; |
| 531 | }; |
| 532 | |
| 533 | clock_gcc: qcom,gcc { |
| 534 | compatible = "qcom,dummycc"; |
| 535 | clock-output-names = "gcc_clocks"; |
| 536 | #clock-cells = <1>; |
| 537 | #reset-cells = <1>; |
| 538 | }; |
| 539 | |
| 540 | clock_npucc: qcom,npucc { |
| 541 | compatible = "qcom,dummycc"; |
| 542 | clock-output-names = "npucc_clocks"; |
| 543 | #clock-cells = <1>; |
| 544 | #reset-cells = <1>; |
| 545 | }; |
| 546 | |
| 547 | clock_videocc: qcom,videocc { |
| 548 | compatible = "qcom,dummycc"; |
| 549 | clock-output-names = "videocc_clocks"; |
| 550 | #clock-cells = <1>; |
| 551 | #reset-cells = <1>; |
| 552 | }; |
| 553 | |
| 554 | clock_camcc: qcom,camcc { |
| 555 | compatible = "qcom,dummycc"; |
| 556 | clock-output-names = "camcc_clocks"; |
| 557 | #clock-cells = <1>; |
| 558 | #reset-cells = <1>; |
| 559 | }; |
| 560 | |
| 561 | clock_dispcc: qcom,dispcc { |
| 562 | compatible = "qcom,dummycc"; |
| 563 | clock-output-names = "dispcc_clocks"; |
| 564 | #clock-cells = <1>; |
| 565 | #reset-cells = <1>; |
| 566 | }; |
| 567 | |
| 568 | clock_gpucc: qcom,gpucc { |
| 569 | compatible = "qcom,dummycc"; |
| 570 | clock-output-names = "gpucc_clocks"; |
| 571 | #clock-cells = <1>; |
| 572 | #reset-cells = <1>; |
| 573 | }; |
| 574 | |
| 575 | clock_cpucc: qcom,cpucc { |
| 576 | compatible = "qcom,dummycc"; |
| 577 | clock-output-names = "cpucc_clocks"; |
| 578 | #clock-cells = <1>; |
| 579 | }; |
Raghavendra Rao Ananta | 0295796 | 2018-08-06 15:28:34 -0700 | [diff] [blame] | 580 | |
Can Guo | b04bed5 | 2018-07-10 19:27:32 -0700 | [diff] [blame] | 581 | ufsphy_mem: ufsphy_mem@1d87000 { |
| 582 | reg = <0x1d87000 0xe00>; /* PHY regs */ |
| 583 | reg-names = "phy_mem"; |
| 584 | #phy-cells = <0>; |
| 585 | |
| 586 | lanes-per-direction = <2>; |
| 587 | |
| 588 | clock-names = "ref_clk_src", |
| 589 | "ref_clk", |
| 590 | "ref_aux_clk"; |
| 591 | clocks = <&clock_rpmh RPMH_CXO_CLK>, |
| 592 | <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>, |
| 593 | <&clock_gcc GCC_UFS_PHY_PHY_AUX_CLK>; |
| 594 | |
| 595 | status = "disabled"; |
| 596 | }; |
| 597 | |
| 598 | ufshc_mem: ufshc@1d84000 { |
| 599 | compatible = "qcom,ufshc"; |
| 600 | reg = <0x1d84000 0x3000>; |
| 601 | interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; |
| 602 | phys = <&ufsphy_mem>; |
| 603 | phy-names = "ufsphy"; |
| 604 | |
| 605 | lanes-per-direction = <2>; |
| 606 | dev-ref-clk-freq = <0>; /* 19.2 MHz */ |
| 607 | |
| 608 | clock-names = |
| 609 | "core_clk", |
| 610 | "bus_aggr_clk", |
| 611 | "iface_clk", |
| 612 | "core_clk_unipro", |
| 613 | "core_clk_ice", |
| 614 | "ref_clk", |
| 615 | "tx_lane0_sync_clk", |
| 616 | "rx_lane0_sync_clk", |
| 617 | "rx_lane1_sync_clk"; |
| 618 | clocks = |
| 619 | <&clock_gcc GCC_UFS_PHY_AXI_CLK>, |
| 620 | <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, |
| 621 | <&clock_gcc GCC_UFS_PHY_AHB_CLK>, |
| 622 | <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>, |
| 623 | <&clock_gcc GCC_UFS_PHY_ICE_CORE_CLK>, |
| 624 | <&clock_rpmh RPMH_CXO_CLK>, |
| 625 | <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, |
| 626 | <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, |
| 627 | <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; |
| 628 | freq-table-hz = |
| 629 | <37500000 300000000>, |
| 630 | <0 0>, |
| 631 | <0 0>, |
| 632 | <37500000 300000000>, |
| 633 | <75000000 300000000>, |
| 634 | <0 0>, |
| 635 | <0 0>, |
| 636 | <0 0>, |
| 637 | <0 0>; |
| 638 | |
| 639 | qcom,msm-bus,name = "ufshc_mem"; |
| 640 | qcom,msm-bus,num-cases = <22>; |
| 641 | qcom,msm-bus,num-paths = <2>; |
| 642 | qcom,msm-bus,vectors-KBps = |
| 643 | /* |
| 644 | * During HS G3 UFS runs at nominal voltage corner, vote |
| 645 | * higher bandwidth to push other buses in the data path |
| 646 | * to run at nominal to achieve max throughput. |
| 647 | * 4GBps pushes BIMC to run at nominal. |
| 648 | * 200MBps pushes CNOC to run at nominal. |
| 649 | * Vote for half of this bandwidth for HS G3 1-lane. |
| 650 | * For max bandwidth, vote high enough to push the buses |
| 651 | * to run in turbo voltage corner. |
| 652 | */ |
| 653 | <123 512 0 0>, <1 757 0 0>, /* No vote */ |
| 654 | <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */ |
| 655 | <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */ |
| 656 | <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */ |
| 657 | <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */ |
| 658 | <123 512 1844 0>, <1 757 1000 0>, /* PWM G1 L2 */ |
| 659 | <123 512 3688 0>, <1 757 1000 0>, /* PWM G2 L2 */ |
| 660 | <123 512 7376 0>, <1 757 1000 0>, /* PWM G3 L2 */ |
| 661 | <123 512 14752 0>, <1 757 1000 0>, /* PWM G4 L2 */ |
| 662 | <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */ |
| 663 | <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */ |
| 664 | <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */ |
| 665 | <123 512 255591 0>, <1 757 1000 0>, /* HS G1 RA L2 */ |
| 666 | <123 512 511181 0>, <1 757 1000 0>, /* HS G2 RA L2 */ |
| 667 | <123 512 4194304 0>, <1 757 204800 0>, /* HS G3 RA L2 */ |
| 668 | <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */ |
| 669 | <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */ |
| 670 | <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */ |
| 671 | <123 512 298189 0>, <1 757 1000 0>, /* HS G1 RB L2 */ |
| 672 | <123 512 596378 0>, <1 757 1000 0>, /* HS G2 RB L2 */ |
| 673 | /* As UFS working in HS G3 RB L2 mode, aggregated |
| 674 | * bandwidth (AB) should take care of providing |
| 675 | * optimum throughput requested. However, as tested, |
| 676 | * in order to scale up CNOC clock, instantaneous |
| 677 | * bindwidth (IB) needs to be given a proper value too. |
| 678 | */ |
| 679 | <123 512 4194304 0>, <1 757 204800 409600>, /* HS G3 RB L2 */ |
| 680 | <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */ |
| 681 | |
| 682 | qcom,bus-vector-names = "MIN", |
| 683 | "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1", |
| 684 | "PWM_G1_L2", "PWM_G2_L2", "PWM_G3_L2", "PWM_G4_L2", |
| 685 | "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1", |
| 686 | "HS_RA_G1_L2", "HS_RA_G2_L2", "HS_RA_G3_L2", |
| 687 | "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1", |
| 688 | "HS_RB_G1_L2", "HS_RB_G2_L2", "HS_RB_G3_L2", |
| 689 | "MAX"; |
| 690 | |
| 691 | /* PM QoS */ |
| 692 | qcom,pm-qos-cpu-groups = <0x0f 0xf0>; |
| 693 | qcom,pm-qos-cpu-group-latency-us = <44 44>; |
| 694 | qcom,pm-qos-default-cpu = <0>; |
| 695 | |
| 696 | pinctrl-names = "dev-reset-assert", "dev-reset-deassert"; |
| 697 | pinctrl-0 = <&ufs_dev_reset_assert>; |
| 698 | pinctrl-1 = <&ufs_dev_reset_deassert>; |
| 699 | |
| 700 | resets = <&clock_gcc GCC_UFS_PHY_BCR>; |
| 701 | reset-names = "core_reset"; |
| 702 | |
| 703 | status = "disabled"; |
| 704 | }; |
| 705 | |
Raghavendra Rao Ananta | 0295796 | 2018-08-06 15:28:34 -0700 | [diff] [blame] | 706 | ipcc_mproc: qcom,ipcc@408000 { |
| 707 | compatible = "qcom,kona-ipcc"; |
| 708 | reg = <0x408000 0x1000>; |
| 709 | interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>; |
| 710 | interrupt-controller; |
| 711 | #interrupt-cells = <3>; |
| 712 | #mbox-cells = <2>; |
| 713 | }; |
Lina Iyer | ea91c72 | 2018-06-20 14:58:05 -0600 | [diff] [blame] | 714 | |
Raghavendra Rao Ananta | 5da54b3 | 2018-08-09 10:04:50 -0700 | [diff] [blame] | 715 | ipcc_self_ping: ipcc-self-ping { |
| 716 | compatible = "qcom,ipcc-self-ping"; |
| 717 | interrupts-extended = <&ipcc_mproc IPCC_CLIENT_APSS |
| 718 | IPCC_MPROC_SIGNAL_SMP2P IRQ_TYPE_LEVEL_HIGH>; |
| 719 | mboxes = <&ipcc_mproc IPCC_CLIENT_APSS IPCC_MPROC_SIGNAL_SMP2P>; |
| 720 | }; |
| 721 | |
Lina Iyer | ea91c72 | 2018-06-20 14:58:05 -0600 | [diff] [blame] | 722 | apps_rsc: rsc@0x18200000 { |
| 723 | label = "apps_rsc"; |
| 724 | compatible = "qcom,rpmh-rsc"; |
| 725 | reg = <0x18200000 0x10000>, |
| 726 | <0x18210000 0x10000>, |
| 727 | <0x18220000 0x10000>; |
| 728 | reg-names = "drv-0", "drv-1", "drv-2"; |
| 729 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>, |
| 730 | <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, |
| 731 | <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; |
| 732 | qcom,tcs-offset = <0xd00>; |
| 733 | qcom,drv-id = <2>; |
| 734 | qcom,tcs-config = <ACTIVE_TCS 2>, |
| 735 | <SLEEP_TCS 3>, |
| 736 | <WAKE_TCS 3>, |
| 737 | <CONTROL_TCS 1>; |
| 738 | status = "disabled"; |
| 739 | }; |
| 740 | |
| 741 | disp_rsc: rsc@af20000 { |
| 742 | label = "disp_rsc"; |
| 743 | compatible = "qcom,rpmh-rsc"; |
| 744 | reg = <0xaf20000 0x10000>; |
| 745 | reg-names = "drv-0"; |
| 746 | interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>; |
| 747 | qcom,tcs-offset = <0x1c00>; |
| 748 | qcom,drv-id = <0>; |
| 749 | qcom,tcs-config = <ACTIVE_TCS 0>, |
| 750 | <SLEEP_TCS 1>, |
| 751 | <WAKE_TCS 1>, |
| 752 | <CONTROL_TCS 0>; |
| 753 | status = "disabled"; |
| 754 | }; |
Runmin Wang | 4f5985b | 2017-04-19 15:55:12 -0700 | [diff] [blame] | 755 | }; |
Swathi Sridhar | 4008eb4 | 2018-07-17 15:34:46 -0700 | [diff] [blame] | 756 | |
Swathi Sridhar | bbbc80b | 2018-07-13 10:02:08 -0700 | [diff] [blame] | 757 | #include "kona-ion.dtsi" |
Swathi Sridhar | 4008eb4 | 2018-07-17 15:34:46 -0700 | [diff] [blame] | 758 | #include "msm-arm-smmu-kona.dtsi" |
Rishabh Bhatnagar | a740b0e | 2018-07-20 15:08:35 -0700 | [diff] [blame] | 759 | #include "kona-pinctrl.dtsi" |