Skip to content

Commit d892a45

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 e6299b6 commit d892a45

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
@@ -19,20 +19,52 @@
1919

2020
aliases {
2121
bluetooth0 = &bluetooth0;
22+
/delete-property/ dcp;
23+
dcpext = &dcpext;
2224
ethernet0 = &ethernet0;
2325
wifi0 = &wifi0;
2426
};
2527
};
2628

2729
&framebuffer0 {
28-
power-domains = <&ps_disp0_cpu0>, <&ps_dptx_ext_phy>;
30+
power-domains = <&ps_dispext_cpu0>, <&ps_dptx_ext_phy>;
31+
};
32+
33+
&dptxphy {
34+
status = "okay";
2935
};
3036

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

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

0 commit comments

Comments
 (0)