Debian Codegraph @

scripts/dtc/include-prefixes/arm64/apple/t8103-jxxx.dtsi

raw
1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
2 /*
3 * Apple M1 Mac mini, MacBook Air/Pro, iMac 24" (M1, 2020/2021)
4 *
5 * This file contains parts common to all Apple M1 devices using the t8103.
6 *
7 * target-type: J274, J293, J313, J456, J457
8 *
9 * Copyright The Asahi Linux Contributors
10 */
11
12 / {
13 aliases {
14 bluetooth0 = &bluetooth0;
15 serial0 = &serial0;
16 serial2 = &serial2;
17 wifi0 = &wifi0;
18 atcphy0 = &atcphy0;
19 atcphy1 = &atcphy1;
20 };
21
22 chosen {
23 #address-cells = <2>;
24 #size-cells = <2>;
25 ranges;
26
27 stdout-path = "serial0";
28
29 framebuffer0: framebuffer@0 {
30 compatible = "apple,simple-framebuffer", "simple-framebuffer";
31 reg = <0 0 0 0>; /* To be filled by loader */
32 /* Format properties will be added by loader */
33 status = "disabled";
34 };
35 };
36
37 memory@800000000 {
38 device_type = "memory";
39 reg = <0x8 0 0x2 0>; /* To be filled by loader */
40 };
41 };
42
43 &serial0 {
44 status = "okay";
45 };
46
47 &serial2 {
48 status = "okay";
49 };
50
51 &i2c0 {
52 hpm0: usb-pd@38 {
53 compatible = "apple,cd321x";
54 reg = <0x38>;
55 interrupt-parent = <&pinctrl_ap>;
56 interrupts = <106 IRQ_TYPE_LEVEL_LOW>;
57 interrupt-names = "irq";
58
59 typec0: connector {
60 compatible = "usb-c-connector";
61 power-role = "dual";
62 data-role = "dual";
63
64 ports {
65 #address-cells = <1>;
66 #size-cells = <0>;
67 port@0 {
68 reg = <0>;
69 typec0_connector_hs: endpoint {
70 remote-endpoint = <&dwc3_0_hs>;
71 };
72 };
73 port@1 {
74 reg = <1>;
75 typec0_connector_ss: endpoint {
76 remote-endpoint = <&atcphy0_typec_lanes>;
77 };
78 };
79 };
80 };
81 };
82
83 hpm1: usb-pd@3f {
84 compatible = "apple,cd321x";
85 reg = <0x3f>;
86 interrupt-parent = <&pinctrl_ap>;
87 interrupts = <106 IRQ_TYPE_LEVEL_LOW>;
88 interrupt-names = "irq";
89
90 typec1: connector {
91 compatible = "usb-c-connector";
92 power-role = "dual";
93 data-role = "dual";
94
95 ports {
96 #address-cells = <1>;
97 #size-cells = <0>;
98 port@0 {
99 reg = <0>;
100 typec1_connector_hs: endpoint {
101 remote-endpoint = <&dwc3_1_hs>;
102 };
103 };
104 port@1 {
105 reg = <1>;
106 typec1_connector_ss: endpoint {
107 remote-endpoint = <&atcphy1_typec_lanes>;
108 };
109 };
110 };
111 };
112 };
113 };
114
115 /* USB controllers */
116 &dwc3_0 {
117 ports {
118 #address-cells = <1>;
119 #size-cells = <0>;
120
121 port@0 {
122 reg = <0>;
123 dwc3_0_hs: endpoint {
124 remote-endpoint = <&typec0_connector_hs>;
125 };
126 };
127
128 port@1 {
129 reg = <1>;
130 dwc3_0_ss: endpoint {
131 remote-endpoint = <&atcphy0_usb3>;
132 };
133 };
134 };
135 };
136
137 &dwc3_1 {
138 ports {
139 #address-cells = <1>;
140 #size-cells = <0>;
141
142 port@0 {
143 reg = <0>;
144 dwc3_1_hs: endpoint {
145 remote-endpoint = <&typec1_connector_hs>;
146 };
147 };
148
149 port@1 {
150 reg = <1>;
151 dwc3_1_ss: endpoint {
152 remote-endpoint = <&atcphy1_usb3>;
153 };
154 };
155 };
156 };
157
158 /* Type-C PHYs */
159 &atcphy0 {
160 ports {
161 #address-cells = <1>;
162 #size-cells = <0>;
163
164 port@0 {
165 reg = <0>;
166 atcphy0_typec_lanes: endpoint {
167 remote-endpoint = <&typec0_connector_ss>;
168 };
169 };
170
171 port@1 {
172 reg = <1>;
173 atcphy0_usb3: endpoint {
174 remote-endpoint = <&dwc3_0_ss>;
175 };
176 };
177 };
178 };
179
180 &atcphy1 {
181 ports {
182 #address-cells = <1>;
183 #size-cells = <0>;
184
185 port@0 {
186 reg = <0>;
187 atcphy1_typec_lanes: endpoint {
188 remote-endpoint = <&typec1_connector_ss>;
189 };
190 };
191
192 port@1 {
193 reg = <1>;
194 atcphy1_usb3: endpoint {
195 remote-endpoint = <&dwc3_1_ss>;
196 };
197 };
198 };
199 };
200
201 /*
202 * Force the bus number assignments so that we can declare some of the
203 * on-board devices and properties that are populated by the bootloader
204 * (such as MAC addresses).
205 */
206 &port00 {
207 bus-range = <1 1>;
208 wifi0: wifi@0,0 {
209 compatible = "pci14e4,4425";
210 reg = <0x10000 0x0 0x0 0x0 0x0>;
211 /* To be filled by the loader */
212 local-mac-address = [00 00 00 00 00 00];
213 apple,antenna-sku = "XX";
214 };
215
216 bluetooth0: bluetooth@0,1 {
217 compatible = "pci14e4,5f69";
218 reg = <0x10100 0x0 0x0 0x0 0x0>;
219 /* To be filled by the loader */
220 local-bd-address = [00 00 00 00 00 00];
221 };
222 };
223
224 &nco_clkref {
225 clock-frequency = <900000000>;
226 };
227
228 #include "spi1-nvram.dtsi"