]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: rockchip: Enable HDMI1 on Orange Pi 5 Ultra
authorJimmy Hon <honyuenkwun@gmail.com>
Sat, 22 Feb 2025 19:33:31 +0000 (13:33 -0600)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 27 Feb 2025 13:36:06 +0000 (14:36 +0100)
Enable the only HDMI output port on the Orange Pi 5 Ultra

Signed-off-by: Jimmy Hon <honyuenkwun@gmail.com>
Tested-By: Johannes Erdfelt <johannes@erdfelt.com>
Link: https://lore.kernel.org/r/20250222193332.1761-5-honyuenkwun@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-ultra.dts

index c17b907df1c0704e12a9483643e457c4b6914fa0..489eb5b3c25fa698d931970141bfb591e2888eb2 100644 (file)
@@ -5,11 +5,46 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/pinctrl/rockchip.h>
 #include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/soc/rockchip,vop2.h>
 #include "rk3588-orangepi-5-compact.dtsi"
 
 / {
        model = "Xunlong Orange Pi 5 Ultra";
        compatible = "xunlong,orangepi-5-ultra", "rockchip,rk3588";
+
+       hdmi1-con {
+               compatible = "hdmi-connector";
+               type = "a";
+
+               port {
+                       hdmi1_con_in: endpoint {
+                               remote-endpoint = <&hdmi1_out_con>;
+                       };
+               };
+       };
+};
+
+&hdmi1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&hdmim0_tx1_cec &hdmim0_tx1_hpd
+                            &hdmim1_tx1_scl &hdmim1_tx1_sda>;
+       status = "okay";
+};
+
+&hdmi1_in {
+       hdmi1_in_vp0: endpoint {
+               remote-endpoint = <&vp0_out_hdmi1>;
+       };
+};
+
+&hdmi1_out {
+       hdmi1_out_con: endpoint {
+               remote-endpoint = <&hdmi1_con_in>;
+       };
+};
+
+&hdptxphy1 {
+       status = "okay";
 };
 
 &led_blue_pwm {
 &vcc5v0_usb30_otg {
        gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>;
 };
+
+&vp0 {
+       vp0_out_hdmi1: endpoint@ROCKCHIP_VOP2_EP_HDMI1 {
+               reg = <ROCKCHIP_VOP2_EP_HDMI1>;
+               remote-endpoint = <&hdmi1_in_vp0>;
+       };
+};