]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: rockchip: Enable eDP display for Cool Pi GenBook
authorAndy Yan <andyshrk@163.com>
Sat, 26 Apr 2025 07:15:41 +0000 (15:15 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 28 Apr 2025 12:10:19 +0000 (14:10 +0200)
Cool Pi CM5 GenBook equipped with a 1080P eDP panel, the panel
connected on board with 30/40 pin connector.

There is no hpd hooked up on the board, so we need to set
hpd-absent-delay-ms in dts.

Signed-off-by: Andy Yan <andyshrk@163.com>
Link: https://lore.kernel.org/r/20250426071554.1305042-2-andyshrk@163.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588-coolpi-cm5-genbook.dts

index 6dc10da5215f962d43ff363ef266d3dbae876804..738637ecaf557f6f43f4b3e2b8106008c3a2f7f6 100644 (file)
        };
 };
 
+&edp1 {
+       force-hpd;
+       status = "okay";
+
+       aux-bus {
+               panel {
+                       compatible = "edp-panel";
+                       hpd-absent-delay-ms = <200>;
+                       no-hpd;
+                       backlight = <&backlight>;
+                       power-supply = <&vcc3v3_lcd>;
+
+                       port {
+                               panel_in_edp: endpoint {
+                                       remote-endpoint = <&edp_out_panel>;
+                               };
+                       };
+               };
+       };
+};
+
+&edp1_in {
+       edp1_in_vp2: endpoint {
+               remote-endpoint = <&vp2_out_edp1>;
+       };
+};
+
+&edp1_out {
+       edp_out_panel: endpoint {
+               remote-endpoint = <&panel_in_edp>;
+       };
+};
+
+
 /* HDMI CEC is not used */
 &hdmi0 {
        pinctrl-0 = <&hdmim0_tx0_hpd &hdmim0_tx0_scl &hdmim0_tx0_sda>;
        status = "okay";
 };
 
+&hdptxphy1 {
+       status = "okay";
+};
+
 &i2c4 {
        status = "okay";
        pinctrl-names = "default";
 };
 
 &vop {
+       assigned-clocks = <&cru DCLK_VOP2_SRC>;
+       assigned-clock-parents = <&cru PLL_V0PLL>;
        status = "okay";
 };
 
                remote-endpoint = <&hdmi0_in_vp0>;
        };
 };
+
+&vp2 {
+       vp2_out_edp1: endpoint@ROCKCHIP_VOP2_EP_EDP1 {
+               reg = <ROCKCHIP_VOP2_EP_EDP1>;
+               remote-endpoint = <&edp1_in_vp2>;
+       };
+};