]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: rockchip: Add frl-enable-gpios to rk3576-nanopi-r76s
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Mon, 27 Apr 2026 21:57:21 +0000 (00:57 +0300)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 5 May 2026 18:28:39 +0000 (20:28 +0200)
The board exposes the GPIO4_C6 pin to control the voltage bias on the
HDMI data lines.  It must be asserted when operating in HDMI 2.1 FRL
mode and deasserted for HDMI 1.4/2.0 TMDS mode.

Wire up the hdmi node to its dedicated GPIO via frl-enable-gpios to
allow adjusting the bias when transitioning between TMDS and FRL modes.

Additionally, drop the now unnecessary workaround of using vcc5v_hdmi_tx
as hdmi-pwr-supply solely to drive the GPIO into its default state.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://patch.msgid.link/20260428-dts-rk-frl-enable-gpios-v2-3-924df9db884a@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3576-nanopi-r76s.dts

index 7ec27b05ff10e616d3d45326df1b8fab0778f666..0a5cd5f6fd334919c8e58ddc84dc584856513be1 100644 (file)
@@ -70,7 +70,6 @@
 
        hdmi-con {
                compatible = "hdmi-connector";
-               hdmi-pwr-supply = <&vcc5v_hdmi_tx>;
                type = "a";
 
                port {
                regulator-name = "vcc5v_dcin";
        };
 
-       vcc5v_hdmi_tx: regulator-vcc5v-hdmi-tx {
-               compatible = "regulator-fixed";
-               enable-active-high;
-               gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
-               pinctrl-names = "default";
-               pinctrl-0 = <&hdmi_tx_on_h>;
-               regulator-min-microvolt = <5000000>;
-               regulator-max-microvolt = <5000000>;
-               regulator-name = "vcc5v_hdmi_tx";
-               vin-supply = <&vcc5v0_sys_s5>;
-       };
-
        vcc5v0_device_s0: regulator-vcc5v0-device-s0 {
                compatible = "regulator-fixed";
                regulator-always-on;
 };
 
 &hdmi {
+       frl-enable-gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_LOW>;
+       pinctrl-0 = <&hdmi_txm0_pins &hdmi_tx_scl &hdmi_tx_sda &hdmi_tx_on_h>;
+       pinctrl-names = "default";
        status = "okay";
 };