1# SPDX-License-Identifier: GPL-2.0 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/arm/cpus.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: ARM CPUs 8 9maintainers: 10 - Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> 11 12description: |+ 13 The device tree allows to describe the layout of CPUs in a system through the 14 "cpus" node, which in turn contains a number of subnodes (ie "cpu") defining 15 properties for every cpu. 16 17 Bindings for CPU nodes follow the Devicetree Specification, available from: 18 19 https://www.devicetree.org/specifications/ 20 21 with updates for 32-bit and 64-bit ARM systems provided in this document. 22 23 ================================ 24 Convention used in this document 25 ================================ 26 27 This document follows the conventions described in the Devicetree 28 Specification, with the addition: 29 30 - square brackets define bitfields, eg reg[7:0] value of the bitfield in 31 the reg property contained in bits 7 down to 0 32 33 ===================================== 34 cpus and cpu node bindings definition 35 ===================================== 36 37 The ARM architecture, in accordance with the Devicetree Specification, 38 requires the cpus and cpu nodes to be present and contain the properties 39 described below. 40 41properties: 42 reg: 43 maxItems: 1 44 description: > 45 Usage and definition depend on ARM architecture version and configuration: 46 47 On uniprocessor ARM architectures previous to v7 this property is required 48 and must be set to 0. 49 50 On ARM 11 MPcore based systems this property is required and matches the 51 CPUID[11:0] register bits. 52 53 Bits [11:0] in the reg cell must be set to bits [11:0] in CPU ID register. 54 55 All other bits in the reg cell must be set to 0. 56 57 On 32-bit ARM v7 or later systems this property is required and matches 58 the CPU MPIDR[23:0] register bits. 59 60 Bits [23:0] in the reg cell must be set to bits [23:0] in MPIDR. 61 62 All other bits in the reg cell must be set to 0. 63 64 On ARM v8 64-bit systems this property is required and matches the 65 MPIDR_EL1 register affinity bits. 66 67 * If cpus node's #address-cells property is set to 2 68 69 The first reg cell bits [7:0] must be set to bits [39:32] of 70 MPIDR_EL1. 71 72 The second reg cell bits [23:0] must be set to bits [23:0] of 73 MPIDR_EL1. 74 75 * If cpus node's #address-cells property is set to 1 76 77 The reg cell bits [23:0] must be set to bits [23:0] of MPIDR_EL1. 78 79 All other bits in the reg cells must be set to 0. 80 81 compatible: 82 oneOf: 83 - enum: 84 - apm,potenza 85 - apm,strega 86 - apple,avalanche 87 - apple,blizzard 88 - apple,cyclone 89 - apple,donan-e 90 - apple,donan-p 91 - apple,everest 92 - apple,firestorm 93 - apple,hurricane-zephyr 94 - apple,icestorm 95 - apple,mistral 96 - apple,monsoon 97 - apple,sawtooth 98 - apple,tahiti-e 99 - apple,tahiti-p 100 - apple,twister 101 - apple,typhoon 102 - arm,arm710t 103 - arm,arm720t 104 - arm,arm740t 105 - arm,arm7ej-s 106 - arm,arm7tdmi 107 - arm,arm7tdmi-s 108 - arm,arm9es 109 - arm,arm9ej-s 110 - arm,arm920t 111 - arm,arm922t 112 - arm,arm925 113 - arm,arm926e-s 114 - arm,arm926ej-s 115 - arm,arm940t 116 - arm,arm946e-s 117 - arm,arm966e-s 118 - arm,arm968e-s 119 - arm,arm9tdmi 120 - arm,arm1020e 121 - arm,arm1020t 122 - arm,arm1022e 123 - arm,arm1026ej-s 124 - arm,arm1136j-s 125 - arm,arm1136jf-s 126 - arm,arm1156t2-s 127 - arm,arm1156t2f-s 128 - arm,arm1176jzf 129 - arm,arm1176jz-s 130 - arm,arm1176jzf-s 131 - arm,arm11mpcore 132 - arm,armv8 # Only for s/w models 133 - arm,c1-nano 134 - arm,c1-premium 135 - arm,c1-pro 136 - arm,c1-ultra 137 - arm,cortex-a5 138 - arm,cortex-a7 139 - arm,cortex-a8 140 - arm,cortex-a9 141 - arm,cortex-a12 142 - arm,cortex-a15 143 - arm,cortex-a17 144 - arm,cortex-a32 145 - arm,cortex-a34 146 - arm,cortex-a35 147 - arm,cortex-a53 148 - arm,cortex-a55 149 - arm,cortex-a57 150 - arm,cortex-a65 151 - arm,cortex-a72 152 - arm,cortex-a73 153 - arm,cortex-a75 154 - arm,cortex-a76 155 - arm,cortex-a77 156 - arm,cortex-a78 157 - arm,cortex-a78ae 158 - arm,cortex-a78c 159 - arm,cortex-a320 160 - arm,cortex-a510 161 - arm,cortex-a520 162 - arm,cortex-a520ae 163 - arm,cortex-a710 164 - arm,cortex-a715 165 - arm,cortex-a720 166 - arm,cortex-a720ae 167 - arm,cortex-a725 168 - arm,cortex-m0 169 - arm,cortex-m0+ 170 - arm,cortex-m1 171 - arm,cortex-m3 172 - arm,cortex-m4 173 - arm,cortex-r4 174 - arm,cortex-r5 175 - arm,cortex-r7 176 - arm,cortex-r52 177 - arm,cortex-x1 178 - arm,cortex-x1c 179 - arm,cortex-x2 180 - arm,cortex-x3 181 - arm,cortex-x4 182 - arm,cortex-x925 183 - arm,neoverse-e1 184 - arm,neoverse-n1 185 - arm,neoverse-n2 186 - arm,neoverse-n3 187 - arm,neoverse-v1 188 - arm,neoverse-v2 189 - arm,neoverse-v3 190 - arm,neoverse-v3ae 191 - arm,rainier 192 - brcm,brahma-b15 193 - brcm,brahma-b53 194 - brcm,vulcan 195 - cavium,thunder 196 - cavium,thunder2 197 - faraday,fa526 198 - intel,sa110 199 - intel,sa1100 200 - marvell,feroceon 201 - marvell,mohawk 202 - marvell,pj4a 203 - marvell,pj4b 204 - marvell,sheeva-v5 205 - marvell,sheeva-v7 206 - nvidia,tegra132-denver 207 - nvidia,tegra186-denver 208 - nvidia,tegra194-carmel 209 - qcom,krait 210 - qcom,kryo240 211 - qcom,kryo250 212 - qcom,kryo260 213 - qcom,kryo280 214 - qcom,kryo360 215 - qcom,kryo385 216 - qcom,kryo465 217 - qcom,kryo468 218 - qcom,kryo470 219 - qcom,kryo475 220 - qcom,kryo485 221 - qcom,kryo560 222 - qcom,kryo570 223 - qcom,kryo660 224 - qcom,kryo670 225 - qcom,kryo685 226 - qcom,kryo780 227 - qcom,oryon-1-1 228 - qcom,oryon-1-2 229 - qcom,oryon-1-3 230 - qcom,oryon-1-4 231 - qcom,oryon-1-5 232 - qcom,oryon-2-1 233 - qcom,oryon-2-2 234 - qcom,oryon-2-3 235 - qcom,oryon-3-0 236 - qcom,oryon-3-1 237 - qcom,oryon-3-2 238 - qcom,scorpion 239 - samsung,mongoose-m2 240 - samsung,mongoose-m3 241 - samsung,mongoose-m5 242 - enum: 243 - qcom,kryo 244 - qcom,oryon 245 # Too generic, do not use in new code 246 deprecated: true 247 248 enable-method: 249 $ref: /schemas/types.yaml#/definitions/string 250 oneOf: 251 # On ARM v8 64-bit this property is required 252 - enum: 253 - psci 254 - spin-table 255 # On ARM 32-bit systems this property is optional 256 - enum: 257 - actions,s500-smp 258 - allwinner,sun6i-a31 259 - allwinner,sun8i-a23 260 - allwinner,sun9i-a80-smp 261 - allwinner,sun8i-a83t-smp 262 - amlogic,meson8-smp 263 - amlogic,meson8b-smp 264 - arm,realview-smp 265 - aspeed,ast2600-smp 266 - brcm,bcm11351-cpu-method 267 - brcm,bcm23550 268 - brcm,bcm2836-smp 269 - brcm,bcm63138 270 - brcm,bcm-nsp-smp 271 - brcm,brahma-b15 272 - marvell,armada-375-smp 273 - marvell,armada-380-smp 274 - marvell,armada-390-smp 275 - marvell,armada-xp-smp 276 - marvell,98dx3236-smp 277 - marvell,mmp3-smp 278 - mediatek,mt6589-smp 279 - mediatek,mt81xx-tz-smp 280 - qcom,gcc-msm8660 281 - qcom,kpss-acc-v1 282 - qcom,kpss-acc-v2 283 - qcom,msm8226-smp 284 - qcom,msm8909-smp 285 # Only valid on ARM 32-bit, see above for ARM v8 64-bit 286 - qcom,msm8916-smp 287 - renesas,apmu 288 - renesas,r9a06g032-smp 289 - rockchip,rk3036-smp 290 - rockchip,rk3066-smp 291 - socionext,milbeaut-m10v-smp 292 - ste,dbx500-smp 293 - ti,am3352 294 - ti,am4372 295 296 cpu-release-addr: 297 oneOf: 298 - $ref: /schemas/types.yaml#/definitions/uint32 299 - $ref: /schemas/types.yaml#/definitions/uint64 300 description: 301 The DT specification defines this as 64-bit always, but some 32-bit Arm 302 systems have used a 32-bit value which must be supported. 303 304 cpu-idle-states: 305 $ref: /schemas/types.yaml#/definitions/phandle-array 306 items: 307 maxItems: 1 308 description: 309 List of phandles to idle state nodes supported by this cpu (see 310 ./idle-states.yaml). 311 312 capacity-dmips-mhz: 313 description: 314 u32 value representing CPU capacity (see ../cpu/cpu-capacity.txt) in 315 DMIPS/MHz, relative to highest capacity-dmips-mhz in the system. 316 317 cci-control-port: true 318 319 dynamic-power-coefficient: 320 $ref: /schemas/types.yaml#/definitions/uint32 321 description: > 322 A u32 value that represents the running time dynamic power coefficient in 323 units of uW/MHz/V^2. The coefficient can either be calculated from power 324 measurements or derived by analysis. 325 326 The dynamic power consumption of the CPU is proportional to the square of 327 the Voltage (V) and the clock frequency (f). The coefficient is used to 328 calculate the dynamic power as below - 329 330 Pdyn = dynamic-power-coefficient * V^2 * f 331 332 where voltage is in V, frequency is in MHz. 333 334 interconnects: 335 minItems: 1 336 maxItems: 3 337 338 nvmem-cells: 339 maxItems: 1 340 341 nvmem-cell-names: 342 const: speed_grade 343 344 performance-domains: 345 maxItems: 1 346 347 power-domains: 348 minItems: 1 349 maxItems: 2 350 351 power-domain-names: 352 description: 353 For PSCI based platforms, the name corresponding to the index of the PSCI 354 PM domain provider, must be "psci". For SCMI based platforms, the name 355 corresponding to the index of an SCMI performance domain provider, must be 356 "perf". 357 minItems: 1 358 maxItems: 2 359 items: 360 enum: [ psci, perf, cpr ] 361 362 resets: 363 maxItems: 1 364 365 arm-supply: 366 deprecated: true 367 description: Use 'cpu-supply' instead 368 369 cpu0-supply: 370 deprecated: true 371 description: Use 'cpu-supply' instead 372 373 mem-supply: true 374 375 proc-supply: 376 deprecated: true 377 description: Use 'cpu-supply' instead 378 379 pu-supply: 380 deprecated: true 381 description: Only for i.MX6Q/DL/SL SoCs. 382 383 soc-supply: 384 deprecated: true 385 description: Only for i.MX6/7 Soc. 386 387 sram-supply: 388 deprecated: true 389 description: Use 'mem-supply' instead 390 391 fsl,soc-operating-points: 392 $ref: /schemas/types.yaml#/definitions/uint32-matrix 393 description: FSL i.MX6 Soc operation-points when change cpu frequency 394 deprecated: true 395 items: 396 items: 397 - description: Frequency in kHz 398 - description: Voltage for OPP in uV 399 400 mediatek,cci: 401 $ref: /schemas/types.yaml#/definitions/phandle 402 description: Link to Mediatek Cache Coherent Interconnect 403 404 edac-enabled: 405 $ref: /schemas/types.yaml#/definitions/flag 406 description: 407 A72 CPUs support Error Detection And Correction (EDAC) on their L1 and 408 L2 caches. This flag marks this function as usable. 409 410 qcom,saw: 411 $ref: /schemas/types.yaml#/definitions/phandle 412 description: 413 Specifies the SAW node associated with this CPU. 414 415 qcom,acc: 416 $ref: /schemas/types.yaml#/definitions/phandle 417 description: 418 Specifies the ACC node associated with this CPU. 419 420 qcom,freq-domain: 421 description: Specifies the QCom CPUFREQ HW associated with the CPU. 422 $ref: /schemas/types.yaml#/definitions/phandle-array 423 maxItems: 1 424 425 rockchip,pmu: 426 $ref: /schemas/types.yaml#/definitions/phandle 427 description: > 428 Specifies the syscon node controlling the cpu core power domains. 429 430 Optional for systems that have an "enable-method" property value of 431 "rockchip,rk3066-smp". While optional, it is the preferred way to get 432 access to the cpu-core power-domains. 433 434 secondary-boot-reg: 435 $ref: /schemas/types.yaml#/definitions/uint32 436 description: > 437 Required for systems that have an "enable-method" property value of 438 "brcm,bcm11351-cpu-method", "brcm,bcm23550" or "brcm,bcm-nsp-smp". 439 440 This includes the following SoCs: 441 BCM11130, BCM11140, BCM11351, BCM28145, BCM28155, BCM21664, BCM23550, 442 BCM58522, BCM58525, BCM58535, BCM58622, BCM58623, BCM58625, BCM88312 443 444 The secondary-boot-reg property is a u32 value that specifies the 445 physical address of the register used to request the ROM holding pen 446 code release a secondary CPU. The value written to the register is 447 formed by encoding the target CPU id into the low bits of the 448 physical start address it should jump to. 449 450 thermal-idle: 451 type: object 452 453allOf: 454 - $ref: /schemas/cpu.yaml# 455 - $ref: /schemas/opp/opp-v1.yaml# 456 - if: 457 not: 458 properties: 459 compatible: 460 contains: 461 const: arm,cortex-a72 462 then: 463 # Allow edac-enabled only for Cortex A72 464 properties: 465 edac-enabled: false 466 467 - if: 468 # If the enable-method property contains one of those values 469 properties: 470 enable-method: 471 contains: 472 enum: 473 - brcm,bcm11351-cpu-method 474 - brcm,bcm23550 475 - brcm,bcm-nsp-smp 476 # and if enable-method is present 477 required: 478 - enable-method 479 then: 480 required: 481 - secondary-boot-reg 482 - if: 483 properties: 484 enable-method: 485 enum: 486 - spin-table 487 - renesas,r9a06g032-smp 488 required: 489 - enable-method 490 then: 491 required: 492 - cpu-release-addr 493 - if: 494 properties: 495 enable-method: 496 enum: 497 - qcom,kpss-acc-v1 498 - qcom,kpss-acc-v2 499 - qcom,msm8226-smp 500 - qcom,msm8916-smp 501 required: 502 - enable-method 503 then: 504 required: 505 - qcom,acc 506 - qcom,saw 507 else: 508 if: 509 # 2 Qualcomm platforms bootloaders need qcom,acc and qcom,saw yet use 510 # "spin-table" or "psci" enable-methods. Disallowing the properties for 511 # all other CPUs is the best we can do as there's not any way to 512 # distinguish these Qualcomm platforms. 513 not: 514 properties: 515 compatible: 516 const: arm,cortex-a53 517 then: 518 properties: 519 qcom,acc: false 520 qcom,saw: false 521 522required: 523 - device_type 524 - reg 525 - compatible 526 527dependencies: 528 rockchip,pmu: [enable-method] 529 530unevaluatedProperties: false 531 532examples: 533 - | 534 cpus { 535 #size-cells = <0>; 536 #address-cells = <1>; 537 538 cpu@0 { 539 device_type = "cpu"; 540 compatible = "arm,cortex-a15"; 541 reg = <0x0>; 542 }; 543 544 cpu@1 { 545 device_type = "cpu"; 546 compatible = "arm,cortex-a15"; 547 reg = <0x1>; 548 }; 549 550 cpu@100 { 551 device_type = "cpu"; 552 compatible = "arm,cortex-a7"; 553 reg = <0x100>; 554 }; 555 556 cpu@101 { 557 device_type = "cpu"; 558 compatible = "arm,cortex-a7"; 559 reg = <0x101>; 560 }; 561 }; 562 563 - | 564 // Example 2 (Cortex-A8 uniprocessor 32-bit system): 565 cpus { 566 #size-cells = <0>; 567 #address-cells = <1>; 568 569 cpu@0 { 570 device_type = "cpu"; 571 compatible = "arm,cortex-a8"; 572 reg = <0x0>; 573 }; 574 }; 575 576 - | 577 // Example 3 (ARM 926EJ-S uniprocessor 32-bit system): 578 cpus { 579 #size-cells = <0>; 580 #address-cells = <1>; 581 582 cpu@0 { 583 device_type = "cpu"; 584 compatible = "arm,arm926ej-s"; 585 reg = <0x0>; 586 }; 587 }; 588 589 - | 590 // Example 4 (ARM Cortex-A57 64-bit system): 591 cpus { 592 #size-cells = <0>; 593 #address-cells = <2>; 594 595 cpu@0 { 596 device_type = "cpu"; 597 compatible = "arm,cortex-a57"; 598 reg = <0x0 0x0>; 599 enable-method = "spin-table"; 600 cpu-release-addr = <0 0x20000000>; 601 }; 602 603 cpu@1 { 604 device_type = "cpu"; 605 compatible = "arm,cortex-a57"; 606 reg = <0x0 0x1>; 607 enable-method = "spin-table"; 608 cpu-release-addr = <0 0x20000000>; 609 }; 610 611 cpu@100 { 612 device_type = "cpu"; 613 compatible = "arm,cortex-a57"; 614 reg = <0x0 0x100>; 615 enable-method = "spin-table"; 616 cpu-release-addr = <0 0x20000000>; 617 }; 618 619 cpu@101 { 620 device_type = "cpu"; 621 compatible = "arm,cortex-a57"; 622 reg = <0x0 0x101>; 623 enable-method = "spin-table"; 624 cpu-release-addr = <0 0x20000000>; 625 }; 626 627 cpu@10000 { 628 device_type = "cpu"; 629 compatible = "arm,cortex-a57"; 630 reg = <0x0 0x10000>; 631 enable-method = "spin-table"; 632 cpu-release-addr = <0 0x20000000>; 633 }; 634 635 cpu@10001 { 636 device_type = "cpu"; 637 compatible = "arm,cortex-a57"; 638 reg = <0x0 0x10001>; 639 enable-method = "spin-table"; 640 cpu-release-addr = <0 0x20000000>; 641 }; 642 643 cpu@10100 { 644 device_type = "cpu"; 645 compatible = "arm,cortex-a57"; 646 reg = <0x0 0x10100>; 647 enable-method = "spin-table"; 648 cpu-release-addr = <0 0x20000000>; 649 }; 650 651 cpu@10101 { 652 device_type = "cpu"; 653 compatible = "arm,cortex-a57"; 654 reg = <0x0 0x10101>; 655 enable-method = "spin-table"; 656 cpu-release-addr = <0 0x20000000>; 657 }; 658 659 cpu@100000000 { 660 device_type = "cpu"; 661 compatible = "arm,cortex-a57"; 662 reg = <0x1 0x0>; 663 enable-method = "spin-table"; 664 cpu-release-addr = <0 0x20000000>; 665 }; 666 667 cpu@100000001 { 668 device_type = "cpu"; 669 compatible = "arm,cortex-a57"; 670 reg = <0x1 0x1>; 671 enable-method = "spin-table"; 672 cpu-release-addr = <0 0x20000000>; 673 }; 674 675 cpu@100000100 { 676 device_type = "cpu"; 677 compatible = "arm,cortex-a57"; 678 reg = <0x1 0x100>; 679 enable-method = "spin-table"; 680 cpu-release-addr = <0 0x20000000>; 681 }; 682 683 cpu@100000101 { 684 device_type = "cpu"; 685 compatible = "arm,cortex-a57"; 686 reg = <0x1 0x101>; 687 enable-method = "spin-table"; 688 cpu-release-addr = <0 0x20000000>; 689 }; 690 691 cpu@100010000 { 692 device_type = "cpu"; 693 compatible = "arm,cortex-a57"; 694 reg = <0x1 0x10000>; 695 enable-method = "spin-table"; 696 cpu-release-addr = <0 0x20000000>; 697 }; 698 699 cpu@100010001 { 700 device_type = "cpu"; 701 compatible = "arm,cortex-a57"; 702 reg = <0x1 0x10001>; 703 enable-method = "spin-table"; 704 cpu-release-addr = <0 0x20000000>; 705 }; 706 707 cpu@100010100 { 708 device_type = "cpu"; 709 compatible = "arm,cortex-a57"; 710 reg = <0x1 0x10100>; 711 enable-method = "spin-table"; 712 cpu-release-addr = <0 0x20000000>; 713 }; 714 715 cpu@100010101 { 716 device_type = "cpu"; 717 compatible = "arm,cortex-a57"; 718 reg = <0x1 0x10101>; 719 enable-method = "spin-table"; 720 cpu-release-addr = <0 0x20000000>; 721 }; 722 }; 723... 724