ARM: dts: exynos: Fix HDMI-HPD line handling on Arndale
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 26 Jul 2018 10:12:28 +0000 (12:12 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Wed, 29 Aug 2018 18:57:51 +0000 (20:57 +0200)
HDMI-HPD was set active low, moreover by default pincontrol chip sets
pull-down on the pin. As a result HDMI driver assumes TV is always
connected regardless of actual state.  The patch fixes it.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos5250-arndale.dts
arch/arm/boot/dts/exynos5250-pinctrl.dtsi

index e7a9b9a..88f060a 100644 (file)
 };
 
 &hdmi {
+       pinctrl-names = "default";
+       pinctrl-0 = <&hdmi_hpd>;
        status = "okay";
        ddc = <&i2c_ddc>;
-       hpd-gpios = <&gpx3 7 GPIO_ACTIVE_LOW>;
+       hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
        vdd_osc-supply = <&ldo10_reg>;
        vdd_pll-supply = <&ldo8_reg>;
        vdd-supply = <&ldo8_reg>;
index b25d520..d31a686 100644 (file)
                samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
                samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
        };
+
+       hdmi_hpd: hdmi-hpd {
+               samsung,pins = "gpx3-7";
+               samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+       };
 };
 
 &pinctrl_1 {