diff mbox

[2/2] phy: samsung: add simple phys for exynos5420 SoC

Message ID 1397988495-29376-3-git-send-email-rahul.sharma@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Rahul Sharma April 20, 2014, 10:08 a.m. UTC
From: Rahul Sharma <Rahul.Sharma@samsung.com>

Extend the support for simple phys for exynos5420
SoC in simple phy driver.

Change-Id: I0ab7b59b1f013db9e924fc868bd8b1b6ed8acbb3
Signed-off-by: Rahul Sharma <Rahul.Sharma@samsung.com>
---
 .../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

Comments

Pankaj Dubey April 21, 2014, 12:52 a.m. UTC | #1
Hi Rahul,

On 04/20/2014 07:08 PM, Rahul Sharma wrote:
> From: Rahul Sharma <Rahul.Sharma@samsung.com>
>
> Extend the support for simple phys for exynos5420
> SoC in simple phy driver.
>
> Change-Id: I0ab7b59b1f013db9e924fc868bd8b1b6ed8acbb3
Change-Id should be removed.
> Signed-off-by: Rahul Sharma <Rahul.Sharma@samsung.com>
> ---
>   .../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
File permission should not be changed.
>
> 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);
diff mbox

Patch

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);