1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (C) 2019 Marvell Technology Group 3 * Copyright (C) 2019 Marvell Technology Group Ltd. 4 * 4 * 5 * Device Tree file for Marvell Armada AP80x. 5 * Device Tree file for Marvell Armada AP80x. 6 */ 6 */ 7 7 8 #include <dt-bindings/interrupt-controller/arm 8 #include <dt-bindings/interrupt-controller/arm-gic.h> 9 #include <dt-bindings/thermal/thermal.h> 9 #include <dt-bindings/thermal/thermal.h> 10 10 11 /dts-v1/; 11 /dts-v1/; 12 12 13 / { 13 / { 14 #address-cells = <2>; 14 #address-cells = <2>; 15 #size-cells = <2>; 15 #size-cells = <2>; 16 16 17 aliases { 17 aliases { 18 serial0 = &uart0; 18 serial0 = &uart0; 19 serial1 = &uart1; 19 serial1 = &uart1; 20 gpio0 = &ap_gpio; 20 gpio0 = &ap_gpio; 21 spi0 = &spi0; 21 spi0 = &spi0; 22 }; 22 }; 23 23 24 psci { 24 psci { 25 compatible = "arm,psci-0.2"; 25 compatible = "arm,psci-0.2"; 26 method = "smc"; 26 method = "smc"; 27 }; 27 }; 28 28 29 reserved-memory { 29 reserved-memory { 30 #address-cells = <2>; 30 #address-cells = <2>; 31 #size-cells = <2>; 31 #size-cells = <2>; 32 ranges; 32 ranges; 33 33 34 /* 34 /* 35 * This area matches the mappi 35 * This area matches the mapping done with a 36 * mainline U-Boot, and should 36 * mainline U-Boot, and should be updated by the 37 * bootloader. 37 * bootloader. 38 */ 38 */ 39 39 40 psci-area@4000000 { 40 psci-area@4000000 { 41 reg = <0x0 0x4000000 0 41 reg = <0x0 0x4000000 0x0 0x200000>; 42 no-map; 42 no-map; 43 }; 43 }; 44 << 45 tee@4400000 { << 46 reg = <0 0x4400000 0 0 << 47 no-map; << 48 }; << 49 }; 44 }; 50 45 51 AP_NAME { 46 AP_NAME { 52 #address-cells = <2>; 47 #address-cells = <2>; 53 #size-cells = <2>; 48 #size-cells = <2>; 54 compatible = "simple-bus"; 49 compatible = "simple-bus"; 55 interrupt-parent = <&gic>; 50 interrupt-parent = <&gic>; 56 ranges; 51 ranges; 57 52 58 config-space@f0000000 { 53 config-space@f0000000 { 59 #address-cells = <1>; 54 #address-cells = <1>; 60 #size-cells = <1>; 55 #size-cells = <1>; 61 compatible = "simple-b 56 compatible = "simple-bus"; 62 ranges = <0x0 0x0 0xf0 57 ranges = <0x0 0x0 0xf0000000 0x1000000>; 63 58 64 smmu: iommu@100000 { << 65 compatible = " << 66 reg = <0x10000 << 67 dma-coherent; << 68 #iommu-cells = << 69 #global-interr << 70 interrupts = < << 71 < << 72 < << 73 < << 74 < << 75 < << 76 < << 77 < << 78 < << 79 status = "disa << 80 }; << 81 << 82 gic: interrupt-control 59 gic: interrupt-controller@210000 { 83 compatible = " 60 compatible = "arm,gic-400"; 84 #interrupt-cel 61 #interrupt-cells = <3>; 85 #address-cells 62 #address-cells = <1>; 86 #size-cells = 63 #size-cells = <1>; 87 ranges; 64 ranges; 88 interrupt-cont 65 interrupt-controller; 89 interrupts = < 66 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 90 reg = <0x21000 67 reg = <0x210000 0x10000>, 91 <0x22000 68 <0x220000 0x20000>, 92 <0x24000 69 <0x240000 0x20000>, 93 <0x26000 70 <0x260000 0x20000>; 94 71 95 gic_v2m0: v2m@ 72 gic_v2m0: v2m@280000 { 96 compat 73 compatible = "arm,gic-v2m-frame"; 97 msi-co 74 msi-controller; 98 reg = 75 reg = <0x280000 0x1000>; 99 arm,ms 76 arm,msi-base-spi = <160>; 100 arm,ms 77 arm,msi-num-spis = <32>; 101 }; 78 }; 102 gic_v2m1: v2m@ 79 gic_v2m1: v2m@290000 { 103 compat 80 compatible = "arm,gic-v2m-frame"; 104 msi-co 81 msi-controller; 105 reg = 82 reg = <0x290000 0x1000>; 106 arm,ms 83 arm,msi-base-spi = <192>; 107 arm,ms 84 arm,msi-num-spis = <32>; 108 }; 85 }; 109 gic_v2m2: v2m@ 86 gic_v2m2: v2m@2a0000 { 110 compat 87 compatible = "arm,gic-v2m-frame"; 111 msi-co 88 msi-controller; 112 reg = 89 reg = <0x2a0000 0x1000>; 113 arm,ms 90 arm,msi-base-spi = <224>; 114 arm,ms 91 arm,msi-num-spis = <32>; 115 }; 92 }; 116 gic_v2m3: v2m@ 93 gic_v2m3: v2m@2b0000 { 117 compat 94 compatible = "arm,gic-v2m-frame"; 118 msi-co 95 msi-controller; 119 reg = 96 reg = <0x2b0000 0x1000>; 120 arm,ms 97 arm,msi-base-spi = <256>; 121 arm,ms 98 arm,msi-num-spis = <32>; 122 }; 99 }; 123 }; 100 }; 124 101 125 timer { 102 timer { 126 compatible = " 103 compatible = "arm,armv8-timer"; 127 interrupts = < 104 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 128 < 105 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 129 < 106 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 130 < 107 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; 131 }; 108 }; 132 109 133 pmu { 110 pmu { 134 compatible = " 111 compatible = "arm,cortex-a72-pmu"; 135 interrupt-pare 112 interrupt-parent = <&pic>; 136 interrupts = < 113 interrupts = <17>; 137 }; 114 }; 138 115 139 odmi: odmi@300000 { 116 odmi: odmi@300000 { 140 compatible = " 117 compatible = "marvell,odmi-controller"; >> 118 interrupt-controller; 141 msi-controller 119 msi-controller; 142 marvell,odmi-f 120 marvell,odmi-frames = <4>; 143 reg = <0x30000 121 reg = <0x300000 0x4000>, 144 <0x30400 122 <0x304000 0x4000>, 145 <0x30800 123 <0x308000 0x4000>, 146 <0x30C00 124 <0x30C000 0x4000>; 147 marvell,spi-ba 125 marvell,spi-base = <128>, <136>, <144>, <152>; 148 }; 126 }; 149 127 150 gicp: gicp@3f0040 { 128 gicp: gicp@3f0040 { 151 compatible = " 129 compatible = "marvell,ap806-gicp"; 152 reg = <0x3f004 130 reg = <0x3f0040 0x10>; 153 marvell,spi-ra 131 marvell,spi-ranges = <64 64>, <288 64>; 154 msi-controller 132 msi-controller; 155 }; 133 }; 156 134 157 pic: interrupt-control 135 pic: interrupt-controller@3f0100 { 158 compatible = " 136 compatible = "marvell,armada-8k-pic"; 159 reg = <0x3f010 137 reg = <0x3f0100 0x10>; 160 #interrupt-cel 138 #interrupt-cells = <1>; 161 interrupt-cont 139 interrupt-controller; 162 interrupts = < 140 interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>; 163 }; 141 }; 164 142 165 sei: interrupt-control 143 sei: interrupt-controller@3f0200 { 166 compatible = " 144 compatible = "marvell,ap806-sei"; 167 reg = <0x3f020 145 reg = <0x3f0200 0x40>; 168 interrupts = < 146 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; 169 #interrupt-cel 147 #interrupt-cells = <1>; 170 interrupt-cont 148 interrupt-controller; 171 msi-controller 149 msi-controller; 172 }; 150 }; 173 151 174 xor@400000 { 152 xor@400000 { 175 compatible = " 153 compatible = "marvell,armada-7k-xor", "marvell,xor-v2"; 176 reg = <0x40000 154 reg = <0x400000 0x1000>, 177 <0x41000 155 <0x410000 0x1000>; 178 msi-parent = < 156 msi-parent = <&gic_v2m0>; 179 clocks = <&ap_ 157 clocks = <&ap_clk 3>; 180 dma-coherent; 158 dma-coherent; 181 }; 159 }; 182 160 183 xor@420000 { 161 xor@420000 { 184 compatible = " 162 compatible = "marvell,armada-7k-xor", "marvell,xor-v2"; 185 reg = <0x42000 163 reg = <0x420000 0x1000>, 186 <0x43000 164 <0x430000 0x1000>; 187 msi-parent = < 165 msi-parent = <&gic_v2m0>; 188 clocks = <&ap_ 166 clocks = <&ap_clk 3>; 189 dma-coherent; 167 dma-coherent; 190 }; 168 }; 191 169 192 xor@440000 { 170 xor@440000 { 193 compatible = " 171 compatible = "marvell,armada-7k-xor", "marvell,xor-v2"; 194 reg = <0x44000 172 reg = <0x440000 0x1000>, 195 <0x45000 173 <0x450000 0x1000>; 196 msi-parent = < 174 msi-parent = <&gic_v2m0>; 197 clocks = <&ap_ 175 clocks = <&ap_clk 3>; 198 dma-coherent; 176 dma-coherent; 199 }; 177 }; 200 178 201 xor@460000 { 179 xor@460000 { 202 compatible = " 180 compatible = "marvell,armada-7k-xor", "marvell,xor-v2"; 203 reg = <0x46000 181 reg = <0x460000 0x1000>, 204 <0x47000 182 <0x470000 0x1000>; 205 msi-parent = < 183 msi-parent = <&gic_v2m0>; 206 clocks = <&ap_ 184 clocks = <&ap_clk 3>; 207 dma-coherent; 185 dma-coherent; 208 }; 186 }; 209 187 210 spi0: spi@510600 { 188 spi0: spi@510600 { 211 compatible = " 189 compatible = "marvell,armada-380-spi"; 212 reg = <0x51060 190 reg = <0x510600 0x50>; 213 #address-cells 191 #address-cells = <1>; 214 #size-cells = 192 #size-cells = <0>; 215 interrupts = < 193 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; 216 clocks = <&ap_ 194 clocks = <&ap_clk 3>; 217 status = "disa 195 status = "disabled"; 218 }; 196 }; 219 197 220 i2c0: i2c@511000 { 198 i2c0: i2c@511000 { 221 compatible = " 199 compatible = "marvell,mv78230-i2c"; 222 reg = <0x51100 200 reg = <0x511000 0x20>; 223 #address-cells 201 #address-cells = <1>; 224 #size-cells = 202 #size-cells = <0>; 225 interrupts = < 203 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; >> 204 timeout-ms = <1000>; 226 clocks = <&ap_ 205 clocks = <&ap_clk 3>; 227 status = "disa 206 status = "disabled"; 228 }; 207 }; 229 208 230 uart0: serial@512000 { 209 uart0: serial@512000 { 231 compatible = " 210 compatible = "snps,dw-apb-uart"; 232 reg = <0x51200 211 reg = <0x512000 0x100>; 233 reg-shift = <2 212 reg-shift = <2>; 234 interrupts = < 213 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; 235 reg-io-width = 214 reg-io-width = <1>; 236 clocks = <&ap_ 215 clocks = <&ap_clk 3>; 237 status = "disa 216 status = "disabled"; 238 }; 217 }; 239 218 240 uart1: serial@512100 { 219 uart1: serial@512100 { 241 compatible = " 220 compatible = "snps,dw-apb-uart"; 242 reg = <0x51210 221 reg = <0x512100 0x100>; 243 reg-shift = <2 222 reg-shift = <2>; 244 interrupts = < 223 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; 245 reg-io-width = 224 reg-io-width = <1>; 246 clocks = <&ap_ 225 clocks = <&ap_clk 3>; 247 status = "disa 226 status = "disabled"; 248 227 249 }; 228 }; 250 229 251 watchdog: watchdog@610 230 watchdog: watchdog@610000 { 252 compatible = " 231 compatible = "arm,sbsa-gwdt"; 253 reg = <0x61000 232 reg = <0x610000 0x1000>, <0x600000 0x1000>; 254 interrupts = < 233 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; 255 }; 234 }; 256 235 257 ap_sdhci0: mmc@6e0000 !! 236 ap_sdhci0: sdhci@6e0000 { 258 compatible = " 237 compatible = "marvell,armada-ap806-sdhci"; 259 reg = <0x6e000 238 reg = <0x6e0000 0x300>; 260 interrupts = < 239 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; 261 clock-names = 240 clock-names = "core"; 262 clocks = <&ap_ 241 clocks = <&ap_clk 4>; 263 dma-coherent; 242 dma-coherent; 264 marvell,xenon- 243 marvell,xenon-phy-slow-mode; 265 status = "disa 244 status = "disabled"; 266 }; 245 }; 267 246 268 ap_syscon0: system-con 247 ap_syscon0: system-controller@6f4000 { 269 compatible = " 248 compatible = "syscon", "simple-mfd"; 270 reg = <0x6f400 249 reg = <0x6f4000 0x2000>; 271 250 272 ap_pinctrl: pi 251 ap_pinctrl: pinctrl { 273 compat 252 compatible = "marvell,ap806-pinctrl"; 274 253 275 uart0_ 254 uart0_pins: uart0-pins { 276 255 marvell,pins = "mpp11", "mpp19"; 277 256 marvell,function = "uart0"; 278 }; 257 }; 279 }; 258 }; 280 259 281 ap_gpio: gpio@ 260 ap_gpio: gpio@1040 { 282 compat 261 compatible = "marvell,armada-8k-gpio"; 283 offset 262 offset = <0x1040>; 284 ngpios 263 ngpios = <20>; 285 gpio-c 264 gpio-controller; 286 #gpio- 265 #gpio-cells = <2>; 287 gpio-r 266 gpio-ranges = <&ap_pinctrl 0 0 20>; 288 marvel << 289 #pwm-c << 290 clocks << 291 }; 267 }; 292 }; 268 }; 293 269 294 ap_syscon1: system-con 270 ap_syscon1: system-controller@6f8000 { 295 compatible = " 271 compatible = "syscon", "simple-mfd"; 296 reg = <0x6f800 272 reg = <0x6f8000 0x1000>; 297 #address-cells 273 #address-cells = <1>; 298 #size-cells = 274 #size-cells = <1>; 299 275 300 ap_thermal: th 276 ap_thermal: thermal-sensor@80 { 301 compat 277 compatible = "marvell,armada-ap806-thermal"; 302 reg = 278 reg = <0x80 0x10>; 303 interr 279 interrupt-parent = <&sei>; 304 interr 280 interrupts = <18>; 305 #therm 281 #thermal-sensor-cells = <1>; 306 }; 282 }; 307 }; 283 }; 308 }; 284 }; 309 }; 285 }; 310 286 311 /* 287 /* 312 * The thermal IP features one interna 288 * The thermal IP features one internal sensor plus, if applicable, one 313 * remote channel wired to one sensor 289 * remote channel wired to one sensor per CPU. 314 * 290 * 315 * Only one thermal zone per AP/CP may 291 * Only one thermal zone per AP/CP may trigger interrupts at a time, the 316 * first one that will have a critical 292 * first one that will have a critical trip point will be chosen. 317 */ 293 */ 318 thermal-zones { 294 thermal-zones { 319 ap_thermal_ic: ap-ic-thermal { !! 295 ap_thermal_ic: ap-thermal-ic { 320 polling-delay-passive 296 polling-delay-passive = <0>; /* Interrupt driven */ 321 polling-delay = <0>; / 297 polling-delay = <0>; /* Interrupt driven */ 322 298 323 thermal-sensors = <&ap 299 thermal-sensors = <&ap_thermal 0>; 324 300 325 trips { 301 trips { 326 ap_crit: ap-cr 302 ap_crit: ap-crit { 327 temper 303 temperature = <100000>; /* mC degrees */ 328 hyster 304 hysteresis = <2000>; /* mC degrees */ 329 type = 305 type = "critical"; 330 }; 306 }; 331 }; 307 }; 332 308 333 cooling-maps { }; 309 cooling-maps { }; 334 }; 310 }; 335 311 336 ap_thermal_cpu0: ap-cpu0-therm !! 312 ap_thermal_cpu0: ap-thermal-cpu0 { 337 polling-delay-passive 313 polling-delay-passive = <1000>; 338 polling-delay = <1000> 314 polling-delay = <1000>; 339 315 340 thermal-sensors = <&ap 316 thermal-sensors = <&ap_thermal 1>; 341 317 342 trips { 318 trips { 343 cpu0_hot: cpu0 319 cpu0_hot: cpu0-hot { 344 temper 320 temperature = <85000>; 345 hyster 321 hysteresis = <2000>; 346 type = 322 type = "passive"; 347 }; 323 }; 348 cpu0_emerg: cp 324 cpu0_emerg: cpu0-emerg { 349 temper 325 temperature = <95000>; 350 hyster 326 hysteresis = <2000>; 351 type = 327 type = "passive"; 352 }; 328 }; 353 }; 329 }; 354 330 355 cooling-maps { 331 cooling-maps { 356 map0_hot: map0 332 map0_hot: map0-hot { 357 trip = 333 trip = <&cpu0_hot>; 358 coolin 334 cooling-device = <&cpu0 1 2>, 359 335 <&cpu1 1 2>; 360 }; 336 }; 361 map0_emerg: ma 337 map0_emerg: map0-ermerg { 362 trip = 338 trip = <&cpu0_emerg>; 363 coolin 339 cooling-device = <&cpu0 3 3>, 364 340 <&cpu1 3 3>; 365 }; 341 }; 366 }; 342 }; 367 }; 343 }; 368 344 369 ap_thermal_cpu1: ap-cpu1-therm !! 345 ap_thermal_cpu1: ap-thermal-cpu1 { 370 polling-delay-passive 346 polling-delay-passive = <1000>; 371 polling-delay = <1000> 347 polling-delay = <1000>; 372 348 373 thermal-sensors = <&ap 349 thermal-sensors = <&ap_thermal 2>; 374 350 375 trips { 351 trips { 376 cpu1_hot: cpu1 352 cpu1_hot: cpu1-hot { 377 temper 353 temperature = <85000>; 378 hyster 354 hysteresis = <2000>; 379 type = 355 type = "passive"; 380 }; 356 }; 381 cpu1_emerg: cp 357 cpu1_emerg: cpu1-emerg { 382 temper 358 temperature = <95000>; 383 hyster 359 hysteresis = <2000>; 384 type = 360 type = "passive"; 385 }; 361 }; 386 }; 362 }; 387 363 388 cooling-maps { 364 cooling-maps { 389 map1_hot: map1 365 map1_hot: map1-hot { 390 trip = 366 trip = <&cpu1_hot>; 391 coolin 367 cooling-device = <&cpu0 1 2>, 392 368 <&cpu1 1 2>; 393 }; 369 }; 394 map1_emerg: ma 370 map1_emerg: map1-emerg { 395 trip = 371 trip = <&cpu1_emerg>; 396 coolin 372 cooling-device = <&cpu0 3 3>, 397 373 <&cpu1 3 3>; 398 }; 374 }; 399 }; 375 }; 400 }; 376 }; 401 377 402 ap_thermal_cpu2: ap-cpu2-therm !! 378 ap_thermal_cpu2: ap-thermal-cpu2 { 403 polling-delay-passive 379 polling-delay-passive = <1000>; 404 polling-delay = <1000> 380 polling-delay = <1000>; 405 381 406 thermal-sensors = <&ap 382 thermal-sensors = <&ap_thermal 3>; 407 383 408 trips { 384 trips { 409 cpu2_hot: cpu2 385 cpu2_hot: cpu2-hot { 410 temper 386 temperature = <85000>; 411 hyster 387 hysteresis = <2000>; 412 type = 388 type = "passive"; 413 }; 389 }; 414 cpu2_emerg: cp 390 cpu2_emerg: cpu2-emerg { 415 temper 391 temperature = <95000>; 416 hyster 392 hysteresis = <2000>; 417 type = 393 type = "passive"; 418 }; 394 }; 419 }; 395 }; 420 396 421 cooling-maps { 397 cooling-maps { 422 map2_hot: map2 398 map2_hot: map2-hot { 423 trip = 399 trip = <&cpu2_hot>; 424 coolin 400 cooling-device = <&cpu2 1 2>, 425 401 <&cpu3 1 2>; 426 }; 402 }; 427 map2_emerg: ma 403 map2_emerg: map2-emerg { 428 trip = 404 trip = <&cpu2_emerg>; 429 coolin 405 cooling-device = <&cpu2 3 3>, 430 406 <&cpu3 3 3>; 431 }; 407 }; 432 }; 408 }; 433 }; 409 }; 434 410 435 ap_thermal_cpu3: ap-cpu3-therm !! 411 ap_thermal_cpu3: ap-thermal-cpu3 { 436 polling-delay-passive 412 polling-delay-passive = <1000>; 437 polling-delay = <1000> 413 polling-delay = <1000>; 438 414 439 thermal-sensors = <&ap 415 thermal-sensors = <&ap_thermal 4>; 440 416 441 trips { 417 trips { 442 cpu3_hot: cpu3 418 cpu3_hot: cpu3-hot { 443 temper 419 temperature = <85000>; 444 hyster 420 hysteresis = <2000>; 445 type = 421 type = "passive"; 446 }; 422 }; 447 cpu3_emerg: cp 423 cpu3_emerg: cpu3-emerg { 448 temper 424 temperature = <95000>; 449 hyster 425 hysteresis = <2000>; 450 type = 426 type = "passive"; 451 }; 427 }; 452 }; 428 }; 453 429 454 cooling-maps { 430 cooling-maps { 455 map3_hot: map3 431 map3_hot: map3-bhot { 456 trip = 432 trip = <&cpu3_hot>; 457 coolin 433 cooling-device = <&cpu2 1 2>, 458 434 <&cpu3 1 2>; 459 }; 435 }; 460 map3_emerg: ma 436 map3_emerg: map3-emerg { 461 trip = 437 trip = <&cpu3_emerg>; 462 coolin 438 cooling-device = <&cpu2 3 3>, 463 439 <&cpu3 3 3>; 464 }; 440 }; 465 }; 441 }; 466 }; 442 }; 467 }; 443 }; 468 }; 444 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.