Debian Codegraph @

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

raw
1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
2 /*
3 * Apple M2 MacBook Air/Pro (M2, 2022)
4 *
5 * This file contains parts common to all Apple M2 devices using the t8112.
6 *
7 * target-type: J493, J413
8 *
9 * Copyright The Asahi Linux Contributors
10 */
11
12 / {
13 aliases {
14 atcphy0 = &atcphy0;
15 atcphy1 = &atcphy1;
16 serial0 = &serial0;
17 serial2 = &serial2;
18 };
19
20 chosen {
21 #address-cells = <2>;
22 #size-cells = <2>;
23 ranges;
24
25 stdout-path = "serial0";
26
27 framebuffer0: framebuffer@0 {
28 compatible = "apple,simple-framebuffer", "simple-framebuffer";
29 reg = <0 0 0 0>; /* To be filled by loader */
30 /* Format properties will be added by loader */
31 status = "disabled";
32 };
33 };
34
35 memory@800000000 {
36 device_type = "memory";
37 reg = <0x8 0 0x2 0>; /* To be filled by loader */
38 };
39 };
40
41 &serial0 {
42 status = "okay";
43 };
44
45 &serial2 {
46 status = "okay";
47 };
48
49 &i2c0 {
50 status = "okay";
51
52 hpm0: usb-pd@38 {
53 compatible = "apple,cd321x";
54 reg = <0x38>;
55 interrupt-parent = <&pinctrl_ap>;
56 interrupts = <8 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 = <8 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 &i2c1 {
202 status = "okay";
203 };
204
205 &i2c2 {
206 status = "okay";
207 };
208
209 &i2c3 {
210 status = "okay";
211 };
212
213 &nco_clkref {
214 clock-frequency = <900000000>;
215 };
216
217 #include "spi1-nvram.dtsi"