| 1 |
// SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 |
/* |
| 3 |
* Apple T8112 "M2" SoC |
| 4 |
* |
| 5 |
* Other names: H14G |
| 6 |
* |
| 7 |
* Copyright The Asahi Linux Contributors |
| 8 |
*/ |
| 9 |
|
| 10 |
#include <dt-bindings/gpio/gpio.h> |
| 11 |
#include <dt-bindings/interrupt-controller/apple-aic.h> |
| 12 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 13 |
#include <dt-bindings/pinctrl/apple.h> |
| 14 |
#include <dt-bindings/phy/phy.h> |
| 15 |
#include <dt-bindings/spmi/spmi.h> |
| 16 |
|
| 17 |
/ { |
| 18 |
compatible = "apple,t8112", "apple,arm-platform"; |
| 19 |
|
| 20 |
#address-cells = <2>; |
| 21 |
#size-cells = <2>; |
| 22 |
|
| 23 |
aliases { |
| 24 |
gpu = &gpu; |
| 25 |
}; |
| 26 |
|
| 27 |
cpus { |
| 28 |
#address-cells = <2>; |
| 29 |
#size-cells = <0>; |
| 30 |
|
| 31 |
cpu-map { |
| 32 |
cluster0 { |
| 33 |
core0 { |
| 34 |
cpu = <&cpu_e0>; |
| 35 |
}; |
| 36 |
core1 { |
| 37 |
cpu = <&cpu_e1>; |
| 38 |
}; |
| 39 |
core2 { |
| 40 |
cpu = <&cpu_e2>; |
| 41 |
}; |
| 42 |
core3 { |
| 43 |
cpu = <&cpu_e3>; |
| 44 |
}; |
| 45 |
}; |
| 46 |
|
| 47 |
cluster1 { |
| 48 |
core0 { |
| 49 |
cpu = <&cpu_p0>; |
| 50 |
}; |
| 51 |
core1 { |
| 52 |
cpu = <&cpu_p1>; |
| 53 |
}; |
| 54 |
core2 { |
| 55 |
cpu = <&cpu_p2>; |
| 56 |
}; |
| 57 |
core3 { |
| 58 |
cpu = <&cpu_p3>; |
| 59 |
}; |
| 60 |
}; |
| 61 |
}; |
| 62 |
|
| 63 |
cpu_e0: cpu@0 { |
| 64 |
compatible = "apple,blizzard"; |
| 65 |
device_type = "cpu"; |
| 66 |
reg = <0x0 0x0>; |
| 67 |
enable-method = "spin-table"; |
| 68 |
cpu-release-addr = <0 0>; /* To be filled by loader */ |
| 69 |
operating-points-v2 = <&ecluster_opp>; |
| 70 |
capacity-dmips-mhz = <756>; |
| 71 |
performance-domains = <&cpufreq_e>; |
| 72 |
next-level-cache = <&l2_cache_0>; |
| 73 |
i-cache-size = <0x20000>; |
| 74 |
d-cache-size = <0x10000>; |
| 75 |
}; |
| 76 |
|
| 77 |
cpu_e1: cpu@1 { |
| 78 |
compatible = "apple,blizzard"; |
| 79 |
device_type = "cpu"; |
| 80 |
reg = <0x0 0x1>; |
| 81 |
enable-method = "spin-table"; |
| 82 |
cpu-release-addr = <0 0>; /* To be filled by loader */ |
| 83 |
operating-points-v2 = <&ecluster_opp>; |
| 84 |
capacity-dmips-mhz = <756>; |
| 85 |
performance-domains = <&cpufreq_e>; |
| 86 |
next-level-cache = <&l2_cache_0>; |
| 87 |
i-cache-size = <0x20000>; |
| 88 |
d-cache-size = <0x10000>; |
| 89 |
}; |
| 90 |
|
| 91 |
cpu_e2: cpu@2 { |
| 92 |
compatible = "apple,blizzard"; |
| 93 |
device_type = "cpu"; |
| 94 |
reg = <0x0 0x2>; |
| 95 |
enable-method = "spin-table"; |
| 96 |
cpu-release-addr = <0 0>; /* To be filled by loader */ |
| 97 |
operating-points-v2 = <&ecluster_opp>; |
| 98 |
capacity-dmips-mhz = <756>; |
| 99 |
performance-domains = <&cpufreq_e>; |
| 100 |
next-level-cache = <&l2_cache_0>; |
| 101 |
i-cache-size = <0x20000>; |
| 102 |
d-cache-size = <0x10000>; |
| 103 |
}; |
| 104 |
|
| 105 |
cpu_e3: cpu@3 { |
| 106 |
compatible = "apple,blizzard"; |
| 107 |
device_type = "cpu"; |
| 108 |
reg = <0x0 0x3>; |
| 109 |
enable-method = "spin-table"; |
| 110 |
cpu-release-addr = <0 0>; /* To be filled by loader */ |
| 111 |
operating-points-v2 = <&ecluster_opp>; |
| 112 |
capacity-dmips-mhz = <756>; |
| 113 |
performance-domains = <&cpufreq_e>; |
| 114 |
next-level-cache = <&l2_cache_0>; |
| 115 |
i-cache-size = <0x20000>; |
| 116 |
d-cache-size = <0x10000>; |
| 117 |
}; |
| 118 |
|
| 119 |
cpu_p0: cpu@10100 { |
| 120 |
compatible = "apple,avalanche"; |
| 121 |
device_type = "cpu"; |
| 122 |
reg = <0x0 0x10100>; |
| 123 |
enable-method = "spin-table"; |
| 124 |
cpu-release-addr = <0 0>; /* To be filled by loader */ |
| 125 |
operating-points-v2 = <&pcluster_opp>; |
| 126 |
capacity-dmips-mhz = <1024>; |
| 127 |
performance-domains = <&cpufreq_p>; |
| 128 |
next-level-cache = <&l2_cache_1>; |
| 129 |
i-cache-size = <0x30000>; |
| 130 |
d-cache-size = <0x20000>; |
| 131 |
}; |
| 132 |
|
| 133 |
cpu_p1: cpu@10101 { |
| 134 |
compatible = "apple,avalanche"; |
| 135 |
device_type = "cpu"; |
| 136 |
reg = <0x0 0x10101>; |
| 137 |
enable-method = "spin-table"; |
| 138 |
cpu-release-addr = <0 0>; /* To be filled by loader */ |
| 139 |
operating-points-v2 = <&pcluster_opp>; |
| 140 |
capacity-dmips-mhz = <1024>; |
| 141 |
performance-domains = <&cpufreq_p>; |
| 142 |
next-level-cache = <&l2_cache_1>; |
| 143 |
i-cache-size = <0x30000>; |
| 144 |
d-cache-size = <0x20000>; |
| 145 |
}; |
| 146 |
|
| 147 |
cpu_p2: cpu@10102 { |
| 148 |
compatible = "apple,avalanche"; |
| 149 |
device_type = "cpu"; |
| 150 |
reg = <0x0 0x10102>; |
| 151 |
enable-method = "spin-table"; |
| 152 |
cpu-release-addr = <0 0>; /* To be filled by loader */ |
| 153 |
operating-points-v2 = <&pcluster_opp>; |
| 154 |
capacity-dmips-mhz = <1024>; |
| 155 |
performance-domains = <&cpufreq_p>; |
| 156 |
next-level-cache = <&l2_cache_1>; |
| 157 |
i-cache-size = <0x30000>; |
| 158 |
d-cache-size = <0x20000>; |
| 159 |
}; |
| 160 |
|
| 161 |
cpu_p3: cpu@10103 { |
| 162 |
compatible = "apple,avalanche"; |
| 163 |
device_type = "cpu"; |
| 164 |
reg = <0x0 0x10103>; |
| 165 |
enable-method = "spin-table"; |
| 166 |
cpu-release-addr = <0 0>; /* To be filled by loader */ |
| 167 |
operating-points-v2 = <&pcluster_opp>; |
| 168 |
capacity-dmips-mhz = <1024>; |
| 169 |
performance-domains = <&cpufreq_p>; |
| 170 |
next-level-cache = <&l2_cache_1>; |
| 171 |
i-cache-size = <0x30000>; |
| 172 |
d-cache-size = <0x20000>; |
| 173 |
}; |
| 174 |
|
| 175 |
l2_cache_0: l2-cache-0 { |
| 176 |
compatible = "cache"; |
| 177 |
cache-level = <2>; |
| 178 |
cache-unified; |
| 179 |
cache-size = <0x400000>; |
| 180 |
}; |
| 181 |
|
| 182 |
l2_cache_1: l2-cache-1 { |
| 183 |
compatible = "cache"; |
| 184 |
cache-level = <2>; |
| 185 |
cache-unified; |
| 186 |
cache-size = <0x1000000>; |
| 187 |
}; |
| 188 |
}; |
| 189 |
|
| 190 |
ecluster_opp: opp-table-0 { |
| 191 |
compatible = "operating-points-v2"; |
| 192 |
opp-shared; |
| 193 |
|
| 194 |
opp01 { |
| 195 |
opp-hz = /bits/ 64 <600000000>; |
| 196 |
opp-level = <1>; |
| 197 |
clock-latency-ns = <7500>; |
| 198 |
}; |
| 199 |
opp02 { |
| 200 |
opp-hz = /bits/ 64 <912000000>; |
| 201 |
opp-level = <2>; |
| 202 |
clock-latency-ns = <20000>; |
| 203 |
}; |
| 204 |
opp03 { |
| 205 |
opp-hz = /bits/ 64 <1284000000>; |
| 206 |
opp-level = <3>; |
| 207 |
clock-latency-ns = <22000>; |
| 208 |
}; |
| 209 |
opp04 { |
| 210 |
opp-hz = /bits/ 64 <1752000000>; |
| 211 |
opp-level = <4>; |
| 212 |
clock-latency-ns = <30000>; |
| 213 |
}; |
| 214 |
opp05 { |
| 215 |
opp-hz = /bits/ 64 <2004000000>; |
| 216 |
opp-level = <5>; |
| 217 |
clock-latency-ns = <35000>; |
| 218 |
}; |
| 219 |
opp06 { |
| 220 |
opp-hz = /bits/ 64 <2256000000>; |
| 221 |
opp-level = <6>; |
| 222 |
clock-latency-ns = <39000>; |
| 223 |
}; |
| 224 |
opp07 { |
| 225 |
opp-hz = /bits/ 64 <2424000000>; |
| 226 |
opp-level = <7>; |
| 227 |
clock-latency-ns = <53000>; |
| 228 |
}; |
| 229 |
}; |
| 230 |
|
| 231 |
pcluster_opp: opp-table-1 { |
| 232 |
compatible = "operating-points-v2"; |
| 233 |
opp-shared; |
| 234 |
|
| 235 |
opp01 { |
| 236 |
opp-hz = /bits/ 64 <660000000>; |
| 237 |
opp-level = <1>; |
| 238 |
clock-latency-ns = <9000>; |
| 239 |
}; |
| 240 |
opp02 { |
| 241 |
opp-hz = /bits/ 64 <924000000>; |
| 242 |
opp-level = <2>; |
| 243 |
clock-latency-ns = <19000>; |
| 244 |
}; |
| 245 |
opp03 { |
| 246 |
opp-hz = /bits/ 64 <1188000000>; |
| 247 |
opp-level = <3>; |
| 248 |
clock-latency-ns = <22000>; |
| 249 |
}; |
| 250 |
opp04 { |
| 251 |
opp-hz = /bits/ 64 <1452000000>; |
| 252 |
opp-level = <4>; |
| 253 |
clock-latency-ns = <24000>; |
| 254 |
}; |
| 255 |
opp05 { |
| 256 |
opp-hz = /bits/ 64 <1704000000>; |
| 257 |
opp-level = <5>; |
| 258 |
clock-latency-ns = <26000>; |
| 259 |
}; |
| 260 |
opp06 { |
| 261 |
opp-hz = /bits/ 64 <1968000000>; |
| 262 |
opp-level = <6>; |
| 263 |
clock-latency-ns = <28000>; |
| 264 |
}; |
| 265 |
opp07 { |
| 266 |
opp-hz = /bits/ 64 <2208000000>; |
| 267 |
opp-level = <7>; |
| 268 |
clock-latency-ns = <30000>; |
| 269 |
}; |
| 270 |
opp08 { |
| 271 |
opp-hz = /bits/ 64 <2400000000>; |
| 272 |
opp-level = <8>; |
| 273 |
clock-latency-ns = <33000>; |
| 274 |
}; |
| 275 |
opp09 { |
| 276 |
opp-hz = /bits/ 64 <2568000000>; |
| 277 |
opp-level = <9>; |
| 278 |
clock-latency-ns = <34000>; |
| 279 |
}; |
| 280 |
opp10 { |
| 281 |
opp-hz = /bits/ 64 <2724000000>; |
| 282 |
opp-level = <10>; |
| 283 |
clock-latency-ns = <36000>; |
| 284 |
}; |
| 285 |
opp11 { |
| 286 |
opp-hz = /bits/ 64 <2868000000>; |
| 287 |
opp-level = <11>; |
| 288 |
clock-latency-ns = <41000>; |
| 289 |
}; |
| 290 |
opp12 { |
| 291 |
opp-hz = /bits/ 64 <2988000000>; |
| 292 |
opp-level = <12>; |
| 293 |
clock-latency-ns = <42000>; |
| 294 |
}; |
| 295 |
opp13 { |
| 296 |
opp-hz = /bits/ 64 <3096000000>; |
| 297 |
opp-level = <13>; |
| 298 |
clock-latency-ns = <44000>; |
| 299 |
}; |
| 300 |
opp14 { |
| 301 |
opp-hz = /bits/ 64 <3204000000>; |
| 302 |
opp-level = <14>; |
| 303 |
clock-latency-ns = <46000>; |
| 304 |
}; |
| 305 |
/* Not available until CPU deep sleep is implemented */ |
| 306 |
#if 0 |
| 307 |
opp15 { |
| 308 |
opp-hz = /bits/ 64 <3324000000>; |
| 309 |
opp-level = <15>; |
| 310 |
clock-latency-ns = <62000>; |
| 311 |
turbo-mode; |
| 312 |
}; |
| 313 |
opp16 { |
| 314 |
opp-hz = /bits/ 64 <3408000000>; |
| 315 |
opp-level = <16>; |
| 316 |
clock-latency-ns = <62000>; |
| 317 |
turbo-mode; |
| 318 |
}; |
| 319 |
opp17 { |
| 320 |
opp-hz = /bits/ 64 <3504000000>; |
| 321 |
opp-level = <17>; |
| 322 |
clock-latency-ns = <62000>; |
| 323 |
turbo-mode; |
| 324 |
}; |
| 325 |
#endif |
| 326 |
}; |
| 327 |
|
| 328 |
timer { |
| 329 |
compatible = "arm,armv8-timer"; |
| 330 |
interrupt-parent = <&aic>; |
| 331 |
interrupt-names = "phys", "virt", "hyp-phys", "hyp-virt"; |
| 332 |
interrupts = <AIC_FIQ AIC_TMR_GUEST_PHYS IRQ_TYPE_LEVEL_HIGH>, |
| 333 |
<AIC_FIQ AIC_TMR_GUEST_VIRT IRQ_TYPE_LEVEL_HIGH>, |
| 334 |
<AIC_FIQ AIC_TMR_HV_PHYS IRQ_TYPE_LEVEL_HIGH>, |
| 335 |
<AIC_FIQ AIC_TMR_HV_VIRT IRQ_TYPE_LEVEL_HIGH>; |
| 336 |
}; |
| 337 |
|
| 338 |
pmu-e { |
| 339 |
compatible = "apple,blizzard-pmu"; |
| 340 |
interrupt-parent = <&aic>; |
| 341 |
interrupts = <AIC_FIQ AIC_CPU_PMU_E IRQ_TYPE_LEVEL_HIGH>; |
| 342 |
}; |
| 343 |
|
| 344 |
pmu-p { |
| 345 |
compatible = "apple,avalanche-pmu"; |
| 346 |
interrupt-parent = <&aic>; |
| 347 |
interrupts = <AIC_FIQ AIC_CPU_PMU_P IRQ_TYPE_LEVEL_HIGH>; |
| 348 |
}; |
| 349 |
|
| 350 |
clkref: clock-ref { |
| 351 |
compatible = "fixed-clock"; |
| 352 |
#clock-cells = <0>; |
| 353 |
clock-frequency = <24000000>; |
| 354 |
clock-output-names = "clkref"; |
| 355 |
}; |
| 356 |
|
| 357 |
clk_200m: clock-200m { |
| 358 |
compatible = "fixed-clock"; |
| 359 |
#clock-cells = <0>; |
| 360 |
clock-frequency = <200000000>; |
| 361 |
clock-output-names = "clk_200m"; |
| 362 |
}; |
| 363 |
|
| 364 |
/* |
| 365 |
* This is a fabulated representation of the input clock |
| 366 |
* to NCO since we don't know the true clock tree. |
| 367 |
*/ |
| 368 |
nco_clkref: clock-ref-nco { |
| 369 |
compatible = "fixed-clock"; |
| 370 |
#clock-cells = <0>; |
| 371 |
clock-output-names = "nco_ref"; |
| 372 |
}; |
| 373 |
|
| 374 |
reserved-memory { |
| 375 |
#address-cells = <2>; |
| 376 |
#size-cells = <2>; |
| 377 |
ranges; |
| 378 |
|
| 379 |
gpu_globals: globals { |
| 380 |
status = "disabled"; |
| 381 |
}; |
| 382 |
|
| 383 |
gpu_hw_cal_a: hw-cal-a { |
| 384 |
status = "disabled"; |
| 385 |
}; |
| 386 |
|
| 387 |
gpu_hw_cal_b: hw-cal-b { |
| 388 |
status = "disabled"; |
| 389 |
}; |
| 390 |
|
| 391 |
uat_handoff: uat-handoff { |
| 392 |
status = "disabled"; |
| 393 |
}; |
| 394 |
|
| 395 |
uat_pagetables: uat-pagetables { |
| 396 |
status = "disabled"; |
| 397 |
}; |
| 398 |
|
| 399 |
uat_ttbs: uat-ttbs { |
| 400 |
status = "disabled"; |
| 401 |
}; |
| 402 |
}; |
| 403 |
|
| 404 |
soc { |
| 405 |
compatible = "simple-bus"; |
| 406 |
#address-cells = <2>; |
| 407 |
#size-cells = <2>; |
| 408 |
|
| 409 |
ranges; |
| 410 |
nonposted-mmio; |
| 411 |
|
| 412 |
gpu: gpu@206400000 { |
| 413 |
compatible = "apple,agx-g14g"; |
| 414 |
reg = <0x2 0x6400000 0 0x40000>, |
| 415 |
<0x2 0x4000000 0 0x1000000>; |
| 416 |
reg-names = "asc", "sgx"; |
| 417 |
mboxes = <&agx_mbox>; |
| 418 |
power-domains = <&ps_gfx>; |
| 419 |
memory-region = <&uat_ttbs>, <&uat_pagetables>, <&uat_handoff>, |
| 420 |
<&gpu_hw_cal_a>, <&gpu_hw_cal_b>, <&gpu_globals>; |
| 421 |
memory-region-names = "ttbs", "pagetables", "handoff", |
| 422 |
"hw-cal-a", "hw-cal-b", "globals"; |
| 423 |
|
| 424 |
apple,firmware-abi = <0 0 0>; |
| 425 |
}; |
| 426 |
|
| 427 |
agx_mbox: mbox@206408000 { |
| 428 |
compatible = "apple,t8103-asc-mailbox", "apple,asc-mailbox-v4"; |
| 429 |
reg = <0x2 0x6408000 0x0 0x4000>; |
| 430 |
interrupt-parent = <&aic>; |
| 431 |
interrupts = <AIC_IRQ 709 IRQ_TYPE_LEVEL_HIGH>, |
| 432 |
<AIC_IRQ 710 IRQ_TYPE_LEVEL_HIGH>, |
| 433 |
<AIC_IRQ 711 IRQ_TYPE_LEVEL_HIGH>, |
| 434 |
<AIC_IRQ 712 IRQ_TYPE_LEVEL_HIGH>; |
| 435 |
interrupt-names = "send-empty", "send-not-empty", |
| 436 |
"recv-empty", "recv-not-empty"; |
| 437 |
#mbox-cells = <0>; |
| 438 |
}; |
| 439 |
|
| 440 |
cpufreq_e: cpufreq@210e20000 { |
| 441 |
compatible = "apple,t8112-cluster-cpufreq", "apple,cluster-cpufreq"; |
| 442 |
reg = <0x2 0x10e20000 0 0x1000>; |
| 443 |
#performance-domain-cells = <0>; |
| 444 |
}; |
| 445 |
|
| 446 |
cpufreq_p: cpufreq@211e20000 { |
| 447 |
compatible = "apple,t8112-cluster-cpufreq", "apple,cluster-cpufreq"; |
| 448 |
reg = <0x2 0x11e20000 0 0x1000>; |
| 449 |
#performance-domain-cells = <0>; |
| 450 |
}; |
| 451 |
|
| 452 |
display_dfr: display-pipe@228200000 { |
| 453 |
compatible = "apple,t8112-display-pipe", "apple,h7-display-pipe"; |
| 454 |
reg = <0x2 0x28200000 0x0 0xc000>, |
| 455 |
<0x2 0x28400000 0x0 0x4000>; |
| 456 |
reg-names = "be", "fe"; |
| 457 |
power-domains = <&ps_dispdfr_fe>, <&ps_dispdfr_be>; |
| 458 |
interrupt-parent = <&aic>; |
| 459 |
interrupts = <AIC_IRQ 614 IRQ_TYPE_LEVEL_HIGH>, |
| 460 |
<AIC_IRQ 618 IRQ_TYPE_LEVEL_HIGH>; |
| 461 |
interrupt-names = "be", "fe"; |
| 462 |
iommus = <&displaydfr_dart 0>; |
| 463 |
status = "disabled"; |
| 464 |
|
| 465 |
port { |
| 466 |
dfr_adp_out_mipi: endpoint { |
| 467 |
remote-endpoint = <&dfr_mipi_in_adp>; |
| 468 |
}; |
| 469 |
}; |
| 470 |
}; |
| 471 |
|
| 472 |
displaydfr_dart: iommu@228304000 { |
| 473 |
compatible = "apple,t8110-dart"; |
| 474 |
reg = <0x2 0x28304000 0x0 0x4000>; |
| 475 |
interrupt-parent = <&aic>; |
| 476 |
interrupts = <AIC_IRQ 616 IRQ_TYPE_LEVEL_HIGH>; |
| 477 |
#iommu-cells = <1>; |
| 478 |
power-domains = <&ps_dispdfr_fe>; |
| 479 |
status = "disabled"; |
| 480 |
}; |
| 481 |
|
| 482 |
displaydfr_mipi: dsi@228600000 { |
| 483 |
compatible = "apple,t8112-display-pipe-mipi", "apple,h7-display-pipe-mipi"; |
| 484 |
reg = <0x2 0x28600000 0x0 0x100000>; |
| 485 |
power-domains = <&ps_mipi_dsi>; |
| 486 |
status = "disabled"; |
| 487 |
|
| 488 |
ports { |
| 489 |
#address-cells = <1>; |
| 490 |
#size-cells = <0>; |
| 491 |
|
| 492 |
dfr_mipi_in: port@0 { |
| 493 |
reg = <0>; |
| 494 |
#address-cells = <1>; |
| 495 |
#size-cells = <0>; |
| 496 |
|
| 497 |
dfr_mipi_in_adp: endpoint@0 { |
| 498 |
reg = <0>; |
| 499 |
remote-endpoint = <&dfr_adp_out_mipi>; |
| 500 |
}; |
| 501 |
}; |
| 502 |
|
| 503 |
dfr_mipi_out: port@1 { |
| 504 |
reg = <1>; |
| 505 |
#address-cells = <1>; |
| 506 |
#size-cells = <0>; |
| 507 |
}; |
| 508 |
}; |
| 509 |
}; |
| 510 |
|
| 511 |
sio_dart: iommu@235004000 { |
| 512 |
compatible = "apple,t8110-dart"; |
| 513 |
reg = <0x2 0x35004000 0x0 0x4000>; |
| 514 |
interrupt-parent = <&aic>; |
| 515 |
interrupts = <AIC_IRQ 769 IRQ_TYPE_LEVEL_HIGH>; |
| 516 |
#iommu-cells = <1>; |
| 517 |
power-domains = <&ps_sio_cpu>; |
| 518 |
}; |
| 519 |
|
| 520 |
i2c0: i2c@235010000 { |
| 521 |
compatible = "apple,t8112-i2c", "apple,i2c"; |
| 522 |
reg = <0x2 0x35010000 0x0 0x4000>; |
| 523 |
clocks = <&clkref>; |
| 524 |
interrupt-parent = <&aic>; |
| 525 |
interrupts = <AIC_IRQ 761 IRQ_TYPE_LEVEL_HIGH>; |
| 526 |
pinctrl-0 = <&i2c0_pins>; |
| 527 |
pinctrl-names = "default"; |
| 528 |
#address-cells = <0x1>; |
| 529 |
#size-cells = <0x0>; |
| 530 |
power-domains = <&ps_i2c0>; |
| 531 |
status = "disabled"; |
| 532 |
}; |
| 533 |
|
| 534 |
i2c1: i2c@235014000 { |
| 535 |
compatible = "apple,t8112-i2c", "apple,i2c"; |
| 536 |
reg = <0x2 0x35014000 0x0 0x4000>; |
| 537 |
clocks = <&clkref>; |
| 538 |
interrupt-parent = <&aic>; |
| 539 |
interrupts = <AIC_IRQ 762 IRQ_TYPE_LEVEL_HIGH>; |
| 540 |
pinctrl-0 = <&i2c1_pins>; |
| 541 |
pinctrl-names = "default"; |
| 542 |
#address-cells = <0x1>; |
| 543 |
#size-cells = <0x0>; |
| 544 |
power-domains = <&ps_i2c1>; |
| 545 |
status = "disabled"; |
| 546 |
}; |
| 547 |
|
| 548 |
i2c2: i2c@235018000 { |
| 549 |
compatible = "apple,t8112-i2c", "apple,i2c"; |
| 550 |
reg = <0x2 0x35018000 0x0 0x4000>; |
| 551 |
clocks = <&clkref>; |
| 552 |
interrupt-parent = <&aic>; |
| 553 |
interrupts = <AIC_IRQ 763 IRQ_TYPE_LEVEL_HIGH>; |
| 554 |
pinctrl-0 = <&i2c2_pins>; |
| 555 |
pinctrl-names = "default"; |
| 556 |
#address-cells = <0x1>; |
| 557 |
#size-cells = <0x0>; |
| 558 |
power-domains = <&ps_i2c2>; |
| 559 |
status = "disabled"; |
| 560 |
}; |
| 561 |
|
| 562 |
i2c3: i2c@23501c000 { |
| 563 |
compatible = "apple,t8112-i2c", "apple,i2c"; |
| 564 |
reg = <0x2 0x3501c000 0x0 0x4000>; |
| 565 |
clocks = <&clkref>; |
| 566 |
interrupt-parent = <&aic>; |
| 567 |
interrupts = <AIC_IRQ 764 IRQ_TYPE_LEVEL_HIGH>; |
| 568 |
pinctrl-0 = <&i2c3_pins>; |
| 569 |
pinctrl-names = "default"; |
| 570 |
#address-cells = <0x1>; |
| 571 |
#size-cells = <0x0>; |
| 572 |
power-domains = <&ps_i2c3>; |
| 573 |
status = "disabled"; |
| 574 |
}; |
| 575 |
|
| 576 |
i2c4: i2c@235020000 { |
| 577 |
compatible = "apple,t8112-i2c", "apple,i2c"; |
| 578 |
reg = <0x2 0x35020000 0x0 0x4000>; |
| 579 |
clocks = <&clkref>; |
| 580 |
interrupt-parent = <&aic>; |
| 581 |
interrupts = <AIC_IRQ 765 IRQ_TYPE_LEVEL_HIGH>; |
| 582 |
pinctrl-0 = <&i2c4_pins>; |
| 583 |
pinctrl-names = "default"; |
| 584 |
#address-cells = <0x1>; |
| 585 |
#size-cells = <0x0>; |
| 586 |
power-domains = <&ps_i2c4>; |
| 587 |
status = "disabled"; |
| 588 |
}; |
| 589 |
|
| 590 |
fpwm1: pwm@235044000 { |
| 591 |
compatible = "apple,t8112-fpwm", "apple,s5l-fpwm"; |
| 592 |
reg = <0x2 0x35044000 0x0 0x4000>; |
| 593 |
power-domains = <&ps_fpwm1>; |
| 594 |
clocks = <&clkref>; |
| 595 |
#pwm-cells = <2>; |
| 596 |
status = "disabled"; |
| 597 |
}; |
| 598 |
|
| 599 |
spi1: spi@235104000 { |
| 600 |
compatible = "apple,t8112-spi", "apple,spi"; |
| 601 |
reg = <0x2 0x35104000 0x0 0x4000>; |
| 602 |
interrupt-parent = <&aic>; |
| 603 |
interrupts = <AIC_IRQ 749 IRQ_TYPE_LEVEL_HIGH>; |
| 604 |
clocks = <&clk_200m>; |
| 605 |
pinctrl-0 = <&spi1_pins>; |
| 606 |
pinctrl-names = "default"; |
| 607 |
power-domains = <&ps_spi1>; |
| 608 |
#address-cells = <1>; |
| 609 |
#size-cells = <0>; |
| 610 |
status = "disabled"; |
| 611 |
}; |
| 612 |
|
| 613 |
spi3: spi@23510c000 { |
| 614 |
compatible = "apple,t8112-spi", "apple,spi"; |
| 615 |
reg = <0x2 0x3510c000 0x0 0x4000>; |
| 616 |
interrupt-parent = <&aic>; |
| 617 |
interrupts = <AIC_IRQ 751 IRQ_TYPE_LEVEL_HIGH>; |
| 618 |
clocks = <&clkref>; |
| 619 |
pinctrl-0 = <&spi3_pins>; |
| 620 |
pinctrl-names = "default"; |
| 621 |
power-domains = <&ps_spi3>; |
| 622 |
#address-cells = <1>; |
| 623 |
#size-cells = <0>; |
| 624 |
status = "disabled"; /* only used in J493 */ |
| 625 |
}; |
| 626 |
|
| 627 |
serial0: serial@235200000 { |
| 628 |
compatible = "apple,s5l-uart"; |
| 629 |
reg = <0x2 0x35200000 0x0 0x1000>; |
| 630 |
reg-io-width = <4>; |
| 631 |
interrupt-parent = <&aic>; |
| 632 |
interrupts = <AIC_IRQ 739 IRQ_TYPE_LEVEL_HIGH>; |
| 633 |
/* |
| 634 |
* TODO: figure out the clocking properly, there may |
| 635 |
* be a third selectable clock. |
| 636 |
*/ |
| 637 |
clocks = <&clkref>, <&clkref>; |
| 638 |
clock-names = "uart", "clk_uart_baud0"; |
| 639 |
power-domains = <&ps_uart0>; |
| 640 |
status = "disabled"; |
| 641 |
}; |
| 642 |
|
| 643 |
serial2: serial@235208000 { |
| 644 |
compatible = "apple,s5l-uart"; |
| 645 |
reg = <0x2 0x35208000 0x0 0x1000>; |
| 646 |
reg-io-width = <4>; |
| 647 |
interrupt-parent = <&aic>; |
| 648 |
interrupts = <AIC_IRQ 741 IRQ_TYPE_LEVEL_HIGH>; |
| 649 |
clocks = <&clkref>, <&clkref>; |
| 650 |
clock-names = "uart", "clk_uart_baud0"; |
| 651 |
power-domains = <&ps_uart2>; |
| 652 |
status = "disabled"; |
| 653 |
}; |
| 654 |
|
| 655 |
admac: dma-controller@238200000 { |
| 656 |
compatible = "apple,t8112-admac", "apple,admac"; |
| 657 |
reg = <0x2 0x38200000 0x0 0x34000>; |
| 658 |
dma-channels = <24>; |
| 659 |
interrupts-extended = <0>, |
| 660 |
<&aic AIC_IRQ 760 IRQ_TYPE_LEVEL_HIGH>, |
| 661 |
<0>, |
| 662 |
<0>; |
| 663 |
#dma-cells = <1>; |
| 664 |
iommus = <&sio_dart 2>; |
| 665 |
power-domains = <&ps_sio_adma>; |
| 666 |
resets = <&ps_audio_p>; |
| 667 |
}; |
| 668 |
|
| 669 |
mca: i2s@238400000 { |
| 670 |
compatible = "apple,t8112-mca", "apple,mca"; |
| 671 |
reg = <0x2 0x38400000 0x0 0x18000>, |
| 672 |
<0x2 0x38300000 0x0 0x30000>; |
| 673 |
|
| 674 |
interrupt-parent = <&aic>; |
| 675 |
interrupts = <AIC_IRQ 753 IRQ_TYPE_LEVEL_HIGH>, |
| 676 |
<AIC_IRQ 754 IRQ_TYPE_LEVEL_HIGH>, |
| 677 |
<AIC_IRQ 755 IRQ_TYPE_LEVEL_HIGH>, |
| 678 |
<AIC_IRQ 756 IRQ_TYPE_LEVEL_HIGH>, |
| 679 |
<AIC_IRQ 757 IRQ_TYPE_LEVEL_HIGH>, |
| 680 |
<AIC_IRQ 758 IRQ_TYPE_LEVEL_HIGH>; |
| 681 |
|
| 682 |
resets = <&ps_audio_p>; |
| 683 |
clocks = <&nco 0>, <&nco 1>, <&nco 2>, |
| 684 |
<&nco 3>, <&nco 4>, <&nco 4>; |
| 685 |
power-domains = <&ps_audio_p>, <&ps_mca0>, <&ps_mca1>, |
| 686 |
<&ps_mca2>, <&ps_mca3>, <&ps_mca4>, <&ps_mca5>; |
| 687 |
dmas = <&admac 0>, <&admac 1>, <&admac 2>, <&admac 3>, |
| 688 |
<&admac 4>, <&admac 5>, <&admac 6>, <&admac 7>, |
| 689 |
<&admac 8>, <&admac 9>, <&admac 10>, <&admac 11>, |
| 690 |
<&admac 12>, <&admac 13>, <&admac 14>, <&admac 15>, |
| 691 |
<&admac 16>, <&admac 17>, <&admac 18>, <&admac 19>, |
| 692 |
<&admac 20>, <&admac 21>, <&admac 22>, <&admac 23>; |
| 693 |
dma-names = "tx0a", "rx0a", "tx0b", "rx0b", |
| 694 |
"tx1a", "rx1a", "tx1b", "rx1b", |
| 695 |
"tx2a", "rx2a", "tx2b", "rx2b", |
| 696 |
"tx3a", "rx3a", "tx3b", "rx3b", |
| 697 |
"tx4a", "rx4a", "tx4b", "rx4b", |
| 698 |
"tx5a", "rx5a", "tx5b", "rx5b"; |
| 699 |
|
| 700 |
#sound-dai-cells = <1>; |
| 701 |
}; |
| 702 |
|
| 703 |
nco: clock-controller@23b044000 { |
| 704 |
compatible = "apple,t8112-nco", "apple,nco"; |
| 705 |
reg = <0x2 0x3b044000 0x0 0x14000>; |
| 706 |
clocks = <&nco_clkref>; |
| 707 |
#clock-cells = <1>; |
| 708 |
}; |
| 709 |
|
| 710 |
aic: interrupt-controller@23b0c0000 { |
| 711 |
compatible = "apple,t8112-aic", "apple,aic2"; |
| 712 |
#interrupt-cells = <3>; |
| 713 |
interrupt-controller; |
| 714 |
reg = <0x2 0x3b0c0000 0x0 0x8000>, |
| 715 |
<0x2 0x3b0c8000 0x0 0x4>; |
| 716 |
reg-names = "core", "event"; |
| 717 |
power-domains = <&ps_aic>; |
| 718 |
|
| 719 |
affinities { |
| 720 |
e-core-pmu-affinity { |
| 721 |
apple,fiq-index = <AIC_CPU_PMU_E>; |
| 722 |
cpus = <&cpu_e0 &cpu_e1 &cpu_e2 &cpu_e3>; |
| 723 |
}; |
| 724 |
|
| 725 |
p-core-pmu-affinity { |
| 726 |
apple,fiq-index = <AIC_CPU_PMU_P>; |
| 727 |
cpus = <&cpu_p0 &cpu_p1 &cpu_p2 &cpu_p3>; |
| 728 |
}; |
| 729 |
}; |
| 730 |
}; |
| 731 |
|
| 732 |
pmgr: power-management@23b700000 { |
| 733 |
compatible = "apple,t8112-pmgr", "apple,pmgr", "syscon", "simple-mfd"; |
| 734 |
#address-cells = <1>; |
| 735 |
#size-cells = <1>; |
| 736 |
reg = <0x2 0x3b700000 0 0x14000>; |
| 737 |
/* child nodes are added in t8103-pmgr.dtsi */ |
| 738 |
}; |
| 739 |
|
| 740 |
pinctrl_ap: pinctrl@23c100000 { |
| 741 |
compatible = "apple,t8112-pinctrl", "apple,pinctrl"; |
| 742 |
reg = <0x2 0x3c100000 0x0 0x100000>; |
| 743 |
power-domains = <&ps_gpio>; |
| 744 |
|
| 745 |
gpio-controller; |
| 746 |
#gpio-cells = <2>; |
| 747 |
gpio-ranges = <&pinctrl_ap 0 0 213>; |
| 748 |
apple,npins = <213>; |
| 749 |
|
| 750 |
interrupt-controller; |
| 751 |
#interrupt-cells = <2>; |
| 752 |
interrupt-parent = <&aic>; |
| 753 |
interrupts = <AIC_IRQ 199 IRQ_TYPE_LEVEL_HIGH>, |
| 754 |
<AIC_IRQ 200 IRQ_TYPE_LEVEL_HIGH>, |
| 755 |
<AIC_IRQ 201 IRQ_TYPE_LEVEL_HIGH>, |
| 756 |
<AIC_IRQ 202 IRQ_TYPE_LEVEL_HIGH>, |
| 757 |
<AIC_IRQ 203 IRQ_TYPE_LEVEL_HIGH>, |
| 758 |
<AIC_IRQ 204 IRQ_TYPE_LEVEL_HIGH>, |
| 759 |
<AIC_IRQ 205 IRQ_TYPE_LEVEL_HIGH>; |
| 760 |
|
| 761 |
i2c0_pins: i2c0-pins { |
| 762 |
pinmux = <APPLE_PINMUX(111, 1)>, |
| 763 |
<APPLE_PINMUX(110, 1)>; |
| 764 |
}; |
| 765 |
|
| 766 |
i2c1_pins: i2c1-pins { |
| 767 |
pinmux = <APPLE_PINMUX(113, 1)>, |
| 768 |
<APPLE_PINMUX(112, 1)>; |
| 769 |
}; |
| 770 |
|
| 771 |
i2c2_pins: i2c2-pins { |
| 772 |
pinmux = <APPLE_PINMUX(87, 1)>, |
| 773 |
<APPLE_PINMUX(86, 1)>; |
| 774 |
}; |
| 775 |
|
| 776 |
i2c3_pins: i2c3-pins { |
| 777 |
pinmux = <APPLE_PINMUX(54, 1)>, |
| 778 |
<APPLE_PINMUX(53, 1)>; |
| 779 |
}; |
| 780 |
|
| 781 |
i2c4_pins: i2c4-pins { |
| 782 |
pinmux = <APPLE_PINMUX(131, 1)>, |
| 783 |
<APPLE_PINMUX(130, 1)>; |
| 784 |
}; |
| 785 |
|
| 786 |
spi1_pins: spi1-pins { |
| 787 |
pinmux = <APPLE_PINMUX(46, 1)>, |
| 788 |
<APPLE_PINMUX(47, 1)>, |
| 789 |
<APPLE_PINMUX(48, 1)>, |
| 790 |
<APPLE_PINMUX(49, 1)>; |
| 791 |
}; |
| 792 |
|
| 793 |
spi3_pins: spi3-pins { |
| 794 |
pinmux = <APPLE_PINMUX(93, 1)>, |
| 795 |
<APPLE_PINMUX(94, 1)>, |
| 796 |
<APPLE_PINMUX(95, 1)>, |
| 797 |
<APPLE_PINMUX(96, 1)>; |
| 798 |
}; |
| 799 |
|
| 800 |
pcie_pins: pcie-pins { |
| 801 |
pinmux = <APPLE_PINMUX(162, 1)>, |
| 802 |
<APPLE_PINMUX(163, 1)>, |
| 803 |
<APPLE_PINMUX(164, 1)>; |
| 804 |
// TODO: 1 more CLKREQs |
| 805 |
}; |
| 806 |
}; |
| 807 |
|
| 808 |
pinctrl_nub: pinctrl@23d1f0000 { |
| 809 |
compatible = "apple,t8112-pinctrl", "apple,pinctrl"; |
| 810 |
reg = <0x2 0x3d1f0000 0x0 0x4000>; |
| 811 |
power-domains = <&ps_nub_gpio>; |
| 812 |
|
| 813 |
gpio-controller; |
| 814 |
#gpio-cells = <2>; |
| 815 |
gpio-ranges = <&pinctrl_nub 0 0 24>; |
| 816 |
apple,npins = <24>; |
| 817 |
|
| 818 |
interrupt-controller; |
| 819 |
#interrupt-cells = <2>; |
| 820 |
interrupt-parent = <&aic>; |
| 821 |
interrupts = <AIC_IRQ 371 IRQ_TYPE_LEVEL_HIGH>, |
| 822 |
<AIC_IRQ 372 IRQ_TYPE_LEVEL_HIGH>, |
| 823 |
<AIC_IRQ 373 IRQ_TYPE_LEVEL_HIGH>, |
| 824 |
<AIC_IRQ 374 IRQ_TYPE_LEVEL_HIGH>, |
| 825 |
<AIC_IRQ 375 IRQ_TYPE_LEVEL_HIGH>, |
| 826 |
<AIC_IRQ 376 IRQ_TYPE_LEVEL_HIGH>, |
| 827 |
<AIC_IRQ 377 IRQ_TYPE_LEVEL_HIGH>; |
| 828 |
}; |
| 829 |
|
| 830 |
pmgr_mini: power-management@23d280000 { |
| 831 |
compatible = "apple,t8112-pmgr", "apple,pmgr", "syscon", "simple-mfd"; |
| 832 |
#address-cells = <1>; |
| 833 |
#size-cells = <1>; |
| 834 |
reg = <0x2 0x3d280000 0 0x4000>; |
| 835 |
/* child nodes are added in t8103-pmgr.dtsi */ |
| 836 |
}; |
| 837 |
|
| 838 |
wdt: watchdog@23d2b0000 { |
| 839 |
compatible = "apple,t8112-wdt", "apple,wdt"; |
| 840 |
reg = <0x2 0x3d2b0000 0x0 0x4000>; |
| 841 |
clocks = <&clkref>; |
| 842 |
interrupt-parent = <&aic>; |
| 843 |
interrupts = <AIC_IRQ 379 IRQ_TYPE_LEVEL_HIGH>; |
| 844 |
}; |
| 845 |
|
| 846 |
nub_spmi: spmi@23d714000 { |
| 847 |
compatible = "apple,t8112-spmi", "apple,spmi"; |
| 848 |
reg = <0x2 0x3d714000 0x0 0x100>; |
| 849 |
#address-cells = <2>; |
| 850 |
#size-cells = <0>; |
| 851 |
|
| 852 |
pmic1: pmic@e { |
| 853 |
compatible = "apple,stowe-pmic", "apple,spmi-nvmem"; |
| 854 |
reg = <0xe SPMI_USID>; |
| 855 |
|
| 856 |
nvmem-layout { |
| 857 |
compatible = "fixed-layout"; |
| 858 |
#address-cells = <1>; |
| 859 |
#size-cells = <1>; |
| 860 |
|
| 861 |
fault_shadow: fault-shadow@867b { |
| 862 |
reg = <0x867b 0x10>; |
| 863 |
}; |
| 864 |
|
| 865 |
socd: socd@8b00 { |
| 866 |
reg = <0x8b00 0x400>; |
| 867 |
}; |
| 868 |
|
| 869 |
boot_stage: boot-stage@f701 { |
| 870 |
reg = <0xf701 0x1>; |
| 871 |
}; |
| 872 |
|
| 873 |
boot_error_count: boot-error-count@f702,0 { |
| 874 |
reg = <0xf702 0x1>; |
| 875 |
bits = <0 4>; |
| 876 |
}; |
| 877 |
|
| 878 |
panic_count: panic-count@f702,4 { |
| 879 |
reg = <0xf702 0x1>; |
| 880 |
bits = <4 4>; |
| 881 |
}; |
| 882 |
|
| 883 |
boot_error_stage: boot-error-stage@f703 { |
| 884 |
reg = <0xf703 0x1>; |
| 885 |
}; |
| 886 |
|
| 887 |
shutdown_flag: shutdown-flag@f70f,3 { |
| 888 |
reg = <0xf70f 0x1>; |
| 889 |
bits = <3 1>; |
| 890 |
}; |
| 891 |
|
| 892 |
pm_setting: pm-setting@f801 { |
| 893 |
reg = <0xf801 0x1>; |
| 894 |
}; |
| 895 |
|
| 896 |
rtc_offset: rtc-offset@f900 { |
| 897 |
reg = <0xf900 0x6>; |
| 898 |
}; |
| 899 |
}; |
| 900 |
}; |
| 901 |
}; |
| 902 |
|
| 903 |
smc: smc@23e400000 { |
| 904 |
compatible = "apple,t8112-smc", "apple,smc"; |
| 905 |
reg = <0x2 0x3e400000 0x0 0x4000>, |
| 906 |
<0x2 0x3fe00000 0x0 0x100000>; |
| 907 |
reg-names = "smc", "sram"; |
| 908 |
mboxes = <&smc_mbox>; |
| 909 |
|
| 910 |
smc_gpio: gpio { |
| 911 |
compatible = "apple,smc-gpio"; |
| 912 |
gpio-controller; |
| 913 |
#gpio-cells = <2>; |
| 914 |
}; |
| 915 |
|
| 916 |
smc_reboot: reboot { |
| 917 |
compatible = "apple,smc-reboot"; |
| 918 |
nvmem-cells = <&shutdown_flag>, <&boot_stage>, |
| 919 |
<&boot_error_count>, <&panic_count>; |
| 920 |
nvmem-cell-names = "shutdown_flag", "boot_stage", |
| 921 |
"boot_error_count", "panic_count"; |
| 922 |
}; |
| 923 |
|
| 924 |
rtc { |
| 925 |
compatible = "apple,smc-rtc"; |
| 926 |
nvmem-cells = <&rtc_offset>; |
| 927 |
nvmem-cell-names = "rtc_offset"; |
| 928 |
}; |
| 929 |
}; |
| 930 |
|
| 931 |
smc_mbox: mbox@23e408000 { |
| 932 |
compatible = "apple,t8112-asc-mailbox", "apple,asc-mailbox-v4"; |
| 933 |
reg = <0x2 0x3e408000 0x0 0x4000>; |
| 934 |
interrupt-parent = <&aic>; |
| 935 |
interrupts = <AIC_IRQ 499 IRQ_TYPE_LEVEL_HIGH>, |
| 936 |
<AIC_IRQ 500 IRQ_TYPE_LEVEL_HIGH>, |
| 937 |
<AIC_IRQ 501 IRQ_TYPE_LEVEL_HIGH>, |
| 938 |
<AIC_IRQ 502 IRQ_TYPE_LEVEL_HIGH>; |
| 939 |
interrupt-names = "send-empty", "send-not-empty", |
| 940 |
"recv-empty", "recv-not-empty"; |
| 941 |
#mbox-cells = <0>; |
| 942 |
}; |
| 943 |
|
| 944 |
pinctrl_smc: pinctrl@23e820000 { |
| 945 |
compatible = "apple,t8112-pinctrl", "apple,pinctrl"; |
| 946 |
reg = <0x2 0x3e820000 0x0 0x4000>; |
| 947 |
|
| 948 |
gpio-controller; |
| 949 |
#gpio-cells = <2>; |
| 950 |
gpio-ranges = <&pinctrl_smc 0 0 18>; |
| 951 |
apple,npins = <18>; |
| 952 |
|
| 953 |
interrupt-controller; |
| 954 |
#interrupt-cells = <2>; |
| 955 |
interrupt-parent = <&aic>; |
| 956 |
interrupts = <AIC_IRQ 490 IRQ_TYPE_LEVEL_HIGH>, |
| 957 |
<AIC_IRQ 491 IRQ_TYPE_LEVEL_HIGH>, |
| 958 |
<AIC_IRQ 492 IRQ_TYPE_LEVEL_HIGH>, |
| 959 |
<AIC_IRQ 493 IRQ_TYPE_LEVEL_HIGH>, |
| 960 |
<AIC_IRQ 494 IRQ_TYPE_LEVEL_HIGH>, |
| 961 |
<AIC_IRQ 495 IRQ_TYPE_LEVEL_HIGH>, |
| 962 |
<AIC_IRQ 496 IRQ_TYPE_LEVEL_HIGH>; |
| 963 |
}; |
| 964 |
|
| 965 |
pinctrl_aop: pinctrl@24a820000 { |
| 966 |
compatible = "apple,t8112-pinctrl", "apple,pinctrl"; |
| 967 |
reg = <0x2 0x4a820000 0x0 0x4000>; |
| 968 |
|
| 969 |
gpio-controller; |
| 970 |
#gpio-cells = <2>; |
| 971 |
gpio-ranges = <&pinctrl_aop 0 0 54>; |
| 972 |
apple,npins = <54>; |
| 973 |
|
| 974 |
interrupt-controller; |
| 975 |
#interrupt-cells = <2>; |
| 976 |
interrupt-parent = <&aic>; |
| 977 |
interrupts = <AIC_IRQ 301 IRQ_TYPE_LEVEL_HIGH>, |
| 978 |
<AIC_IRQ 302 IRQ_TYPE_LEVEL_HIGH>, |
| 979 |
<AIC_IRQ 303 IRQ_TYPE_LEVEL_HIGH>, |
| 980 |
<AIC_IRQ 304 IRQ_TYPE_LEVEL_HIGH>, |
| 981 |
<AIC_IRQ 305 IRQ_TYPE_LEVEL_HIGH>, |
| 982 |
<AIC_IRQ 306 IRQ_TYPE_LEVEL_HIGH>, |
| 983 |
<AIC_IRQ 307 IRQ_TYPE_LEVEL_HIGH>; |
| 984 |
}; |
| 985 |
|
| 986 |
ans_mbox: mbox@277408000 { |
| 987 |
compatible = "apple,t8112-asc-mailbox", "apple,asc-mailbox-v4"; |
| 988 |
reg = <0x2 0x77408000 0x0 0x4000>; |
| 989 |
interrupt-parent = <&aic>; |
| 990 |
interrupts = <AIC_IRQ 717 IRQ_TYPE_LEVEL_HIGH>, |
| 991 |
<AIC_IRQ 718 IRQ_TYPE_LEVEL_HIGH>, |
| 992 |
<AIC_IRQ 719 IRQ_TYPE_LEVEL_HIGH>, |
| 993 |
<AIC_IRQ 720 IRQ_TYPE_LEVEL_HIGH>; |
| 994 |
interrupt-names = "send-empty", "send-not-empty", |
| 995 |
"recv-empty", "recv-not-empty"; |
| 996 |
#mbox-cells = <0>; |
| 997 |
power-domains = <&ps_ans>; |
| 998 |
}; |
| 999 |
|
| 1000 |
sart: sart@27bc50000 { |
| 1001 |
compatible = "apple,t8112-sart", "apple,t6000-sart"; |
| 1002 |
reg = <0x2 0x7bc50000 0x0 0x10000>; |
| 1003 |
power-domains = <&ps_ans>; |
| 1004 |
}; |
| 1005 |
|
| 1006 |
nvme@27bcc0000 { |
| 1007 |
compatible = "apple,t8112-nvme-ans2", "apple,nvme-ans2"; |
| 1008 |
reg = <0x2 0x7bcc0000 0x0 0x40000>, |
| 1009 |
<0x2 0x77400000 0x0 0x4000>; |
| 1010 |
reg-names = "nvme", "ans"; |
| 1011 |
interrupt-parent = <&aic>; |
| 1012 |
interrupts = <AIC_IRQ 724 IRQ_TYPE_LEVEL_HIGH>; |
| 1013 |
mboxes = <&ans_mbox>; |
| 1014 |
apple,sart = <&sart>; |
| 1015 |
power-domains = <&ps_ans>, <&ps_apcie_st>; |
| 1016 |
power-domain-names = "ans", "apcie0"; |
| 1017 |
resets = <&ps_ans>; |
| 1018 |
}; |
| 1019 |
|
| 1020 |
dwc3_0: usb@382280000 { |
| 1021 |
compatible = "apple,t8112-dwc3", "apple,t8103-dwc3"; |
| 1022 |
reg = <0x3 0x82280000 0x0 0xcd00>, <0x3 0x8228cd00 0x0 0x3200>; |
| 1023 |
reg-names = "dwc3-core", "dwc3-apple"; |
| 1024 |
interrupt-parent = <&aic>; |
| 1025 |
interrupts = <AIC_IRQ 1031 IRQ_TYPE_LEVEL_HIGH>; |
| 1026 |
dr_mode = "otg"; |
| 1027 |
usb-role-switch; |
| 1028 |
role-switch-default-mode = "host"; |
| 1029 |
iommus = <&dwc3_0_dart_0 0>, <&dwc3_0_dart_1 1>; |
| 1030 |
power-domains = <&ps_atc0_usb>; |
| 1031 |
resets = <&atcphy0>; |
| 1032 |
phys = <&atcphy0 PHY_TYPE_USB2>, <&atcphy0 PHY_TYPE_USB3>; |
| 1033 |
phy-names = "usb2-phy", "usb3-phy"; |
| 1034 |
}; |
| 1035 |
|
| 1036 |
dwc3_0_dart_0: iommu@382f00000 { |
| 1037 |
compatible = "apple,t8110-dart"; |
| 1038 |
reg = <0x3 0x82f00000 0x0 0x4000>; |
| 1039 |
interrupt-parent = <&aic>; |
| 1040 |
interrupts = <AIC_IRQ 1035 IRQ_TYPE_LEVEL_HIGH>; |
| 1041 |
#iommu-cells = <1>; |
| 1042 |
power-domains = <&ps_atc0_usb>; |
| 1043 |
}; |
| 1044 |
|
| 1045 |
dwc3_0_dart_1: iommu@382f80000 { |
| 1046 |
compatible = "apple,t8110-dart"; |
| 1047 |
reg = <0x3 0x82f80000 0x0 0x4000>; |
| 1048 |
interrupt-parent = <&aic>; |
| 1049 |
interrupts = <AIC_IRQ 1035 IRQ_TYPE_LEVEL_HIGH>; |
| 1050 |
#iommu-cells = <1>; |
| 1051 |
power-domains = <&ps_atc0_usb>; |
| 1052 |
}; |
| 1053 |
|
| 1054 |
atcphy0: phy@383000000 { |
| 1055 |
compatible = "apple,t8112-atcphy", "apple,t8103-atcphy"; |
| 1056 |
reg = <0x3 0x83000000 0x0 0x4c000>, |
| 1057 |
<0x3 0x83050000 0x0 0x8000>, |
| 1058 |
<0x3 0x80000000 0x0 0x4000>, |
| 1059 |
<0x3 0x82a90000 0x0 0x4000>, |
| 1060 |
<0x3 0x82a84000 0x0 0x4000>; |
| 1061 |
reg-names = "core", "lpdptx", "axi2af", "usb2phy", |
| 1062 |
"pipehandler"; |
| 1063 |
|
| 1064 |
#phy-cells = <1>; |
| 1065 |
#reset-cells = <0>; |
| 1066 |
|
| 1067 |
orientation-switch; |
| 1068 |
mode-switch; |
| 1069 |
power-domains = <&ps_atc0_usb>; |
| 1070 |
}; |
| 1071 |
|
| 1072 |
dwc3_1: usb@502280000 { |
| 1073 |
compatible = "apple,t8112-dwc3", "apple,t8103-dwc3"; |
| 1074 |
reg = <0x5 0x02280000 0x0 0xcd00>, <0x5 0x0228cd00 0x0 0x3200>; |
| 1075 |
reg-names = "dwc3-core", "dwc3-apple"; |
| 1076 |
interrupt-parent = <&aic>; |
| 1077 |
interrupts = <AIC_IRQ 1112 IRQ_TYPE_LEVEL_HIGH>; |
| 1078 |
dr_mode = "otg"; |
| 1079 |
usb-role-switch; |
| 1080 |
role-switch-default-mode = "host"; |
| 1081 |
iommus = <&dwc3_1_dart_0 0>, <&dwc3_1_dart_1 1>; |
| 1082 |
power-domains = <&ps_atc1_usb>; |
| 1083 |
resets = <&atcphy1>; |
| 1084 |
phys = <&atcphy1 PHY_TYPE_USB2>, <&atcphy1 PHY_TYPE_USB3>; |
| 1085 |
phy-names = "usb2-phy", "usb3-phy"; |
| 1086 |
}; |
| 1087 |
|
| 1088 |
dwc3_1_dart_0: iommu@502f00000 { |
| 1089 |
compatible = "apple,t8110-dart"; |
| 1090 |
reg = <0x5 0x02f00000 0x0 0x4000>; |
| 1091 |
interrupt-parent = <&aic>; |
| 1092 |
interrupts = <AIC_IRQ 1116 IRQ_TYPE_LEVEL_HIGH>; |
| 1093 |
#iommu-cells = <1>; |
| 1094 |
power-domains = <&ps_atc1_usb>; |
| 1095 |
}; |
| 1096 |
|
| 1097 |
dwc3_1_dart_1: iommu@502f80000 { |
| 1098 |
compatible = "apple,t8110-dart"; |
| 1099 |
reg = <0x5 0x02f80000 0x0 0x4000>; |
| 1100 |
interrupt-parent = <&aic>; |
| 1101 |
interrupts = <AIC_IRQ 1116 IRQ_TYPE_LEVEL_HIGH>; |
| 1102 |
#iommu-cells = <1>; |
| 1103 |
power-domains = <&ps_atc1_usb>; |
| 1104 |
}; |
| 1105 |
|
| 1106 |
atcphy1: phy@503000000 { |
| 1107 |
compatible = "apple,t8112-atcphy", "apple,t8103-atcphy"; |
| 1108 |
reg = <0x5 0x03000000 0x0 0x4c000>, |
| 1109 |
<0x5 0x03050000 0x0 0x8000>, |
| 1110 |
<0x5 0x0 0x0 0x4000>, |
| 1111 |
<0x5 0x02a90000 0x0 0x4000>, |
| 1112 |
<0x5 0x02a84000 0x0 0x4000>; |
| 1113 |
reg-names = "core", "lpdptx", "axi2af", "usb2phy", |
| 1114 |
"pipehandler"; |
| 1115 |
|
| 1116 |
#phy-cells = <1>; |
| 1117 |
#reset-cells = <0>; |
| 1118 |
|
| 1119 |
orientation-switch; |
| 1120 |
mode-switch; |
| 1121 |
power-domains = <&ps_atc1_usb>; |
| 1122 |
}; |
| 1123 |
|
| 1124 |
pcie0_dart: iommu@681008000 { |
| 1125 |
compatible = "apple,t8110-dart"; |
| 1126 |
reg = <0x6 0x81008000 0x0 0x4000>; |
| 1127 |
#iommu-cells = <1>; |
| 1128 |
interrupt-parent = <&aic>; |
| 1129 |
interrupts = <AIC_IRQ 782 IRQ_TYPE_LEVEL_HIGH>; |
| 1130 |
power-domains = <&ps_apcie_gp>; |
| 1131 |
}; |
| 1132 |
|
| 1133 |
pcie1_dart: iommu@682008000 { |
| 1134 |
compatible = "apple,t8110-dart"; |
| 1135 |
reg = <0x6 0x82008000 0x0 0x4000>; |
| 1136 |
#iommu-cells = <1>; |
| 1137 |
interrupt-parent = <&aic>; |
| 1138 |
interrupts = <AIC_IRQ 785 IRQ_TYPE_LEVEL_HIGH>; |
| 1139 |
power-domains = <&ps_apcie_gp>; |
| 1140 |
status = "disabled"; |
| 1141 |
}; |
| 1142 |
|
| 1143 |
pcie2_dart: iommu@683008000 { |
| 1144 |
compatible = "apple,t8110-dart"; |
| 1145 |
reg = <0x6 0x83008000 0x0 0x4000>; |
| 1146 |
#iommu-cells = <1>; |
| 1147 |
interrupt-parent = <&aic>; |
| 1148 |
interrupts = <AIC_IRQ 788 IRQ_TYPE_LEVEL_HIGH>; |
| 1149 |
power-domains = <&ps_apcie_gp>; |
| 1150 |
status = "disabled"; |
| 1151 |
}; |
| 1152 |
|
| 1153 |
pcie3_dart: iommu@684008000 { |
| 1154 |
compatible = "apple,t8110-dart"; |
| 1155 |
reg = <0x6 0x84008000 0x0 0x4000>; |
| 1156 |
#iommu-cells = <1>; |
| 1157 |
interrupt-parent = <&aic>; |
| 1158 |
interrupts = <AIC_IRQ 791 IRQ_TYPE_LEVEL_HIGH>; |
| 1159 |
power-domains = <&ps_apcie_gp>; |
| 1160 |
status = "disabled"; |
| 1161 |
}; |
| 1162 |
|
| 1163 |
pcie0: pcie@690000000 { |
| 1164 |
compatible = "apple,t8112-pcie", "apple,pcie"; |
| 1165 |
device_type = "pci"; |
| 1166 |
|
| 1167 |
reg = <0x6 0x90000000 0x0 0x1000000>, |
| 1168 |
<0x6 0x80000000 0x0 0x100000>, |
| 1169 |
<0x6 0x81000000 0x0 0x4000>, |
| 1170 |
<0x6 0x82000000 0x0 0x4000>, |
| 1171 |
<0x6 0x83000000 0x0 0x4000>, |
| 1172 |
<0x6 0x84000000 0x0 0x4000>; |
| 1173 |
reg-names = "config", "rc", "port0", "port1", "port2", "port3"; |
| 1174 |
|
| 1175 |
interrupt-parent = <&aic>; |
| 1176 |
interrupts = <AIC_IRQ 781 IRQ_TYPE_LEVEL_HIGH>, |
| 1177 |
<AIC_IRQ 784 IRQ_TYPE_LEVEL_HIGH>, |
| 1178 |
<AIC_IRQ 787 IRQ_TYPE_LEVEL_HIGH>, |
| 1179 |
<AIC_IRQ 790 IRQ_TYPE_LEVEL_HIGH>; |
| 1180 |
|
| 1181 |
msi-controller; |
| 1182 |
msi-parent = <&pcie0>; |
| 1183 |
msi-ranges = <&aic AIC_IRQ 793 IRQ_TYPE_EDGE_RISING 32>; |
| 1184 |
|
| 1185 |
iommu-map = <0x100 &pcie0_dart 0 1>, |
| 1186 |
<0x200 &pcie1_dart 1 1>, |
| 1187 |
<0x300 &pcie2_dart 2 1>, |
| 1188 |
<0x400 &pcie3_dart 3 1>; |
| 1189 |
iommu-map-mask = <0xff00>; |
| 1190 |
|
| 1191 |
bus-range = <0 4>; |
| 1192 |
#address-cells = <3>; |
| 1193 |
#size-cells = <2>; |
| 1194 |
ranges = <0x43000000 0x6 0xa0000000 0x6 0xa0000000 0x0 0x20000000>, |
| 1195 |
<0x02000000 0x0 0xc0000000 0x6 0xc0000000 0x0 0x40000000>; |
| 1196 |
|
| 1197 |
power-domains = <&ps_apcie_gp>; |
| 1198 |
pinctrl-0 = <&pcie_pins>; |
| 1199 |
pinctrl-names = "default"; |
| 1200 |
|
| 1201 |
port00: pci@0,0 { |
| 1202 |
device_type = "pci"; |
| 1203 |
reg = <0x0 0x0 0x0 0x0 0x0>; |
| 1204 |
reset-gpios = <&pinctrl_ap 166 GPIO_ACTIVE_LOW>; |
| 1205 |
|
| 1206 |
#address-cells = <3>; |
| 1207 |
#size-cells = <2>; |
| 1208 |
ranges; |
| 1209 |
|
| 1210 |
interrupt-controller; |
| 1211 |
#interrupt-cells = <1>; |
| 1212 |
|
| 1213 |
interrupt-map-mask = <0 0 0 7>; |
| 1214 |
interrupt-map = <0 0 0 1 &port00 0 0 0 0>, |
| 1215 |
<0 0 0 2 &port00 0 0 0 1>, |
| 1216 |
<0 0 0 3 &port00 0 0 0 2>, |
| 1217 |
<0 0 0 4 &port00 0 0 0 3>; |
| 1218 |
}; |
| 1219 |
|
| 1220 |
port01: pci@1,0 { |
| 1221 |
device_type = "pci"; |
| 1222 |
reg = <0x800 0x0 0x0 0x0 0x0>; |
| 1223 |
reset-gpios = <&pinctrl_ap 167 GPIO_ACTIVE_LOW>; |
| 1224 |
|
| 1225 |
#address-cells = <3>; |
| 1226 |
#size-cells = <2>; |
| 1227 |
ranges; |
| 1228 |
|
| 1229 |
interrupt-controller; |
| 1230 |
#interrupt-cells = <1>; |
| 1231 |
|
| 1232 |
interrupt-map-mask = <0 0 0 7>; |
| 1233 |
interrupt-map = <0 0 0 1 &port01 0 0 0 0>, |
| 1234 |
<0 0 0 2 &port01 0 0 0 1>, |
| 1235 |
<0 0 0 3 &port01 0 0 0 2>, |
| 1236 |
<0 0 0 4 &port01 0 0 0 3>; |
| 1237 |
|
| 1238 |
status = "disabled"; |
| 1239 |
}; |
| 1240 |
|
| 1241 |
port02: pci@2,0 { |
| 1242 |
device_type = "pci"; |
| 1243 |
reg = <0x1000 0x0 0x0 0x0 0x0>; |
| 1244 |
reset-gpios = <&pinctrl_ap 168 GPIO_ACTIVE_LOW>; |
| 1245 |
|
| 1246 |
#address-cells = <3>; |
| 1247 |
#size-cells = <2>; |
| 1248 |
ranges; |
| 1249 |
|
| 1250 |
interrupt-controller; |
| 1251 |
#interrupt-cells = <1>; |
| 1252 |
|
| 1253 |
interrupt-map-mask = <0 0 0 7>; |
| 1254 |
interrupt-map = <0 0 0 1 &port02 0 0 0 0>, |
| 1255 |
<0 0 0 2 &port02 0 0 0 1>, |
| 1256 |
<0 0 0 3 &port02 0 0 0 2>, |
| 1257 |
<0 0 0 4 &port02 0 0 0 3>; |
| 1258 |
|
| 1259 |
status = "disabled"; |
| 1260 |
}; |
| 1261 |
|
| 1262 |
/* TODO: GPIO unknown */ |
| 1263 |
port03: pci@3,0 { |
| 1264 |
device_type = "pci"; |
| 1265 |
reg = <0x1800 0x0 0x0 0x0 0x0>; |
| 1266 |
//reset-gpios = <&pinctrl_ap 33 GPIO_ACTIVE_LOW>; |
| 1267 |
|
| 1268 |
#address-cells = <3>; |
| 1269 |
#size-cells = <2>; |
| 1270 |
ranges; |
| 1271 |
|
| 1272 |
interrupt-controller; |
| 1273 |
#interrupt-cells = <1>; |
| 1274 |
|
| 1275 |
interrupt-map-mask = <0 0 0 7>; |
| 1276 |
interrupt-map = <0 0 0 1 &port03 0 0 0 0>, |
| 1277 |
<0 0 0 2 &port03 0 0 0 1>, |
| 1278 |
<0 0 0 3 &port03 0 0 0 2>, |
| 1279 |
<0 0 0 4 &port03 0 0 0 3>; |
| 1280 |
|
| 1281 |
status = "disabled"; |
| 1282 |
}; |
| 1283 |
}; |
| 1284 |
}; |
| 1285 |
}; |
| 1286 |
|
| 1287 |
#include "t8112-pmgr.dtsi" |