1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
5 * Other names: H13G, "Tonga"
7 * Copyright The Asahi Linux Contributors
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>
16 compatible = "apple,t8103", "apple,arm-platform";
26 compatible = "apple,icestorm";
29 enable-method = "spin-table";
30 cpu-release-addr = <0 0>; /* To be filled by loader */
34 compatible = "apple,icestorm";
37 enable-method = "spin-table";
38 cpu-release-addr = <0 0>; /* To be filled by loader */
42 compatible = "apple,icestorm";
45 enable-method = "spin-table";
46 cpu-release-addr = <0 0>; /* To be filled by loader */
50 compatible = "apple,icestorm";
53 enable-method = "spin-table";
54 cpu-release-addr = <0 0>; /* To be filled by loader */
58 compatible = "apple,firestorm";
61 enable-method = "spin-table";
62 cpu-release-addr = <0 0>; /* To be filled by loader */
66 compatible = "apple,firestorm";
69 enable-method = "spin-table";
70 cpu-release-addr = <0 0>; /* To be filled by loader */
74 compatible = "apple,firestorm";
77 enable-method = "spin-table";
78 cpu-release-addr = <0 0>; /* To be filled by loader */
82 compatible = "apple,firestorm";
85 enable-method = "spin-table";
86 cpu-release-addr = <0 0>; /* To be filled by loader */
91 compatible = "arm,armv8-timer";
92 interrupt-parent = <&aic>;
93 interrupt-names = "phys", "virt", "hyp-phys", "hyp-virt";
94 interrupts = <AIC_FIQ AIC_TMR_GUEST_PHYS IRQ_TYPE_LEVEL_HIGH>,
95 <AIC_FIQ AIC_TMR_GUEST_VIRT IRQ_TYPE_LEVEL_HIGH>,
96 <AIC_FIQ AIC_TMR_HV_PHYS IRQ_TYPE_LEVEL_HIGH>,
97 <AIC_FIQ AIC_TMR_HV_VIRT IRQ_TYPE_LEVEL_HIGH>;
101 compatible = "fixed-clock";
103 clock-frequency = <24000000>;
104 clock-output-names = "clkref";
108 compatible = "simple-bus";
109 #address-cells = <2>;
115 i2c0: i2c@235010000 {
116 compatible = "apple,t8103-i2c", "apple,i2c";
117 reg = <0x2 0x35010000 0x0 0x4000>;
119 interrupt-parent = <&aic>;
120 interrupts = <AIC_IRQ 627 IRQ_TYPE_LEVEL_HIGH>;
121 pinctrl-0 = <&i2c0_pins>;
122 pinctrl-names = "default";
123 #address-cells = <0x1>;
125 power-domains = <&ps_i2c0>;
128 i2c1: i2c@235014000 {
129 compatible = "apple,t8103-i2c", "apple,i2c";
130 reg = <0x2 0x35014000 0x0 0x4000>;
132 interrupt-parent = <&aic>;
133 interrupts = <AIC_IRQ 628 IRQ_TYPE_LEVEL_HIGH>;
134 pinctrl-0 = <&i2c1_pins>;
135 pinctrl-names = "default";
136 #address-cells = <0x1>;
138 power-domains = <&ps_i2c1>;
141 i2c2: i2c@235018000 {
142 compatible = "apple,t8103-i2c", "apple,i2c";
143 reg = <0x2 0x35018000 0x0 0x4000>;
145 interrupt-parent = <&aic>;
146 interrupts = <AIC_IRQ 629 IRQ_TYPE_LEVEL_HIGH>;
147 pinctrl-0 = <&i2c2_pins>;
148 pinctrl-names = "default";
149 #address-cells = <0x1>;
151 status = "disabled"; /* not used in all devices */
152 power-domains = <&ps_i2c2>;
155 i2c3: i2c@23501c000 {
156 compatible = "apple,t8103-i2c", "apple,i2c";
157 reg = <0x2 0x3501c000 0x0 0x4000>;
159 interrupt-parent = <&aic>;
160 interrupts = <AIC_IRQ 630 IRQ_TYPE_LEVEL_HIGH>;
161 pinctrl-0 = <&i2c3_pins>;
162 pinctrl-names = "default";
163 #address-cells = <0x1>;
165 power-domains = <&ps_i2c3>;
168 i2c4: i2c@235020000 {
169 compatible = "apple,t8103-i2c", "apple,i2c";
170 reg = <0x2 0x35020000 0x0 0x4000>;
172 interrupt-parent = <&aic>;
173 interrupts = <AIC_IRQ 631 IRQ_TYPE_LEVEL_HIGH>;
174 pinctrl-0 = <&i2c4_pins>;
175 pinctrl-names = "default";
176 #address-cells = <0x1>;
178 power-domains = <&ps_i2c4>;
179 status = "disabled"; /* only used in J293 */
182 serial0: serial@235200000 {
183 compatible = "apple,s5l-uart";
184 reg = <0x2 0x35200000 0x0 0x1000>;
186 interrupt-parent = <&aic>;
187 interrupts = <AIC_IRQ 605 IRQ_TYPE_LEVEL_HIGH>;
189 * TODO: figure out the clocking properly, there may
190 * be a third selectable clock.
192 clocks = <&clkref>, <&clkref>;
193 clock-names = "uart", "clk_uart_baud0";
194 power-domains = <&ps_uart0>;
198 serial2: serial@235208000 {
199 compatible = "apple,s5l-uart";
200 reg = <0x2 0x35208000 0x0 0x1000>;
202 interrupt-parent = <&aic>;
203 interrupts = <AIC_IRQ 607 IRQ_TYPE_LEVEL_HIGH>;
204 clocks = <&clkref>, <&clkref>;
205 clock-names = "uart", "clk_uart_baud0";
206 power-domains = <&ps_uart2>;
210 aic: interrupt-controller@23b100000 {
211 compatible = "apple,t8103-aic", "apple,aic";
212 #interrupt-cells = <3>;
213 interrupt-controller;
214 reg = <0x2 0x3b100000 0x0 0x8000>;
215 power-domains = <&ps_aic>;
218 pmgr: power-management@23b700000 {
219 compatible = "apple,t8103-pmgr", "apple,pmgr", "syscon", "simple-mfd";
220 #address-cells = <1>;
222 reg = <0x2 0x3b700000 0 0x14000>;
225 pinctrl_ap: pinctrl@23c100000 {
226 compatible = "apple,t8103-pinctrl", "apple,pinctrl";
227 reg = <0x2 0x3c100000 0x0 0x100000>;
228 power-domains = <&ps_gpio>;
232 gpio-ranges = <&pinctrl_ap 0 0 212>;
235 interrupt-controller;
236 #interrupt-cells = <2>;
237 interrupt-parent = <&aic>;
238 interrupts = <AIC_IRQ 190 IRQ_TYPE_LEVEL_HIGH>,
239 <AIC_IRQ 191 IRQ_TYPE_LEVEL_HIGH>,
240 <AIC_IRQ 192 IRQ_TYPE_LEVEL_HIGH>,
241 <AIC_IRQ 193 IRQ_TYPE_LEVEL_HIGH>,
242 <AIC_IRQ 194 IRQ_TYPE_LEVEL_HIGH>,
243 <AIC_IRQ 195 IRQ_TYPE_LEVEL_HIGH>,
244 <AIC_IRQ 196 IRQ_TYPE_LEVEL_HIGH>;
246 i2c0_pins: i2c0-pins {
247 pinmux = <APPLE_PINMUX(192, 1)>,
248 <APPLE_PINMUX(188, 1)>;
251 i2c1_pins: i2c1-pins {
252 pinmux = <APPLE_PINMUX(201, 1)>,
253 <APPLE_PINMUX(199, 1)>;
256 i2c2_pins: i2c2-pins {
257 pinmux = <APPLE_PINMUX(163, 1)>,
258 <APPLE_PINMUX(162, 1)>;
261 i2c3_pins: i2c3-pins {
262 pinmux = <APPLE_PINMUX(73, 1)>,
263 <APPLE_PINMUX(72, 1)>;
266 i2c4_pins: i2c4-pins {
267 pinmux = <APPLE_PINMUX(135, 1)>,
268 <APPLE_PINMUX(134, 1)>;
271 pcie_pins: pcie-pins {
272 pinmux = <APPLE_PINMUX(150, 1)>,
273 <APPLE_PINMUX(151, 1)>,
274 <APPLE_PINMUX(32, 1)>;
278 pinctrl_nub: pinctrl@23d1f0000 {
279 compatible = "apple,t8103-pinctrl", "apple,pinctrl";
280 reg = <0x2 0x3d1f0000 0x0 0x4000>;
281 power-domains = <&ps_nub_gpio>;
285 gpio-ranges = <&pinctrl_nub 0 0 23>;
288 interrupt-controller;
289 #interrupt-cells = <2>;
290 interrupt-parent = <&aic>;
291 interrupts = <AIC_IRQ 330 IRQ_TYPE_LEVEL_HIGH>,
292 <AIC_IRQ 331 IRQ_TYPE_LEVEL_HIGH>,
293 <AIC_IRQ 332 IRQ_TYPE_LEVEL_HIGH>,
294 <AIC_IRQ 333 IRQ_TYPE_LEVEL_HIGH>,
295 <AIC_IRQ 334 IRQ_TYPE_LEVEL_HIGH>,
296 <AIC_IRQ 335 IRQ_TYPE_LEVEL_HIGH>,
297 <AIC_IRQ 336 IRQ_TYPE_LEVEL_HIGH>;
300 pmgr_mini: power-management@23d280000 {
301 compatible = "apple,t8103-pmgr", "apple,pmgr", "syscon", "simple-mfd";
302 #address-cells = <1>;
304 reg = <0x2 0x3d280000 0 0x4000>;
307 wdt: watchdog@23d2b0000 {
308 compatible = "apple,t8103-wdt", "apple,wdt";
309 reg = <0x2 0x3d2b0000 0x0 0x4000>;
311 interrupt-parent = <&aic>;
312 interrupts = <AIC_IRQ 338 IRQ_TYPE_LEVEL_HIGH>;
315 pinctrl_smc: pinctrl@23e820000 {
316 compatible = "apple,t8103-pinctrl", "apple,pinctrl";
317 reg = <0x2 0x3e820000 0x0 0x4000>;
321 gpio-ranges = <&pinctrl_smc 0 0 16>;
324 interrupt-controller;
325 #interrupt-cells = <2>;
326 interrupt-parent = <&aic>;
327 interrupts = <AIC_IRQ 391 IRQ_TYPE_LEVEL_HIGH>,
328 <AIC_IRQ 392 IRQ_TYPE_LEVEL_HIGH>,
329 <AIC_IRQ 393 IRQ_TYPE_LEVEL_HIGH>,
330 <AIC_IRQ 394 IRQ_TYPE_LEVEL_HIGH>,
331 <AIC_IRQ 395 IRQ_TYPE_LEVEL_HIGH>,
332 <AIC_IRQ 396 IRQ_TYPE_LEVEL_HIGH>,
333 <AIC_IRQ 397 IRQ_TYPE_LEVEL_HIGH>;
336 pinctrl_aop: pinctrl@24a820000 {
337 compatible = "apple,t8103-pinctrl", "apple,pinctrl";
338 reg = <0x2 0x4a820000 0x0 0x4000>;
342 gpio-ranges = <&pinctrl_aop 0 0 42>;
345 interrupt-controller;
346 #interrupt-cells = <2>;
347 interrupt-parent = <&aic>;
348 interrupts = <AIC_IRQ 268 IRQ_TYPE_LEVEL_HIGH>,
349 <AIC_IRQ 269 IRQ_TYPE_LEVEL_HIGH>,
350 <AIC_IRQ 270 IRQ_TYPE_LEVEL_HIGH>,
351 <AIC_IRQ 271 IRQ_TYPE_LEVEL_HIGH>,
352 <AIC_IRQ 272 IRQ_TYPE_LEVEL_HIGH>,
353 <AIC_IRQ 273 IRQ_TYPE_LEVEL_HIGH>,
354 <AIC_IRQ 274 IRQ_TYPE_LEVEL_HIGH>;
357 pcie0_dart_0: dart@681008000 {
358 compatible = "apple,t8103-dart";
359 reg = <0x6 0x81008000 0x0 0x4000>;
361 interrupt-parent = <&aic>;
362 interrupts = <AIC_IRQ 696 IRQ_TYPE_LEVEL_HIGH>;
363 power-domains = <&ps_apcie_gp>;
366 pcie0_dart_1: dart@682008000 {
367 compatible = "apple,t8103-dart";
368 reg = <0x6 0x82008000 0x0 0x4000>;
370 interrupt-parent = <&aic>;
371 interrupts = <AIC_IRQ 699 IRQ_TYPE_LEVEL_HIGH>;
372 power-domains = <&ps_apcie_gp>;
375 pcie0_dart_2: dart@683008000 {
376 compatible = "apple,t8103-dart";
377 reg = <0x6 0x83008000 0x0 0x4000>;
379 interrupt-parent = <&aic>;
380 interrupts = <AIC_IRQ 702 IRQ_TYPE_LEVEL_HIGH>;
381 power-domains = <&ps_apcie_gp>;
384 pcie0: pcie@690000000 {
385 compatible = "apple,t8103-pcie", "apple,pcie";
388 reg = <0x6 0x90000000 0x0 0x1000000>,
389 <0x6 0x80000000 0x0 0x100000>,
390 <0x6 0x81000000 0x0 0x4000>,
391 <0x6 0x82000000 0x0 0x4000>,
392 <0x6 0x83000000 0x0 0x4000>;
393 reg-names = "config", "rc", "port0", "port1", "port2";
395 interrupt-parent = <&aic>;
396 interrupts = <AIC_IRQ 695 IRQ_TYPE_LEVEL_HIGH>,
397 <AIC_IRQ 698 IRQ_TYPE_LEVEL_HIGH>,
398 <AIC_IRQ 701 IRQ_TYPE_LEVEL_HIGH>;
401 msi-parent = <&pcie0>;
402 msi-ranges = <&aic AIC_IRQ 704 IRQ_TYPE_EDGE_RISING 32>;
405 iommu-map = <0x100 &pcie0_dart_0 1 1>,
406 <0x200 &pcie0_dart_1 1 1>,
407 <0x300 &pcie0_dart_2 1 1>;
408 iommu-map-mask = <0xff00>;
411 #address-cells = <3>;
413 ranges = <0x43000000 0x6 0xa0000000 0x6 0xa0000000 0x0 0x20000000>,
414 <0x02000000 0x0 0xc0000000 0x6 0xc0000000 0x0 0x40000000>;
416 power-domains = <&ps_apcie_gp>;
417 pinctrl-0 = <&pcie_pins>;
418 pinctrl-names = "default";
422 reg = <0x0 0x0 0x0 0x0 0x0>;
423 reset-gpios = <&pinctrl_ap 152 GPIO_ACTIVE_LOW>;
425 #address-cells = <3>;
429 interrupt-controller;
430 #interrupt-cells = <1>;
432 interrupt-map-mask = <0 0 0 7>;
433 interrupt-map = <0 0 0 1 &port00 0 0 0 0>,
434 <0 0 0 2 &port00 0 0 0 1>,
435 <0 0 0 3 &port00 0 0 0 2>,
436 <0 0 0 4 &port00 0 0 0 3>;
441 reg = <0x800 0x0 0x0 0x0 0x0>;
442 reset-gpios = <&pinctrl_ap 153 GPIO_ACTIVE_LOW>;
444 #address-cells = <3>;
448 interrupt-controller;
449 #interrupt-cells = <1>;
451 interrupt-map-mask = <0 0 0 7>;
452 interrupt-map = <0 0 0 1 &port01 0 0 0 0>,
453 <0 0 0 2 &port01 0 0 0 1>,
454 <0 0 0 3 &port01 0 0 0 2>,
455 <0 0 0 4 &port01 0 0 0 3>;
460 reg = <0x1000 0x0 0x0 0x0 0x0>;
461 reset-gpios = <&pinctrl_ap 33 GPIO_ACTIVE_LOW>;
463 #address-cells = <3>;
467 interrupt-controller;
468 #interrupt-cells = <1>;
470 interrupt-map-mask = <0 0 0 7>;
471 interrupt-map = <0 0 0 1 &port02 0 0 0 0>,
472 <0 0 0 2 &port02 0 0 0 1>,
473 <0 0 0 3 &port02 0 0 0 2>,
474 <0 0 0 4 &port02 0 0 0 3>;
480 #include "t8103-pmgr.dtsi"