1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* Apple MacBook Pro (13-inch, M1, 2022)
*
* target-type: J493
*
* Copyright The Asahi Linux Contributors
*/
/dts-v1/;
#include "t8112.dtsi"
#include "t8112-jxxx.dtsi"
/ {
compatible = "apple,j493", "apple,t8112", "apple,arm-platform";
model = "Apple MacBook Pro (13-inch, M2, 2022)";
aliases {
wifi0 = &wifi0;
bluetooth0 = &bluetooth0;
};
};
/*
* Force the bus number assignments so that we can declare some of the
* on-board devices and properties that are populated by the bootloader
* (such as MAC addresses).
*/
&port00 {
bus-range = <1 1>;
pwren-gpios = <&smc_gpio 13 GPIO_ACTIVE_HIGH>;
wifi0: network@0,0 {
compatible = "pci14e4,4425";
reg = <0x10000 0x0 0x0 0x0 0x0>;
/* To be filled by the loader */
local-mac-address = [00 00 00 00 00 00];
apple,antenna-sku = "XX";
brcm,board-type = "apple,kyushu";
};
bluetooth0: network@0,1 {
compatible = "pci14e4,5f69";
reg = <0x10100 0x0 0x0 0x0 0x0>;
/* To be filled by the loader */
local-bd-address = [00 00 00 00 00 00];
brcm,board-type = "apple,kyushu";
};
};
/*
* Provide labels for the USB type C ports.
*/
&typec0 {
label = "USB-C Left-back";
};
&typec1 {
label = "USB-C Left-front";
};
/*
* Remove unused PCIe ports and disable the associated DARTs.
*/
/delete-node/ &port01;
/delete-node/ &port02;
/delete-node/ &port03;
&i2c1 {
speaker_left_rear: codec@38 {
compatible = "ti,sn012776", "ti,tas2764";
reg = <0x38>;
shutdown-gpios = <&pinctrl_ap 88 GPIO_ACTIVE_HIGH>;
#sound-dai-cells = <0>;
sound-name-prefix = "Left Rear";
};
speaker_left_front: codec@39 {
compatible = "ti,sn012776", "ti,tas2764";
reg = <0x39>;
shutdown-gpios = <&pinctrl_ap 88 GPIO_ACTIVE_HIGH>;
#sound-dai-cells = <0>;
sound-name-prefix = "Left Front";
};
};
&i2c2 {
status = "okay";
};
&i2c3 {
speaker_right_rear: codec@3b {
compatible = "ti,sn012776", "ti,tas2764";
reg = <0x3b>;
shutdown-gpios = <&pinctrl_ap 88 GPIO_ACTIVE_HIGH>;
#sound-dai-cells = <0>;
sound-name-prefix = "Right Rear";
};
speaker_right_front: codec@3c {
compatible = "ti,sn012776", "ti,tas2764";
reg = <0x3c>;
shutdown-gpios = <&pinctrl_ap 88 GPIO_ACTIVE_HIGH>;
#sound-dai-cells = <0>;
sound-name-prefix = "Right Front";
};
};
&i2c4 {
status = "okay";
};
/ {
backlight: gpio-bl {
compatible = "gpio-backlight";
gpios = <&smc_gpio 18 GPIO_ACTIVE_HIGH>;
default-on;
};
sound {
compatible = "apple,j493-macaudio", "apple,macaudio";
model = "MacBook Pro J493 integrated audio";
dai-link@0 {
/*
* DANGER ZONE: You can blow your speakers!
*
* The drivers are not ready, and unless you are careful
* to attenuate the audio stream, you run the risk of
* blowing your speakers.
*/
status = "disabled";
link-name = "Speakers";
mclk-fs = <64>;
cpu {
sound-dai = <&mca 0>, <&mca 1>;
};
codec {
sound-dai = <&speaker_left_front>, <&speaker_right_front>,
<&speaker_left_rear>, <&speaker_right_rear>;
};
};
#if 0
dai-link@1 {
link-name = "Headphone Jack";
mclk-fs = <64>;
cpu {
sound-dai = <&mca 2>;
};
codec {
sound-dai = <&jack_codec>;
};
};
#endif
};
};
&framebuffer0 {
backlight = <&backlight>;
};
&mtp_hid {
multi-touch {
firmware-name = "apple/tpmtfw-j493.bin";
};
};
|