From 61e10f6f64ddec99536ca21f0cdb07ee10293f86 Mon Sep 17 00:00:00 2001 From: Muhammed Efe Cetin Date: Tue, 6 Aug 2024 14:47:37 +0300 Subject: [PATCH] rockchip-rk3588-edge: add HDMI & VOP2 back to OPi5 devicetree --- .../dt/rk3588s-orangepi-5.dts | 49 ++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip-rk3588-6.11/dt/rk3588s-orangepi-5.dts b/patch/kernel/archive/rockchip-rk3588-6.11/dt/rk3588s-orangepi-5.dts index 6c950cd015..ea8c082a58 100644 --- a/patch/kernel/archive/rockchip-rk3588-6.11/dt/rk3588s-orangepi-5.dts +++ b/patch/kernel/archive/rockchip-rk3588-6.11/dt/rk3588s-orangepi-5.dts @@ -49,6 +49,17 @@ }; }; + hdmi0-con { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi0_con_in: endpoint { + remote-endpoint = <&hdmi0_out_con>; + }; + }; + }; + vbus_typec: vbus-typec-regulator { compatible = "regulator-fixed"; enable-active-high; @@ -743,7 +754,7 @@ }; &usb_host0_xhci { - dr_mode = "otg"; + dr_mode = "host"; usb-role-switch; status = "okay"; @@ -765,3 +776,39 @@ &usb_host2_xhci { status = "okay"; }; + +&hdptxphy_hdmi0 { + status = "okay"; +}; + +&hdmi0 { + enable-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint = <&vp0_out_hdmi0>; + }; +}; + +&hdmi0_out { + hdmi0_out_con: endpoint { + remote-endpoint = <&hdmi0_con_in>; + }; +}; + +&vop { + status = "okay"; +}; + +&vop_mmu { + status = "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg = ; + remote-endpoint = <&hdmi0_in_vp0>; + }; +};