Debian Codegraph @

scripts/dtc/include-prefixes/arm64/apple/t8112-j473.dts

raw
1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
2 /*
3 * Apple Mac mini (M2, 2023)
4 *
5 * target-type: J473
6 *
7 * Copyright The Asahi Linux Contributors
8 */
9
10 /dts-v1/;
11
12 #include "t8112.dtsi"
13 #include "t8112-jxxx.dtsi"
14
15 / {
16 compatible = "apple,j473", "apple,t8112", "apple,arm-platform";
17 model = "Apple Mac mini (M2, 2023)";
18 chassis-type = "desktop";
19
20 aliases {
21 ethernet0 = &ethernet0;
22 };
23 };
24
25 /*
26 * Keep the power-domains used for the HDMI port on.
27 */
28 &framebuffer0 {
29 power-domains = <&ps_dispext_cpu0>, <&ps_dptx_ext_phy>;
30 };
31
32 /*
33 * The M2 Mac mini uses dispext for the HDMI output so it's not necessary to
34 * keep disp0 power-domains always-on.
35 */
36 &ps_disp0_sys {
37 /delete-property/ apple,always-on;
38 };
39
40 &ps_disp0_fe {
41 /delete-property/ apple,always-on;
42 };
43
44 /*
45 * Force the bus number assignments so that we can declare some of the
46 * on-board devices and properties that are populated by the bootloader
47 * (such as MAC addresses).
48 */
49 &port00 {
50 bus-range = <1 1>;
51 };
52
53 &port01 {
54 bus-range = <2 2>;
55 status = "okay";
56 };
57
58 &port02 {
59 bus-range = <3 3>;
60 status = "okay";
61 ethernet0: ethernet@0,0 {
62 reg = <0x30000 0x0 0x0 0x0 0x0>;
63 /* To be filled by the loader */
64 local-mac-address = [00 10 18 00 00 00];
65 };
66 };
67
68 &pcie1_dart {
69 status = "okay";
70 };
71
72 &pcie2_dart {
73 status = "okay";
74 };
75
76 /*
77 * Provide labels for the USB type C ports.
78 */
79
80 &typec0 {
81 label = "USB-C Back-left";
82 };
83
84 &typec1 {
85 label = "USB-C Back-right";
86 };