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: 4020931 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 2D41EC0DA2 for ; Sun, 20 Apr 2014 10:09:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4BDBE2022D for ; Sun, 20 Apr 2014 10:09:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4EB6320213 for ; Sun, 20 Apr 2014 10:09:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755215AbaDTKJG (ORCPT ); Sun, 20 Apr 2014 06:09:06 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:35944 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754911AbaDTKJF (ORCPT ); Sun, 20 Apr 2014 06:09:05 -0400 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-samsung-soc@vger.kernel.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 Cc: kishon@ti.com, kgene.kim@samsung.com, inki.dae@samsung.com, t.stanislaws@samsung.com, joshi@samsung.com, pankaj.dubey@samsung.com, r.sh.open@gmail.com, Rahul Sharma 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 K7HpADPE0ZISB1fcYJnAKLyAkWEVo2hqQXJBcVJ6kaFecWJucW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IZ5GxRnW54dVLJnaHlYyeNFQf8tO60cegHfbJ+ujde/GqkcYvtPa3HuebkWF7exvz 9EO6nR0J4fmii9J+zU0UXaHtY79suouFwP+5Lq/mMH/OF73r/o2n1ypyxcHrVzbx1mQeXSSg xFKckWioxVxUnAgA2GEWlvMCAAA= 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 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);