Skip to content

Commit 6fc52d7

Browse files
committed
arm64: dts: apple: t8103: Add dp-altmode dts hacks
Enable DP alt mode for all M1 devices: - Mac Mini (M1): USB-C port next to the HDMI port - Macbook Pro (M1, 13-inch): front left USB-C port - Macbook Air (M1, 13-inch): front left USB-C port - iMac (M1, 2 USB-C ports): back left USB-C port - iMac (M1, 4 USB-C ports): back right middle USB-C port Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 02113c7 commit 6fc52d7

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

arch/arm64/boot/dts/apple/t8103-jxxx.dtsi

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@
99
* Copyright The Asahi Linux Contributors
1010
*/
1111

12+
#define ENABLE_DCPEXT_TYPEC
13+
1214
/ {
1315
aliases {
1416
bluetooth0 = &bluetooth0;
1517
dcp = &dcp;
18+
#ifdef ENABLE_DCPEXT_TYPEC
19+
dcpext = &dcpext;
20+
#endif
1621
disp0 = &display;
1722
disp0_piodma = &disp0_piodma;
1823
serial0 = &serial0;
@@ -103,6 +108,11 @@
103108
power-role = "dual";
104109
data-role = "dual";
105110

111+
#ifdef ENABLE_DCPEXT_TYPEC
112+
/* hacks */
113+
displayport = <&dcpext>;
114+
#endif
115+
106116
ports {
107117
#address-cells = <1>;
108118
#size-cells = <0>;
@@ -123,6 +133,41 @@
123133
};
124134
};
125135

136+
#ifdef ENABLE_DCPEXT_TYPEC
137+
&display {
138+
iommus = <&disp0_dart 0>, <&dispext0_dart 0>;
139+
};
140+
141+
&dispext0_dart {
142+
status = "okay";
143+
};
144+
145+
&dcpext_dart {
146+
status = "okay";
147+
};
148+
149+
&dcpext_mbox {
150+
status = "okay";
151+
};
152+
153+
&dcpext {
154+
status = "okay";
155+
apple,connector-type = "DP";
156+
157+
/* hacks */
158+
apple,dptx-phy = <1>;
159+
phys = <&atcphy1 PHY_TYPE_DP>;
160+
phy-names = "dp-phy";
161+
mux-controls = <&atcphy1_xbar 0>;
162+
mux-control-names = "dp-xbar";
163+
mux-index = <0>;
164+
};
165+
166+
&dpaudio1 {
167+
status = "okay";
168+
};
169+
#endif
170+
126171
/* USB controllers */
127172
&dwc3_0 {
128173
ports {

0 commit comments

Comments
 (0)