Debian Codegraph @

scripts/dtc/include-prefixes/arm64/apple/t600x-j375.dtsi

raw
1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
2 /*
3 * Mac Studio (2022)
4 *
5 * This file contains the parts common to J375 devices with both t6001 and t6002.
6 *
7 * target-type: J375c / J375d
8 *
9 * Copyright The Asahi Linux Contributors
10 */
11
12 / {
13 chassis-type = "desktop";
14
15 aliases {
16 atcphy0 = &atcphy0;
17 atcphy1 = &atcphy1;
18 atcphy2 = &atcphy2;
19 atcphy3 = &atcphy3;
20 bluetooth0 = &bluetooth0;
21 ethernet0 = &ethernet0;
22 serial0 = &serial0;
23 wifi0 = &wifi0;
24 };
25
26 chosen {
27 #address-cells = <2>;
28 #size-cells = <2>;
29 ranges;
30
31 stdout-path = "serial0";
32
33 framebuffer0: framebuffer@0 {
34 compatible = "apple,simple-framebuffer", "simple-framebuffer";
35 reg = <0 0 0 0>; /* To be filled by loader */
36 /* Format properties will be added by loader */
37 status = "disabled";
38 };
39 };
40
41 memory@10000000000 {
42 device_type = "memory";
43 reg = <0x100 0 0x2 0>; /* To be filled by loader */
44 };
45 };
46
47 &serial0 {
48 status = "okay";
49 };
50
51 /* USB Type C */
52 &i2c0 {
53 hpm0: usb-pd@38 {
54 compatible = "apple,cd321x";
55 reg = <0x38>;
56 interrupt-parent = <&pinctrl_ap>;
57 interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
58 interrupt-names = "irq";
59
60 typec0: connector {
61 compatible = "usb-c-connector";
62 label = "USB-C Back Left";
63 power-role = "dual";
64 data-role = "dual";
65
66 ports {
67 #address-cells = <1>;
68 #size-cells = <0>;
69 port@0 {
70 reg = <0>;
71 typec0_connector_hs: endpoint {
72 remote-endpoint = <&dwc3_0_hs>;
73 };
74 };
75 port@1 {
76 reg = <1>;
77 typec0_connector_ss: endpoint {
78 remote-endpoint = <&atcphy0_typec_lanes>;
79 };
80 };
81 };
82 };
83 };
84
85 hpm1: usb-pd@3f {
86 compatible = "apple,cd321x";
87 reg = <0x3f>;
88 interrupt-parent = <&pinctrl_ap>;
89 interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
90 interrupt-names = "irq";
91
92 typec1: connector {
93 compatible = "usb-c-connector";
94 label = "USB-C Back Left Middle";
95 power-role = "dual";
96 data-role = "dual";
97
98 ports {
99 #address-cells = <1>;
100 #size-cells = <0>;
101 port@0 {
102 reg = <0>;
103 typec1_connector_hs: endpoint {
104 remote-endpoint = <&dwc3_1_hs>;
105 };
106 };
107 port@1 {
108 reg = <1>;
109 typec1_connector_ss: endpoint {
110 remote-endpoint = <&atcphy1_typec_lanes>;
111 };
112 };
113 };
114 };
115 };
116
117 hpm2: usb-pd@3b {
118 compatible = "apple,cd321x";
119 reg = <0x3b>;
120 interrupt-parent = <&pinctrl_ap>;
121 interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
122 interrupt-names = "irq";
123
124 typec2: connector {
125 compatible = "usb-c-connector";
126 label = "USB-C Back Right Middle";
127 power-role = "dual";
128 data-role = "dual";
129
130 ports {
131 #address-cells = <1>;
132 #size-cells = <0>;
133 port@0 {
134 reg = <0>;
135 typec2_connector_hs: endpoint {
136 remote-endpoint = <&dwc3_2_hs>;
137 };
138 };
139 port@1 {
140 reg = <1>;
141 typec2_connector_ss: endpoint {
142 remote-endpoint = <&atcphy2_typec_lanes>;
143 };
144 };
145 };
146 };
147 };
148
149 hpm3: usb-pd@3c {
150 compatible = "apple,cd321x";
151 reg = <0x3c>;
152 interrupt-parent = <&pinctrl_ap>;
153 interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
154 interrupt-names = "irq";
155
156 typec3: connector {
157 compatible = "usb-c-connector";
158 label = "USB-C Back Right";
159 power-role = "dual";
160 data-role = "dual";
161
162 ports {
163 #address-cells = <1>;
164 #size-cells = <0>;
165 port@0 {
166 reg = <0>;
167 typec3_connector_hs: endpoint {
168 remote-endpoint = <&dwc3_3_hs>;
169 };
170 };
171 port@1 {
172 reg = <1>;
173 typec3_connector_ss: endpoint {
174 remote-endpoint = <&atcphy3_typec_lanes>;
175 };
176 };
177 };
178 };
179 };
180 };
181
182 /* USB controllers */
183 &dwc3_0 {
184 ports {
185 #address-cells = <1>;
186 #size-cells = <0>;
187
188 port@0 {
189 reg = <0>;
190 dwc3_0_hs: endpoint {
191 remote-endpoint = <&typec0_connector_hs>;
192 };
193 };
194
195 port@1 {
196 reg = <1>;
197 dwc3_0_ss: endpoint {
198 remote-endpoint = <&atcphy0_usb3>;
199 };
200 };
201 };
202 };
203
204 &dwc3_1 {
205 ports {
206 #address-cells = <1>;
207 #size-cells = <0>;
208
209 port@0 {
210 reg = <0>;
211 dwc3_1_hs: endpoint {
212 remote-endpoint = <&typec1_connector_hs>;
213 };
214 };
215
216 port@1 {
217 reg = <1>;
218 dwc3_1_ss: endpoint {
219 remote-endpoint = <&atcphy1_usb3>;
220 };
221 };
222 };
223 };
224
225 &dwc3_2 {
226 ports {
227 #address-cells = <1>;
228 #size-cells = <0>;
229
230 port@0 {
231 reg = <0>;
232 dwc3_2_hs: endpoint {
233 remote-endpoint = <&typec2_connector_hs>;
234 };
235 };
236
237 port@1 {
238 reg = <1>;
239 dwc3_2_ss: endpoint {
240 remote-endpoint = <&atcphy2_usb3>;
241 };
242 };
243 };
244 };
245
246 &dwc3_3 {
247 ports {
248 #address-cells = <1>;
249 #size-cells = <0>;
250
251 port@0 {
252 reg = <0>;
253 dwc3_3_hs: endpoint {
254 remote-endpoint = <&typec3_connector_hs>;
255 };
256 };
257
258 port@1 {
259 reg = <1>;
260 dwc3_3_ss: endpoint {
261 remote-endpoint = <&atcphy3_usb3>;
262 };
263 };
264 };
265 };
266
267 /* Type-C PHYs */
268 &atcphy0 {
269 ports {
270 #address-cells = <1>;
271 #size-cells = <0>;
272
273 port@0 {
274 reg = <0>;
275 atcphy0_typec_lanes: endpoint {
276 remote-endpoint = <&typec0_connector_ss>;
277 };
278 };
279
280 port@1 {
281 reg = <1>;
282 atcphy0_usb3: endpoint {
283 remote-endpoint = <&dwc3_0_ss>;
284 };
285 };
286 };
287 };
288
289 &atcphy1 {
290 ports {
291 #address-cells = <1>;
292 #size-cells = <0>;
293
294 port@0 {
295 reg = <0>;
296 atcphy1_typec_lanes: endpoint {
297 remote-endpoint = <&typec1_connector_ss>;
298 };
299 };
300
301 port@1 {
302 reg = <1>;
303 atcphy1_usb3: endpoint {
304 remote-endpoint = <&dwc3_1_ss>;
305 };
306 };
307 };
308 };
309
310 &atcphy2 {
311 ports {
312 #address-cells = <1>;
313 #size-cells = <0>;
314
315 port@0 {
316 reg = <0>;
317 atcphy2_typec_lanes: endpoint {
318 remote-endpoint = <&typec2_connector_ss>;
319 };
320 };
321
322 port@1 {
323 reg = <1>;
324 atcphy2_usb3: endpoint {
325 remote-endpoint = <&dwc3_2_ss>;
326 };
327 };
328 };
329 };
330
331 &atcphy3 {
332 ports {
333 #address-cells = <1>;
334 #size-cells = <0>;
335
336 port@0 {
337 reg = <0>;
338 atcphy3_typec_lanes: endpoint {
339 remote-endpoint = <&typec3_connector_ss>;
340 };
341 };
342
343 port@1 {
344 reg = <1>;
345 atcphy3_usb3: endpoint {
346 remote-endpoint = <&dwc3_3_ss>;
347 };
348 };
349 };
350 };
351
352 &nco_clkref {
353 clock-frequency = <1068000000>;
354 };
355
356 /* PCIe devices */
357 &port00 {
358 /* WLAN */
359 bus-range = <1 1>;
360 wifi0: wifi@0,0 {
361 compatible = "pci14e4,4433";
362 reg = <0x10000 0x0 0x0 0x0 0x0>;
363 /* To be filled by the loader */
364 local-mac-address = [00 10 18 00 00 10];
365 apple,antenna-sku = "XX";
366 };
367
368 bluetooth0: bluetooth@0,1 {
369 compatible = "pci14e4,5f71";
370 reg = <0x10100 0x0 0x0 0x0 0x0>;
371 /* To be filled by the loader */
372 local-bd-address = [00 00 00 00 00 00];
373 };
374 };
375
376 &port01 {
377 /* SD card reader */
378 bus-range = <2 2>;
379 sdhci0: mmc@0,0 {
380 compatible = "pci17a0,9755";
381 reg = <0x20000 0x0 0x0 0x0 0x0>;
382 cd-inverted;
383 wp-inverted;
384 };
385 };
386
387 &port02 {
388 /* 10 Gbit Ethernet */
389 bus-range = <3 3>;
390 status = "okay";
391 ethernet0: ethernet@0,0 {
392 reg = <0x30000 0x0 0x0 0x0 0x0>;
393 /* To be filled by the loader */
394 local-mac-address = [00 10 18 00 00 00];
395 };
396 };
397
398 &port03 {
399 /* USB xHCI */
400 bus-range = <4 4>;
401 status = "okay";
402 };
403
404
405 &pcie0_dart_2 {
406 status = "okay";
407 };
408
409 &pcie0_dart_3 {
410 status = "okay";
411 };
412
413 #include "spi1-nvram.dtsi"