Skip to content

Commit 202ede0

Browse files
RyanTheTideclaude
andcommitted
arm64: dts: apple: t8122/t8132/t603x: give the remaining DARTs their power domains
On M3, M3 Pro/Max/Ultra and M4 the USB4 NHI and PCIe-C DARTs, the internal display DARTs, the AVE, APR (ProRes/scodec) and RSM DARTs, the display/ISP/AVE companion DARTs and the T8132 SIO and APCIE port 2 DARTs name no power domain. A DART probes as a device of its own, so nothing holds its block on while it probes or runs on its own, and its first register read faults if that block is off. Give each DART the state of the engine it serves, taken from the engine's own node or from the same DART on the sibling SoC: - usb4_N_dart: ps_atcN_cio; usb4_N_pcie_dart: ps_atcN_cio_pcie, as the PCIe-C port names, - dcp_dart, disp0_dart and the DISP0 companion: the state the DCP names (ps_disp_cpu; ps_disp_fe on T6031/T6034), - DISPEXT companions: the state their block's DARTs name, - AVE DARTs and companions: the encoder's system state (ps_venc_sys, ps_venc0/1_sys), as the T6031 AVE DARTs have, - APR DARTs: the state the APR engine names (scodec or ProRes), - ISP companions: ps_isp_sys, as the ISP DARTs have, - RSM DARTs: ps_debug_gated, as on T6050 and T6031's RSM engine, - T8132 SIO DART: ps_sio_cpu, the SIO's own state, - T8132 APCIE port 2 DART: ps_apcie_sys_gp. Every node except the USB4 DARTs, the T6030 and T8132 PCIe-C DARTs and the T8132 DCP DART (J604, J713, J715) is disabled. The enabled ones name states that are enabled on every board that enables them, but one: on J604 the DCP DART now waits for ps_disp_cpu, which that board leaves disabled; the DCP there names the same state, so it cannot probe either way. The T8132 internal PCIe DART (dart_apcie0) is left alone: J713 and J715 enable it and leave ps_apcie_sys_gp disabled. Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 2830de2 commit 202ede0

15 files changed

Lines changed: 82 additions & 0 deletions

‎arch/arm64/boot/dts/apple/t6030-dcp.dtsi‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
interrupt-parent = <&aic>;
5555
interrupts = <AIC_IRQ 609 IRQ_TYPE_LEVEL_HIGH>;
5656
#iommu-cells = <1>;
57+
power-domains = <&ps_disp_cpu>;
5758
apple,dma-range = <0x100 0x0 0x10 0x0>;
5859
status = "disabled";
5960
};
@@ -64,6 +65,7 @@
6465
interrupt-parent = <&aic>;
6566
interrupts = <AIC_IRQ 609 IRQ_TYPE_LEVEL_HIGH>;
6667
#iommu-cells = <1>;
68+
power-domains = <&ps_disp_cpu>;
6769
apple,dma-range = <0x100 0x0 0x10 0x0>;
6870
status = "disabled";
6971
};

‎arch/arm64/boot/dts/apple/t6030-peripherals.dtsi‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
interrupt-parent = <&aic>;
99
interrupts = <AIC_IRQ 345 IRQ_TYPE_LEVEL_HIGH>;
1010
#iommu-cells = <1>;
11+
power-domains = <&ps_debug_gated>;
1112
status = "disabled";
1213
};
1314

@@ -47,6 +48,7 @@
4748
interrupt-parent = <&aic>;
4849
interrupts = <AIC_IRQ 807 IRQ_TYPE_LEVEL_HIGH>;
4950
#iommu-cells = <1>;
51+
power-domains = <&ps_venc_sys>;
5052
status = "disabled";
5153
};
5254

@@ -56,13 +58,15 @@
5658
interrupt-parent = <&aic>;
5759
interrupts = <AIC_IRQ 807 IRQ_TYPE_LEVEL_HIGH>;
5860
#iommu-cells = <1>;
61+
power-domains = <&ps_venc_sys>;
5962
status = "disabled";
6063
};
6164

6265
dart_ave2: iommu@2cd020000 {
6366
compatible = "apple,t6030-dart-smmu", "apple,dart-smmu";
6467
reg = <0x2 0xcd020000 0x0 0x4000>;
6568
status = "disabled";
69+
power-domains = <&ps_venc_sys>;
6670
};
6771

6872
dart_ave3: filter@2cd044000 {
@@ -77,6 +81,7 @@
7781
interrupt-parent = <&aic>;
7882
interrupts = <AIC_IRQ 971 IRQ_TYPE_LEVEL_HIGH>;
7983
#iommu-cells = <1>;
84+
power-domains = <&ps_scodec>;
8085
status = "disabled";
8186
};
8287

@@ -86,6 +91,7 @@
8691
interrupt-parent = <&aic>;
8792
interrupts = <AIC_IRQ 971 IRQ_TYPE_LEVEL_HIGH>;
8893
#iommu-cells = <1>;
94+
power-domains = <&ps_scodec>;
8995
status = "disabled";
9096
};
9197

@@ -105,30 +111,35 @@
105111
compatible = "apple,t6030-dart-smmu", "apple,dart-smmu";
106112
reg = <0x2 0x8d300000 0x0 0x4000>;
107113
status = "disabled";
114+
power-domains = <&ps_disp_cpu>;
108115
};
109116

110117
dart_dispext0_companion1: iommu@2d1300000 {
111118
compatible = "apple,t6030-dart-smmu", "apple,dart-smmu";
112119
reg = <0x2 0xd1300000 0x0 0x4000>;
113120
status = "disabled";
121+
power-domains = <&ps_dispext0_cpu>;
114122
};
115123

116124
dart_dispext1_companion1: iommu@2d5300000 {
117125
compatible = "apple,t6030-dart-smmu", "apple,dart-smmu";
118126
reg = <0x2 0xd5300000 0x0 0x4000>;
119127
status = "disabled";
128+
power-domains = <&ps_dispext1_cpu>;
120129
};
121130

122131
dart_isp_companion3: iommu@2ca4b0000 {
123132
compatible = "apple,t6030-dart-smmu", "apple,dart-smmu";
124133
reg = <0x2 0xca4b0000 0x0 0x4000>;
125134
status = "disabled";
135+
power-domains = <&ps_isp_sys>;
126136
};
127137

128138
dart_isp_companion4: iommu@2ca4b8000 {
129139
compatible = "apple,t6030-dart-smmu", "apple,dart-smmu";
130140
reg = <0x2 0xca4b8000 0x0 0x4000>;
131141
status = "disabled";
142+
power-domains = <&ps_isp_sys>;
132143
};
133144

134145
dart_isp_companion5: filter@2ca4ac000 {

‎arch/arm64/boot/dts/apple/t6030-usb4.dtsi‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
interrupt-parent = <&aic>;
5353
interrupts = <AIC_IRQ 1077 IRQ_TYPE_LEVEL_HIGH>;
5454
#iommu-cells = <1>;
55+
power-domains = <&ps_atc0_cio_pcie>;
5556
/* No bootloader fills this one; the tunnel's cold init needs it. */
5657
apple,tunable =
5758
<0x20c 0x800001b7 0x800001b7>,

‎arch/arm64/boot/dts/apple/t6030.dtsi‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,7 @@
16591659
interrupt-parent = <&aic>;
16601660
interrupts = <AIC_IRQ 1126 IRQ_TYPE_LEVEL_HIGH>;
16611661
#iommu-cells = <5>;
1662+
power-domains = <&ps_atc0_cio>;
16621663
};
16631664

16641665
usb4_0_nhi: nhi@f00000 {
@@ -1826,6 +1827,7 @@
18261827
interrupt-parent = <&aic>;
18271828
interrupts = <AIC_IRQ 1184 IRQ_TYPE_LEVEL_HIGH>;
18281829
#iommu-cells = <5>;
1830+
power-domains = <&ps_atc1_cio>;
18291831
};
18301832

18311833
usb4_1_nhi: nhi@f00000 {
@@ -2001,6 +2003,7 @@
20012003
interrupt-parent = <&aic>;
20022004
interrupts = <AIC_IRQ 1242 IRQ_TYPE_LEVEL_HIGH>;
20032005
#iommu-cells = <5>;
2006+
power-domains = <&ps_atc2_cio>;
20042007
};
20052008

20062009
usb4_2_nhi: nhi@f00000 {

‎arch/arm64/boot/dts/apple/t6031-dcp.dtsi‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
interrupt-parent = <&aic>;
5454
interrupts = <AIC_IRQ 0 1008 IRQ_TYPE_LEVEL_HIGH>;
5555
#iommu-cells = <1>;
56+
power-domains = <&ps_disp_fe>;
5657
apple,dma-range = <0x100 0x0 0x10 0x0>;
5758
status = "disabled";
5859
};
@@ -63,6 +64,7 @@
6364
interrupt-parent = <&aic>;
6465
interrupts = <AIC_IRQ 0 1008 IRQ_TYPE_LEVEL_HIGH>;
6566
#iommu-cells = <1>;
67+
power-domains = <&ps_disp_fe>;
6668
apple,dma-range = <0x100 0x0 0x10 0x0>;
6769
status = "disabled";
6870
};

‎arch/arm64/boot/dts/apple/t6031-dieX.dtsi‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@
494494
interrupt-parent = <&aic>;
495495
interrupts = <AIC_IRQ DIE_NO 1567 IRQ_TYPE_LEVEL_HIGH>;
496496
#iommu-cells = <5>;
497+
power-domains = <&DIE_NODE(ps_atc0_cio)>;
497498
};
498499

499500
DIE_NODE(usb4_0_nhi): nhi@f00000 {
@@ -661,6 +662,7 @@
661662
interrupt-parent = <&aic>;
662663
interrupts = <AIC_IRQ DIE_NO 1615 IRQ_TYPE_LEVEL_HIGH>;
663664
#iommu-cells = <5>;
665+
power-domains = <&DIE_NODE(ps_atc1_cio)>;
664666
};
665667

666668
DIE_NODE(usb4_1_nhi): nhi@f00000 {
@@ -828,6 +830,7 @@
828830
interrupt-parent = <&aic>;
829831
interrupts = <AIC_IRQ DIE_NO 1663 IRQ_TYPE_LEVEL_HIGH>;
830832
#iommu-cells = <5>;
833+
power-domains = <&DIE_NODE(ps_atc2_cio)>;
831834
};
832835

833836
DIE_NODE(usb4_2_nhi): nhi@f00000 {

‎arch/arm64/boot/dts/apple/t6031-peripherals.dtsi‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
interrupt-parent = <&aic>;
99
interrupts = <AIC_IRQ 0 559 IRQ_TYPE_LEVEL_HIGH>;
1010
#iommu-cells = <1>;
11+
power-domains = <&ps_debug_gated>;
1112
status = "disabled";
1213
};
1314

@@ -105,6 +106,7 @@
105106
compatible = "apple,t6031-dart-smmu", "apple,dart-smmu";
106107
reg = <0x2 0x85020000 0x0 0x4000>;
107108
status = "disabled";
109+
power-domains = <&ps_venc0_sys>;
108110
};
109111

110112
dart_ave03: filter@285044000 {
@@ -137,6 +139,7 @@
137139
compatible = "apple,t6031-dart-smmu", "apple,dart-smmu";
138140
reg = <0x3 0xc5020000 0x0 0x4000>;
139141
status = "disabled";
142+
power-domains = <&ps_venc1_sys>;
140143
};
141144

142145
dart_ave13: filter@3c5044000 {
@@ -155,12 +158,14 @@
155158
compatible = "apple,t6031-dart-smmu", "apple,dart-smmu";
156159
reg = <0x3 0x8e4b0000 0x0 0x4000>;
157160
status = "disabled";
161+
power-domains = <&ps_isp_sys>;
158162
};
159163

160164
dart_isp0_companion4: iommu@38e4b8000 {
161165
compatible = "apple,t6031-dart-smmu", "apple,dart-smmu";
162166
reg = <0x3 0x8e4b8000 0x0 0x4000>;
163167
status = "disabled";
168+
power-domains = <&ps_isp_sys>;
164169
};
165170

166171
dart_isp0_companion5: filter@38e4ac000 {
@@ -179,6 +184,7 @@
179184
compatible = "apple,t6031-dart-smmu", "apple,dart-smmu";
180185
reg = <0x3 0x85300000 0x0 0x4000>;
181186
status = "disabled";
187+
power-domains = <&ps_disp_fe>;
182188
};
183189

184190
dart_ane0_companion3: filter@3c9804000 {
@@ -191,24 +197,28 @@
191197
compatible = "apple,t6031-dart-smmu", "apple,dart-smmu";
192198
reg = <0x3 0x05300000 0x0 0x4000>;
193199
status = "disabled";
200+
power-domains = <&ps_dispext0_cpu>;
194201
};
195202

196203
dart_dispext1_companion1: iommu@449300000 {
197204
compatible = "apple,t6031-dart-smmu", "apple,dart-smmu";
198205
reg = <0x4 0x49300000 0x0 0x4000>;
199206
status = "disabled";
207+
power-domains = <&ps_dispext1_cpu>;
200208
};
201209

202210
dart_dispext2_companion1: iommu@44d300000 {
203211
compatible = "apple,t6031-dart-smmu", "apple,dart-smmu";
204212
reg = <0x4 0x4d300000 0x0 0x4000>;
205213
status = "disabled";
214+
power-domains = <&ps_dispext2_cpu>;
206215
};
207216

208217
dart_dispext3_companion1: iommu@2c9300000 {
209218
compatible = "apple,t6031-dart-smmu", "apple,dart-smmu";
210219
reg = <0x2 0xc9300000 0x0 0x4000>;
211220
status = "disabled";
221+
power-domains = <&ps_dispext3_cpu>;
212222
};
213223

214224
apcie0_piodma: dma-controller@594010000 {

‎arch/arm64/boot/dts/apple/t6032-peripherals.dtsi‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
interrupt-parent = <&aic>;
99
interrupts = <AIC_IRQ 0 559 IRQ_TYPE_LEVEL_HIGH>;
1010
#iommu-cells = <1>;
11+
power-domains = <&ps_debug_gated>;
1112
status = "disabled";
1213
};
1314

@@ -37,6 +38,7 @@
3738
interrupt-parent = <&aic>;
3839
interrupts = <AIC_IRQ 0 1737 IRQ_TYPE_LEVEL_HIGH>;
3940
#iommu-cells = <1>;
41+
power-domains = <&ps_scodec>;
4042
status = "disabled";
4143
};
4244

@@ -46,6 +48,7 @@
4648
interrupt-parent = <&aic>;
4749
interrupts = <AIC_IRQ 0 1737 IRQ_TYPE_LEVEL_HIGH>;
4850
#iommu-cells = <1>;
51+
power-domains = <&ps_scodec>;
4952
status = "disabled";
5053
};
5154

@@ -55,6 +58,7 @@
5558
interrupt-parent = <&aic>;
5659
interrupts = <AIC_IRQ 0 1782 IRQ_TYPE_LEVEL_HIGH>;
5760
#iommu-cells = <1>;
61+
power-domains = <&ps_prores>;
5862
status = "disabled";
5963
};
6064

@@ -84,6 +88,7 @@
8488
interrupt-parent = <&aic>;
8589
interrupts = <AIC_IRQ 0 1204 IRQ_TYPE_LEVEL_HIGH>;
8690
#iommu-cells = <1>;
91+
power-domains = <&ps_venc0_sys>;
8792
status = "disabled";
8893
};
8994

@@ -93,13 +98,15 @@
9398
interrupt-parent = <&aic>;
9499
interrupts = <AIC_IRQ 0 1204 IRQ_TYPE_LEVEL_HIGH>;
95100
#iommu-cells = <1>;
101+
power-domains = <&ps_venc0_sys>;
96102
status = "disabled";
97103
};
98104

99105
ultra_dart_ave02: iommu@285020000 {
100106
compatible = "apple,t6032-dart-smmu", "apple,dart-smmu";
101107
reg = <0x2 0x85020000 0x0 0x4000>;
102108
status = "disabled";
109+
power-domains = <&ps_venc0_sys>;
103110
};
104111

105112
ultra_dart_ave03: filter@285044000 {
@@ -114,6 +121,7 @@
114121
interrupt-parent = <&aic>;
115122
interrupts = <AIC_IRQ 0 1216 IRQ_TYPE_LEVEL_HIGH>;
116123
#iommu-cells = <1>;
124+
power-domains = <&ps_venc1_sys>;
117125
status = "disabled";
118126
};
119127

@@ -123,13 +131,15 @@
123131
interrupt-parent = <&aic>;
124132
interrupts = <AIC_IRQ 0 1216 IRQ_TYPE_LEVEL_HIGH>;
125133
#iommu-cells = <1>;
134+
power-domains = <&ps_venc1_sys>;
126135
status = "disabled";
127136
};
128137

129138
ultra_dart_ave12: iommu@3c5020000 {
130139
compatible = "apple,t6032-dart-smmu", "apple,dart-smmu";
131140
reg = <0x3 0xc5020000 0x0 0x4000>;
132141
status = "disabled";
142+
power-domains = <&ps_venc1_sys>;
133143
};
134144

135145
ultra_dart_ave13: filter@3c5044000 {
@@ -544,6 +554,7 @@
544554
interrupt-parent = <&aic>;
545555
interrupts = <AIC_IRQ 1 1737 IRQ_TYPE_LEVEL_HIGH>;
546556
#iommu-cells = <1>;
557+
power-domains = <&ps_scodec_die1>;
547558
status = "disabled";
548559
};
549560

@@ -553,6 +564,7 @@
553564
interrupt-parent = <&aic>;
554565
interrupts = <AIC_IRQ 1 1737 IRQ_TYPE_LEVEL_HIGH>;
555566
#iommu-cells = <1>;
567+
power-domains = <&ps_scodec_die1>;
556568
status = "disabled";
557569
};
558570

@@ -562,6 +574,7 @@
562574
interrupt-parent = <&aic>;
563575
interrupts = <AIC_IRQ 1 1782 IRQ_TYPE_LEVEL_HIGH>;
564576
#iommu-cells = <1>;
577+
power-domains = <&ps_prores_die1>;
565578
status = "disabled";
566579
};
567580

@@ -591,6 +604,7 @@
591604
interrupt-parent = <&aic>;
592605
interrupts = <AIC_IRQ 1 1204 IRQ_TYPE_LEVEL_HIGH>;
593606
#iommu-cells = <1>;
607+
power-domains = <&ps_venc0_sys_die1>;
594608
status = "disabled";
595609
};
596610

@@ -600,13 +614,15 @@
600614
interrupt-parent = <&aic>;
601615
interrupts = <AIC_IRQ 1 1204 IRQ_TYPE_LEVEL_HIGH>;
602616
#iommu-cells = <1>;
617+
power-domains = <&ps_venc0_sys_die1>;
603618
status = "disabled";
604619
};
605620

606621
ultra_dart_ave22: iommu@285020000 {
607622
compatible = "apple,t6032-dart-smmu", "apple,dart-smmu";
608623
reg = <0x2 0x85020000 0x0 0x4000>;
609624
status = "disabled";
625+
power-domains = <&ps_venc0_sys_die1>;
610626
};
611627

612628
ultra_dart_ave23: filter@285044000 {
@@ -621,6 +637,7 @@
621637
interrupt-parent = <&aic>;
622638
interrupts = <AIC_IRQ 1 1216 IRQ_TYPE_LEVEL_HIGH>;
623639
#iommu-cells = <1>;
640+
power-domains = <&ps_venc1_sys_die1>;
624641
status = "disabled";
625642
};
626643

@@ -630,13 +647,15 @@
630647
interrupt-parent = <&aic>;
631648
interrupts = <AIC_IRQ 1 1216 IRQ_TYPE_LEVEL_HIGH>;
632649
#iommu-cells = <1>;
650+
power-domains = <&ps_venc1_sys_die1>;
633651
status = "disabled";
634652
};
635653

636654
ultra_dart_ave32: iommu@3c5020000 {
637655
compatible = "apple,t6032-dart-smmu", "apple,dart-smmu";
638656
reg = <0x3 0xc5020000 0x0 0x4000>;
639657
status = "disabled";
658+
power-domains = <&ps_venc1_sys_die1>;
640659
};
641660

642661
ultra_dart_ave33: filter@3c5044000 {

0 commit comments

Comments
 (0)