From patchwork Sun Apr 20 10:08:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Sharma X-Patchwork-Id: 4020941 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 182AA9F319 for ; Sun, 20 Apr 2014 10:12:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 48A2B20211 for ; Sun, 20 Apr 2014 10:12:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 748BA2017A for ; Sun, 20 Apr 2014 10:12:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wbogr-0001aP-Fd; Sun, 20 Apr 2014 10:09:37 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wbogg-000142-3u for linux-arm-kernel@lists.infradead.org; Sun, 20 Apr 2014 10:09:30 +0000 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4B006D0QV3GI30@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Sun, 20 Apr 2014 19:09:03 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.124]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id CE.5B.18501.FBC93535; Sun, 20 Apr 2014 19:09:03 +0900 (KST) X-AuditID: cbfee68d-b7f4e6d000004845-c3-53539cbf3244 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B5.CF.27725.FBC93535; Sun, 20 Apr 2014 19:09:03 +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 <0N4B009UNQUM9Q60@mmp1.samsung.com>; Sun, 20 Apr 2014 19:09:03 +0900 (KST) From: Rahul Sharma To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 2/2] phy: samsung: add simple phys for exynos5420 SoC Date: Sun, 20 Apr 2014 15:38:15 +0530 Message-id: <1397988495-29376-3-git-send-email-rahul.sharma@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1397988495-29376-1-git-send-email-rahul.sharma@samsung.com> References: <1397988495-29376-1-git-send-email-rahul.sharma@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmkeLIzCtJLcpLzFFi42JZI2JSo7t/TnCwwcQdGhaT7k9gsfi+6wu7 Re+Cq2wWF572sFlsenyN1WLG+X1MFou2AiUWvoi3mLLoMKvFvPaXrA5cHjtn3WX32Lyk3qNv yypGj+M3tjN5fN4kF8AaxWWTkpqTWZZapG+XwJVxfOJ+toJ1QhX/+hYyNzD28HcxcnJICJhI fD2/nQ3CFpO4cG89kM3FISSwlFHi896VrDBFm752s0MkFjFKXD39nwXCaWeSWPjnJBNIFZuA rsTsg88Yuxg5OEQEvCWWX1MEqWEWOM4oMfP7a7BJwgKuEo0btrCA2CwCqhIbXlwCs3kFPCR6 3p1iBumVEFCQmDPJBiTMKeAp8WXrS7DrhIBKjmw5zgQyU0JgG7tE46kT7BBzBCS+TT7EAtEr K7HpADPE0ZISB1fcYJnAKLyAkWEVo2hqQXJBcVJ6kaFecWJucWleul5yfu4mRmA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VLJnaHlYyeNFQf8tO60cegHfbJ+ujde/GqkcYvtPa3HuebkWF7exvz 9EO6nR0J4fmii9J+zU0UXaHtY79suouFwP+5Lq/mMH/OF73r/o2n1ypyxcHrVzbx1mQeXSSg xFKckWioxVxUnAgA2GEWlvMCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140420_030926_323181_1C571D6E X-CRM114-Status: GOOD ( 11.00 ) X-Spam-Score: -5.7 (-----) Cc: t.stanislaws@samsung.com, kgene.kim@samsung.com, pankaj.dubey@samsung.com, joshi@samsung.com, kishon@ti.com, inki.dae@samsung.com, r.sh.open@gmail.com, Rahul Sharma X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,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 Extend the support for simple phys for exynos5420 SoC in simple phy driver. Change-Id: I0ab7b59b1f013db9e924fc868bd8b1b6ed8acbb3 Signed-off-by: Rahul Sharma --- .../devicetree/bindings/phy/samsung-phy.txt | 6 ++++++ drivers/phy/exynos-simple-phy.c | 8 ++++++++ 2 files changed, 14 insertions(+) mode change 100644 => 100755 drivers/phy/exynos-simple-phy.c diff --git a/Documentation/devicetree/bindings/phy/samsung-phy.txt b/Documentation/devicetree/bindings/phy/samsung-phy.txt index f469099..f0ae619 100644 --- a/Documentation/devicetree/bindings/phy/samsung-phy.txt +++ b/Documentation/devicetree/bindings/phy/samsung-phy.txt @@ -123,6 +123,7 @@ Required properties: - "samsung,exynos4210-simple-phy" - "samsung,exynos4412-simple-phy" - "samsung,exynos5250-simple-phy" + - "samsung,exynos5420-simple-phy" - reg : offset and length of the register set; - #phy-cells : from the generic phy bindings, must be 1; @@ -145,6 +146,11 @@ the PHY specifier identifies the PHY and its meaning is as follows: 1 - ADC PHY, 2 - ADC PHY, +For "samsung,exynos5420-simple-phy" compatible PHYs the second cell in +the PHY specifier identifies the PHY and its meaning is as follows: + 0 - HDMI PHY, + 1 - ADC PHY, + Example: Simple PHY provider node: diff --git a/drivers/phy/exynos-simple-phy.c b/drivers/phy/exynos-simple-phy.c old mode 100644 new mode 100755 index 187f6b1..9681a43 --- a/drivers/phy/exynos-simple-phy.c +++ b/drivers/phy/exynos-simple-phy.c @@ -71,6 +71,12 @@ static const u32 exynos5250_offsets[] = { ~0, /* end mark */ }; +static const u32 exynos5420_offsets[] = { + 0x0700, /* HDMI_PHY */ + 0x0720, /* ADC_PHY */ + ~0, /* end mark */ +}; + static const struct of_device_id exynos_phy_of_match[] = { { .compatible = "samsung,exynos4210-simple-phy", .data = exynos4210_offsets}, @@ -78,6 +84,8 @@ static const struct of_device_id exynos_phy_of_match[] = { .data = exynos4412_offsets}, { .compatible = "samsung,exynos5250-simple-phy", .data = exynos5250_offsets}, + { .compatible = "samsung,exynos5420-simple-phy", + .data = exynos5420_offsets}, { }, }; MODULE_DEVICE_TABLE(of, exynos_phy_of_match);