Skip to content

Commit 9a5c74c

Browse files
committed
arm64: apple: t8112-j473: Add DP-altmode on typec1
Needs more testing, maybe a little unstable and somehow limits the HDMI out to 1280x720 (to be verified). Using dcp as display coproc since dcpext is used for the HDMI port. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent e84d797 commit 9a5c74c

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

arch/arm64/boot/dts/apple/t8112-j473.dts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
/dts-v1/;
1111

12+
#define ENABLE_DCPEXT_TYPEC
13+
1214
#include "t8112.dtsi"
1315
#include "t8112-jxxx.dtsi"
1416

@@ -66,6 +68,47 @@
6668
apple,dptx-phy = <5>;
6769
};
6870

71+
#ifdef ENABLE_DCPEXT_TYPEC
72+
/ {
73+
aliases {
74+
dcp = &dcp;
75+
};
76+
};
77+
78+
&display {
79+
/* dispext0_dart needs to be first for m1n1's */
80+
iommus = <&dispext0_dart 0>, <&disp0_dart 0>;
81+
};
82+
83+
&disp0_dart {
84+
status = "okay";
85+
};
86+
87+
&dcp {
88+
status = "okay";
89+
apple,connector-type = "DP";
90+
91+
/* hacks */
92+
apple,dptx-phy = <1>;
93+
phys = <&atcphy1 PHY_TYPE_DP>;
94+
phy-names = "dp-phy";
95+
mux-controls = <&atcphy1_xbar 0>;
96+
mux-control-names = "dp-xbar";
97+
mux-index = <0>;
98+
};
99+
100+
&dcpext {
101+
/delete-property/ mux-controls;
102+
/delete-property/ mux-control-names;
103+
/delete-property/ mux-index;
104+
};
105+
106+
&typec1 {
107+
/* hacks */
108+
displayport = <&dcp>;
109+
};
110+
#endif
111+
69112
/* remove once m1n1 enables sio nodes after setup */
70113
&sio {
71114
status = "okay";

0 commit comments

Comments
 (0)