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