From: rahul.sharma@samsung.com (Rahul Sharma)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] phy: samsung: add simple phys for exynos5250 SoC
Date: Sun, 20 Apr 2014 15:38:14 +0530 [thread overview]
Message-ID: <1397988495-29376-2-git-send-email-rahul.sharma@samsung.com> (raw)
In-Reply-To: <1397988495-29376-1-git-send-email-rahul.sharma@samsung.com>
From: Rahul Sharma <Rahul.Sharma@samsung.com>
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 at 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);
--
1.7.9.5
next prev parent reply other threads:[~2014-04-20 10:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-20 10:08 [PATCH 0/2] phy: samsung: add exynos5 SoCs for as simple phy providers Rahul Sharma
2014-04-20 10:08 ` Rahul Sharma [this message]
2014-04-21 0:50 ` [PATCH 1/2] phy: samsung: add simple phys for exynos5250 SoC Pankaj Dubey
2014-04-21 5:51 ` Rahul Sharma
2014-04-21 5:54 ` Sachin Kamat
2014-04-21 5:58 ` Rahul Sharma
2014-04-20 10:08 ` [PATCH 2/2] phy: samsung: add simple phys for exynos5420 SoC Rahul Sharma
2014-04-21 0:52 ` Pankaj Dubey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1397988495-29376-2-git-send-email-rahul.sharma@samsung.com \
--to=rahul.sharma@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).