From patchwork Sun Apr 20 10:08:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Sharma X-Patchwork-Id: 4020921 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 CF3DFBFF02 for ; Sun, 20 Apr 2014 10:09:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4E8A62017A for ; Sun, 20 Apr 2014 10:09:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D860B20211 for ; Sun, 20 Apr 2014 10:09:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755197AbaDTKJE (ORCPT ); Sun, 20 Apr 2014 06:09:04 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:19871 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754911AbaDTKJC (ORCPT ); Sun, 20 Apr 2014 06:09:02 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4B00HW4QV11I20@mailout1.samsung.com> for linux-samsung-soc@vger.kernel.org; Sun, 20 Apr 2014 19:09:01 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 9C.BA.11120.CBC93535; Sun, 20 Apr 2014 19:09:01 +0900 (KST) X-AuditID: cbfee68f-b7eff6d000002b70-6b-53539cbc3fca Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 91.5E.25708.CBC93535; Sun, 20 Apr 2014 19:09:00 +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:00 +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 1/2] phy: samsung: add simple phys for exynos5250 SoC Date: Sun, 20 Apr 2014 15:38:14 +0530 Message-id: <1397988495-29376-2-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+NgFmpikeLIzCtJLcpLzFFi42JZI2JSrbt3TnCwwdG/HBaT7k9gsfi+6wu7 Re+Cq2wWF572sFlsenyN1WLG+X1MFou2AiUWvoi3mLLoMKvFvPaXrA5cHjtn3WX32Lyk3qNv yypGj+M3tjN5fN4kF8AaxWWTkpqTWZZapG+XwJUxadY71oIm4Yp/K4+zNjDu5+9i5OSQEDCR uHh0MiOELSZx4d56ti5GLg4hgaWMEiemTGOGKdq5YR0jRGIRo8TcTbPYQBJCAu1MEp/2loHY bAK6ErMPPgMq4uAQEfCWWH5NEaSeWeA4o8TM769ZQWqEBVwlts1czQRiswioSnx5/QBsDq+A h8TXl09ZQXolBBQk5kyyAQlzCnhKfNn6EmqVh8SRLceZQGZKCGxil/g34z0zxBwBiW+TD7FA 9MpKbDoAdbOkxMEVN1gmMAovYGRYxSiaWpBcUJyUXmSsV5yYW1yal66XnJ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NaYYO4bJX7JjGvRzuDO1qVrPpsujNzBoVTtKbK8Zqn1tuC2Q6en6E35 9+WB7WnJhyv035idW7jlzNbTPQ/Wy3VP/nanY0/NCj0NzRf+R87pfVb5l7hpVn378v7mGiWW 4oxEQy3mouJEAH8ja+XyAgAA 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 exynos5250 SoC in simple phy driver. Change-Id: I39e7745e01ae4b1cf5063dce8a29ebdc37180130 --- .../devicetree/bindings/phy/samsung-phy.txt | 22 ++++++++++++++++++++ drivers/phy/exynos-simple-phy.c | 9 ++++++++ 2 files changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/samsung-phy.txt b/Documentation/devicetree/bindings/phy/samsung-phy.txt index f97c4c3..f469099 100644 --- a/Documentation/devicetree/bindings/phy/samsung-phy.txt +++ b/Documentation/devicetree/bindings/phy/samsung-phy.txt @@ -122,6 +122,7 @@ Required properties: - compatible : should be one of the listed compatibles: - "samsung,exynos4210-simple-phy" - "samsung,exynos4412-simple-phy" + - "samsung,exynos5250-simple-phy" - reg : offset and length of the register set; - #phy-cells : from the generic phy bindings, must be 1; @@ -138,3 +139,24 @@ the PHY specifier identifies the PHY and its meaning is as follows: 0 - HDMI PHY, 1 - ADC PHY, +For "samsung,exynos5250-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, + 2 - ADC PHY, + +Example: +Simple PHY provider node: + + simplephys: simple-phys@10040000 { + compatible = "samsung,exynos5250-simple-phy"; + reg = <0x10040000 0x10000>; + #phy-cells = <1>; + }; + +Other nodes accessing simple PHYs: + + hdmi { + phys = <&simplephys 0>; + phy-names = "hdmiphy"; + }; diff --git a/drivers/phy/exynos-simple-phy.c b/drivers/phy/exynos-simple-phy.c index 57ad338..187f6b1 100644 --- a/drivers/phy/exynos-simple-phy.c +++ b/drivers/phy/exynos-simple-phy.c @@ -64,11 +64,20 @@ static const u32 exynos4412_offsets[] = { ~0, /* end mark */ }; +static const u32 exynos5250_offsets[] = { + 0x0700, /* HDMI_PHY */ + 0x0718, /* ADC_PHY */ + 0x0724, /* SATA_PHY */ + ~0, /* end mark */ +}; + static const struct of_device_id exynos_phy_of_match[] = { { .compatible = "samsung,exynos4210-simple-phy", .data = exynos4210_offsets}, { .compatible = "samsung,exynos4412-simple-phy", .data = exynos4412_offsets}, + { .compatible = "samsung,exynos5250-simple-phy", + .data = exynos5250_offsets}, { }, }; MODULE_DEVICE_TABLE(of, exynos_phy_of_match);