Skip to content

Commit 3fb369c

Browse files
andyshrkmmind
authored andcommitted
arm64: dts: rockchip: Enable HDMI display for rk3588 Cool Pi GenBook
Enable hdmi display output on Cool Pi GenBook. Signed-off-by: Andy Yan <andyshrk@163.com> Link: https://lore.kernel.org/r/20241028123503.384866-4-andyshrk@163.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 8d6cb84 commit 3fb369c

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3588-coolpi-cm5-genbook.dts

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/dts-v1/;
88

99
#include <dt-bindings/leds/common.h>
10+
#include <dt-bindings/soc/rockchip,vop2.h>
1011
#include "rk3588-coolpi-cm5.dtsi"
1112

1213
/ {
@@ -35,6 +36,17 @@
3536
gpios = <&gpio1 RK_PC0 GPIO_ACTIVE_LOW>;
3637
};
3738

39+
hdmi-con {
40+
compatible = "hdmi-connector";
41+
type = "a";
42+
43+
port {
44+
hdmi_con_in: endpoint {
45+
remote-endpoint = <&hdmi0_out_con>;
46+
};
47+
};
48+
};
49+
3850
leds: leds {
3951
compatible = "gpio-leds";
4052

@@ -136,6 +148,28 @@
136148
};
137149
};
138150

151+
/* HDMI CEC is not used */
152+
&hdmi0 {
153+
pinctrl-0 = <&hdmim0_tx0_hpd &hdmim0_tx0_scl &hdmim0_tx0_sda>;
154+
status = "okay";
155+
};
156+
157+
&hdmi0_in {
158+
hdmi0_in_vp0: endpoint {
159+
remote-endpoint = <&vp0_out_hdmi0>;
160+
};
161+
};
162+
163+
&hdmi0_out {
164+
hdmi0_out_con: endpoint {
165+
remote-endpoint = <&hdmi_con_in>;
166+
};
167+
};
168+
169+
&hdptxphy_hdmi0 {
170+
status = "okay";
171+
};
172+
139173
&i2c4 {
140174
status = "okay";
141175
pinctrl-names = "default";
@@ -347,3 +381,18 @@
347381
dr_mode = "host";
348382
status = "okay";
349383
};
384+
385+
&vop {
386+
status = "okay";
387+
};
388+
389+
&vop_mmu {
390+
status = "okay";
391+
};
392+
393+
&vp0 {
394+
vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
395+
reg = <ROCKCHIP_VOP2_EP_HDMI0>;
396+
remote-endpoint = <&hdmi0_in_vp0>;
397+
};
398+
};

0 commit comments

Comments
 (0)