From patchwork Thu May 8 10:37:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Sharma X-Patchwork-Id: 4134781 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 56563C0ACC for ; Thu, 8 May 2014 10:39:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 473F32011D for ; Thu, 8 May 2014 10:39:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1443C20253 for ; Thu, 8 May 2014 10:39:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753780AbaEHKjE (ORCPT ); Thu, 8 May 2014 06:39:04 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:44585 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753856AbaEHKjD (ORCPT ); Thu, 8 May 2014 06:39:03 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5900IMN48X5M80@mailout1.samsung.com>; Thu, 08 May 2014 19:38:57 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id C3.B0.14563.1CE5B635; Thu, 08 May 2014 19:38:57 +0900 (KST) X-AuditID: cbfee68e-b7fd86d0000038e3-44-536b5ec164b9 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C5.68.27725.1CE5B635; Thu, 08 May 2014 19:38:57 +0900 (KST) Received: from localhost.localdomain ([107.108.83.245]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N5900GSM48F4O70@mmp1.samsung.com>; Thu, 08 May 2014 19:38:57 +0900 (KST) From: Rahul Sharma To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, inki.dae@samsung.com, tomasz.figa@gmail.com, joshi@samsung.com, r.sh.open@gmail.com, Rahul Sharma Subject: [PATCH v2 3/4] ARM: dts: enable hdmi for exynos5420 based peach-pit board Date: Thu, 08 May 2014 16:07:58 +0530 Message-id: <1399545479-20086-4-git-send-email-rahul.sharma@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1399545479-20086-1-git-send-email-rahul.sharma@samsung.com> References: <1399545479-20086-1-git-send-email-rahul.sharma@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsWyRsSkVvdgXHawwbWfahbzj5xjtZh0fwKL xfddX9gtehdcZbPY9Pgaq8WM8/uYLBa+iLeYsugwq8WqXX8YHTg9ds66y+6xeUm9R9+WVYwe nzfJBbBEcdmkpOZklqUW6dslcGVM37+frWCzYMX8u5+YGxjn8HUxcnJICJhIPGmbxQJhi0lc uLeerYuRi0NIYCmjxPRb05hhiv5u2sMCkVjEKLH4/xxWCKedSeLr7WdgVWwCuhKzDz5jBLFF BDIl5h98xw5SxCwwk1FizZq77CAJYYEQiS/njwPZHBwsAqoSuw8KgIR5BTwkjiw4zQgSlhBQ kJgzyQYkzCngKfHt9DImEFsIqKTtw0SoS5exS6ztlgGxWQQEJL5NPsQC0SorsekA1M2SEgdX 3GCZwCi8gJFhFaNoakFyQXFSepGRXnFibnFpXrpecn7uJkZgqJ/+96xvB+PNA9aHGJOBxk1k lhJNzgfGSl5JvKGxmZGFqYmpsZG5pRlpwkrivIseJ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ULWktXh8p4/eexEssP8P3UyMOqMXftdiWW4oxEQy3mouJE AKum0x3pAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rahul Sharma Enable hdmi for exynos5420 based peach-pit board. Signed-off-by: Rahul Sharma --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 19 +++++++++++++++++++ arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5420.dtsi | 5 +++++ 3 files changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index fae33dd..8248255 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -137,6 +137,25 @@ }; }; +&i2c_2 { + status = "okay"; + samsung,i2c-sda-delay = <100>; + samsung,i2c-max-bus-freq = <66000>; + samsung,i2c-slave-addr = <0x50>; + + hdmiddc@50 { + reg = <0x50>; + }; +}; + +&hdmi { + status = "okay"; + hpd-gpio = <&gpx3 7 2>; + pinctrl-names = "default"; + pinctrl-0 = <&hdmi_hpd_irq>; + ddc = <&i2c_2>; +}; + /* * Use longest HW watchdog in SoC (32 seconds) since the hardware * watchdog provides no debugging information (compared to soft/hard diff --git a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi index ba686e4..fc17797 100644 --- a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi @@ -66,6 +66,13 @@ samsung,pin-pud = <0>; samsung,pin-drv = <0>; }; + + hdmi_hpd_irq: hdmi-hpd-irq { + samsung,pins = "gpx3-7"; + samsung,pin-function = <0>; + samsung,pin-pud = <1>; + samsung,pin-drv = <0>; + }; }; pinctrl@13410000 { diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index f1f6a06..ae1b9c0 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -641,9 +641,14 @@ <&clock CLK_MOUT_HDMI>; clock-names = "hdmi", "sclk_hdmi", "sclk_pixel", "sclk_hdmiphy", "mout_hdmi"; + phy = <&hdmiphy>; status = "disabled"; }; + hdmiphy: hdmiphy@145D0000 { + reg = <0x145D0000 0x20>; + }; + mixer: mixer@14450000 { compatible = "samsung,exynos5420-mixer"; reg = <0x14450000 0x10000>;