Skip to content

Commit 69a9e19

Browse files
committed
arm64: dts: apple: Fill device node for dp2hdmi on Macbook Pros
The HDMI output on the 14 and 16 inch Macbook Pros with M1/M2 Pro/Max is driven by an unused ATC port using the phy and crossbar. The DP output from any dcpext display controller is routed to a Kinetic DP2HDMI converter (MCDP2920 and a unknown HDMI 2.1 capable variant). Signed-off-by: Janne Grunau <j@jannau.net>
1 parent b17fd35 commit 69a9e19

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
atcphy3 = &atcphy3;
2222
bluetooth0 = &bluetooth0;
2323
dcp = &dcp;
24+
dcpext0 = &dcpext0;
2425
disp0 = &display;
2526
disp0_piodma = &disp0_piodma;
2627
serial0 = &serial0;
@@ -73,6 +74,44 @@
7374
};
7475
};
7576

77+
&display {
78+
iommus = <&disp0_dart 0>, <&dispext0_dart 0>;
79+
};
80+
81+
&dispext0_dart {
82+
status = "okay";
83+
};
84+
85+
&dcpext0_dart {
86+
status = "okay";
87+
};
88+
89+
&dcpext0_mbox {
90+
status = "okay";
91+
};
92+
93+
&dcpext0 {
94+
/* enabled by the loader */
95+
apple,connector-type = "HDMI-A";
96+
97+
/* HDMI HPD gpio, used as interrupt*/
98+
hdmi-hpd-gpios = <&pinctrl_nub 15 GPIO_ACTIVE_HIGH>;
99+
100+
hdmi-pwren-gpios = <&smc_gpio 23 GPIO_ACTIVE_HIGH>;
101+
dp2hdmi-pwren-gpios = <&smc_gpio 6 GPIO_ACTIVE_HIGH>;
102+
103+
phys = <&atcphy3 PHY_TYPE_DP>;
104+
phy-names = "dp-phy";
105+
mux-controls = <&atcphy3_xbar 0>;
106+
mux-control-names = "dp-xbar";
107+
mux-index = <0>;
108+
apple,dptx-phy = <3>;
109+
};
110+
111+
&atcphy3_xbar {
112+
status = "okay";
113+
};
114+
76115
/* USB Type C */
77116
&i2c0 {
78117
hpm0: usb-pd@38 {

arch/arm64/boot/dts/apple/t602x-j414-j416.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
apple,always-on;
3535
};
3636

37+
&dcpext0 {
38+
/* HDMI HPD gpio, used as interrupt*/
39+
hdmi-hpd-gpios = <&pinctrl_aop 25 GPIO_ACTIVE_HIGH>;
40+
};
41+
3742
&hpm0 {
3843
interrupts = <44 IRQ_TYPE_LEVEL_LOW>;
3944
};

0 commit comments

Comments
 (0)