From patchwork Thu Jul 26 10:12:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10545519 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6DF2614E2 for ; Thu, 26 Jul 2018 10:13:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55EE5285C7 for ; Thu, 26 Jul 2018 10:13:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 453C12862D; Thu, 26 Jul 2018 10:13:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9CB4B285C7 for ; Thu, 26 Jul 2018 10:12:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9552D6E700; Thu, 26 Jul 2018 10:12:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3E7986E6FE for ; Thu, 26 Jul 2018 10:12:51 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180726101250euoutp026ab835d70b762580c1085a447cd9d53e~E442CrJcL2693126931euoutp02d; Thu, 26 Jul 2018 10:12:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180726101250euoutp026ab835d70b762580c1085a447cd9d53e~E442CrJcL2693126931euoutp02d Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180726101249eucas1p28544f1328c5fe11df5125224944d79a9~E441RAUSn1620916209eucas1p2A; Thu, 26 Jul 2018 10:12:49 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 6F.E8.61560.0AE995B5; Thu, 26 Jul 2018 11:12:49 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180726101248eucas1p14ede2f90176b93f0bfde1808b494abbd~E440bMRhy1428914289eucas1p1h; Thu, 26 Jul 2018 10:12:48 +0000 (GMT) X-AuditID: cbfec7f5-207ff7000002f078-8a-5b599ea0c417 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id A0.A2.04178.0AE995B5; Thu, 26 Jul 2018 11:12:48 +0100 (BST) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PCG00LV9XP8AQ50@eusync1.samsung.com>; Thu, 26 Jul 2018 11:12:48 +0100 (BST) From: Andrzej Hajda To: Krzysztof Kozlowski Subject: [PATCH 2/2] ARM: dts: exynos: arndale: fix HDMI-HPD line handling Date: Thu, 26 Jul 2018 12:12:28 +0200 Message-id: <20180726101228.14956-2-a.hajda@samsung.com> X-Mailer: git-send-email 2.18.0 In-reply-to: <20180726101228.14956-1-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgF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GGB cBqZJOZsXscCUsUmoCnxdzNIFSeHCJB9/e93VpAiZoFPjBJ3199nBEkIC3hJtLe3M4PYLAKq Evdm32EHsXkFLCRON25ih1gnL/HweDtQPQcHp4ClxMw9RiBhIaCSGUeamSYw8ixgZFjFKJJa WpybnltsqFecmFtcmpeul5yfu4kRGDLbjv3cvIPx0sbgQ4wCHIxKPLwXZkZEC7EmlhVX5h5i lOBgVhLhXZ4WGS3Em5JYWZValB9fVJqTWnyIUZqDRUmc97xBZZSQQHpiSWp2ampBahFMlomD U6qBUSpUOcRmxh/h7d7t9vc3OYSHfe5+v+7Hc6fjB+unXO9L4tB25VDbu+b6WlXtCxZsam+9 PeJd363wNpFdl8MZGZaewa6dGvcjOePuVDHbwI/PD5ytYX88L9/qeoFwtIWzKleyndQmvawb /g9/qU9UFea9YfGjJoXR/NbjsqzdIkd0i6e6flmtxFKckWioxVxUnAgAMLF+HBUCAAA= X-CMS-MailID: 20180726101248eucas1p14ede2f90176b93f0bfde1808b494abbd X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180726101248eucas1p14ede2f90176b93f0bfde1808b494abbd References: <20180726101228.14956-1-a.hajda@samsung.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, Marek Szyprowski MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 --- arch/arm/boot/dts/exynos5250-arndale.dts | 4 +++- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos5250-arndale.dts b/arch/arm/boot/dts/exynos5250-arndale.dts index 591023391f7d..26bae5157177 100644 --- a/arch/arm/boot/dts/exynos5250-arndale.dts +++ b/arch/arm/boot/dts/exynos5250-arndale.dts @@ -210,9 +210,11 @@ }; &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>; diff --git a/arch/arm/boot/dts/exynos5250-pinctrl.dtsi b/arch/arm/boot/dts/exynos5250-pinctrl.dtsi index b25d520393b8..d31a68672bfa 100644 --- a/arch/arm/boot/dts/exynos5250-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos5250-pinctrl.dtsi @@ -599,6 +599,11 @@ samsung,pin-pud = ; samsung,pin-drv = ; }; + + hdmi_hpd: hdmi-hpd { + samsung,pins = "gpx3-7"; + samsung,pin-pud = ; + }; }; &pinctrl_1 {