Skip to content

Commit cfe8c9c

Browse files
committed
arm64: dts: apple: t60xx: j[34]1[46]: Add dp-altmode hacks
Blessed dp-altmode port is front left port on j314/j316/j414/j416. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent b04b3bc commit cfe8c9c

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi

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

12+
#define ENABLE_DCPEXT_TYPEC
13+
1214
#include <dt-bindings/leds/common.h>
1315

1416
/ {
@@ -22,6 +24,9 @@
2224
bluetooth0 = &bluetooth0;
2325
dcp = &dcp;
2426
dcpext0 = &dcpext0;
27+
#ifdef ENABLE_DCPEXT_TYPEC
28+
dcpext1 = &dcpext1;
29+
#endif
2530
disp0 = &display;
2631
disp0_piodma = &disp0_piodma;
2732
serial0 = &serial0;
@@ -186,6 +191,11 @@
186191
power-role = "dual";
187192
data-role = "dual";
188193

194+
#ifdef ENABLE_DCPEXT_TYPEC
195+
/* hacks */
196+
displayport = <&dcpext1>;
197+
#endif
198+
189199
ports {
190200
#address-cells = <1>;
191201
#size-cells = <0>;
@@ -247,6 +257,46 @@
247257
};
248258
};
249259

260+
#ifdef ENABLE_DCPEXT_TYPEC
261+
262+
&display {
263+
iommus = <&disp0_dart 0>, <&dispext0_dart 0>, <&dispext1_dart 0>;
264+
};
265+
266+
&dispext1_dart {
267+
status = "okay";
268+
};
269+
270+
&dcpext1_dart {
271+
status = "okay";
272+
};
273+
274+
&dcpext1_mbox {
275+
status = "okay";
276+
};
277+
278+
&dcpext1 {
279+
status = "okay";
280+
apple,connector-type = "DP";
281+
282+
/* hacks */
283+
apple,dptx-phy = <1>;
284+
phys = <&atcphy1 PHY_TYPE_DP>;
285+
phy-names = "dp-phy";
286+
mux-controls = <&atcphy1_xbar 0>;
287+
mux-control-names = "dp-xbar";
288+
mux-index = <2>;
289+
};
290+
291+
&dpaudio2 {
292+
status = "okay";
293+
};
294+
295+
&atcphy1_xbar {
296+
status = "okay";
297+
};
298+
#endif
299+
250300
/* Virtual regulator representing the shared shutdown GPIO */
251301
/ {
252302
speaker_sdz: fixed-regulator-sn012776-sdz {

0 commit comments

Comments
 (0)