Skip to content

Commit d506554

Browse files
committed
arm64: dts: apple: t8112-j473: Enable dcpext0/dptx-phy/dp2hdmi
After all parts are in place enable DCP on the M2 Mac Mini for HDMI output. Use dcpext for HDMI out dcp on t8112 and t602x does not wake up after sleep + reset but dcpext* does. Use dcpext0 for sharing the code with M1* devices. My interpretation of the tea leaves from Apple's marketing department suggests that dcpext is more capable (6k 60Hz vs 5k 60Hz) so use dcpext as long as only one is used. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent ca8179b commit d506554

1 file changed

Lines changed: 34 additions & 2 deletions

File tree

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

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,52 @@
1818

1919
aliases {
2020
bluetooth0 = &bluetooth0;
21+
/delete-property/ dcp;
22+
dcpext = &dcpext;
2123
ethernet0 = &ethernet0;
2224
wifi0 = &wifi0;
2325
};
2426
};
2527

2628
&framebuffer0 {
27-
power-domains = <&ps_disp0_cpu0>, <&ps_dptx_ext_phy>;
29+
power-domains = <&ps_dispext_cpu0>, <&ps_dptx_ext_phy>;
30+
};
31+
32+
&dptxphy {
33+
status = "okay";
2834
};
2935

30-
/* disable dcp until it is supported */
3136
&dcp {
3237
status = "disabled";
3338
};
3439

40+
&display {
41+
iommus = <&dispext0_dart 0>;
42+
};
43+
&dispext0_dart {
44+
status = "okay";
45+
};
46+
&dcpext_dart {
47+
status = "okay";
48+
};
49+
&dcpext_mbox {
50+
status = "okay";
51+
};
52+
&dcpext {
53+
status = "okay";
54+
apple,connector-type = "HDMI-A";
55+
56+
/* HDMI HPD gpio, used as interrupt*/
57+
hdmi-hpd-gpios = <&pinctrl_aop 49 GPIO_ACTIVE_HIGH>;
58+
59+
hdmi-pwren-gpios = <&smc_gpio 21 GPIO_ACTIVE_HIGH>;
60+
dp2hdmi-pwren-gpios = <&smc_gpio 22 GPIO_ACTIVE_HIGH>;
61+
62+
phys = <&dptxphy>;
63+
phy-names = "dp-phy";
64+
apple,dptx-phy = <5>;
65+
};
66+
3567
/*
3668
* Provide labels for the USB type C ports.
3769
*/

0 commit comments

Comments
 (0)