All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode
@ 2012-07-12  9:36 Jia Hongtao
  2012-07-12 10:28 ` Jia Hongtao-B38951
  2012-07-12 15:08 ` Kumar Gala
  0 siblings, 2 replies; 5+ messages in thread
From: Jia Hongtao @ 2012-07-12  9:36 UTC (permalink / raw)
  To: linuxppc-dev, galak; +Cc: b38951

In SGMII riser card different PHY chip are used with different external
IRQ from eTSEC. To support PHY link state auto detect in SGMII mode we
should add another group of PHY nodes for SGMII mode.

For MPC8572DS IRQ6 is used for PHY0~PHY1, IRQ7 is used for PHY2~PHY3.
For MPC8544DS and MPC8536DS IRQ6 is used for PHY0~PHY1.
For P2020DS IRQ5 is used for PHY1~PHY2.

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Jia Hongtao <B38951@freescale.com>
---
 arch/powerpc/boot/dts/mpc8536ds.dtsi |    8 ++++++++
 arch/powerpc/boot/dts/mpc8544ds.dtsi |    9 +++++++++
 arch/powerpc/boot/dts/mpc8572ds.dtsi |   17 +++++++++++++++++
 arch/powerpc/boot/dts/p2020ds.dtsi   |   10 ++++++++++
 4 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8536ds.dtsi b/arch/powerpc/boot/dts/mpc8536ds.dtsi
index cc46dbd..d304a2d 100644
--- a/arch/powerpc/boot/dts/mpc8536ds.dtsi
+++ b/arch/powerpc/boot/dts/mpc8536ds.dtsi
@@ -203,6 +203,14 @@
 			reg = <1>;
 			device_type = "ethernet-phy";
 		};
+		sgmii_phy0: sgmii-phy@0 {
+			interrupts = <6 1 0 0>;
+			reg = <0x1d>;
+		};
+		sgmii_phy1: sgmii-phy@1 {
+			interrupts = <6 1 0 0>;
+			reg = <0x1c>;
+		};
 		tbi0: tbi-phy@11 {
 			reg = <0x11>;
 			device_type = "tbi-phy";
diff --git a/arch/powerpc/boot/dts/mpc8544ds.dtsi b/arch/powerpc/boot/dts/mpc8544ds.dtsi
index 270f64b..77ebc9f 100644
--- a/arch/powerpc/boot/dts/mpc8544ds.dtsi
+++ b/arch/powerpc/boot/dts/mpc8544ds.dtsi
@@ -51,6 +51,15 @@
 			device_type = "ethernet-phy";
 		};
 
+		sgmii_phy0: sgmii-phy@0 {
+			interrupts = <6 1 0 0>;
+			reg = <0x1c>;
+		};
+		sgmii_phy1: sgmii-phy@1 {
+			interrupts = <6 1 0 0>;
+			reg = <0x1d>;
+		};
+
 		tbi0: tbi-phy@11 {
 			reg = <0x11>;
 			device_type = "tbi-phy";
diff --git a/arch/powerpc/boot/dts/mpc8572ds.dtsi b/arch/powerpc/boot/dts/mpc8572ds.dtsi
index 1417894..357490b 100644
--- a/arch/powerpc/boot/dts/mpc8572ds.dtsi
+++ b/arch/powerpc/boot/dts/mpc8572ds.dtsi
@@ -169,6 +169,23 @@
 			reg = <0x3>;
 		};
 
+		sgmii_phy0: sgmii-phy@0 {
+			interrupts = <6 1 0 0>;
+			reg = <0x1c>;
+		};
+		sgmii_phy1: sgmii-phy@1 {
+			interrupts = <6 1 0 0>;
+			reg = <0x1d>;
+		};
+		sgmii_phy2: sgmii-phy@2 {
+			interrupts = <7 1 0 0>;
+			reg = <0x1e>;
+		};
+		sgmii_phy3: sgmii-phy@3 {
+			interrupts = <7 1 0 0>;
+			reg = <0x1f>;
+		};
+
 		tbi0: tbi-phy@11 {
 			reg = <0x11>;
 			device_type = "tbi-phy";
diff --git a/arch/powerpc/boot/dts/p2020ds.dtsi b/arch/powerpc/boot/dts/p2020ds.dtsi
index d3b939c..e699cf9 100644
--- a/arch/powerpc/boot/dts/p2020ds.dtsi
+++ b/arch/powerpc/boot/dts/p2020ds.dtsi
@@ -150,6 +150,16 @@
 			interrupts = <3 1 0 0>;
 			reg = <0x2>;
 		};
+
+		sgmii_phy1: sgmii-phy@1 {
+			interrupts = <5 1 0 0>;
+			reg = <0x1c>;
+		};
+		sgmii_phy2: sgmii-phy@2 {
+			interrupts = <5 1 0 0>;
+			reg = <0x1d>;
+		};
+
 		tbi0: tbi-phy@11 {
 			reg = <0x11>;
 			device_type = "tbi-phy";
-- 
1.7.5.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* RE: [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode
  2012-07-12  9:36 [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode Jia Hongtao
@ 2012-07-12 10:28 ` Jia Hongtao-B38951
  2012-07-12 12:18   ` Kumar Gala
  2012-07-12 15:08 ` Kumar Gala
  1 sibling, 1 reply; 5+ messages in thread
From: Jia Hongtao-B38951 @ 2012-07-12 10:28 UTC (permalink / raw)
  To: Jia Hongtao-B38951, linuxppc-dev, galak; +Cc: Li Yang-R58472

Note that this patch works with uboot update.
Please refer to:
http://patchwork.ozlabs.org/patch/170627/

-Hongtao.

> -----Original Message-----
> From: Jia Hongtao-B38951
> Sent: Thursday, July 12, 2012 5:36 PM
> To: linuxppc-dev@lists.ozlabs.org; galak@kernel.crashing.org
> Cc: Li Yang-R58472; Jia Hongtao-B38951
> Subject: [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode
>=20
> In SGMII riser card different PHY chip are used with different external
> IRQ from eTSEC. To support PHY link state auto detect in SGMII mode we
> should add another group of PHY nodes for SGMII mode.
>=20
> For MPC8572DS IRQ6 is used for PHY0~PHY1, IRQ7 is used for PHY2~PHY3.
> For MPC8544DS and MPC8536DS IRQ6 is used for PHY0~PHY1.
> For P2020DS IRQ5 is used for PHY1~PHY2.
>=20
> Signed-off-by: Li Yang <leoli@freescale.com>
> Signed-off-by: Jia Hongtao <B38951@freescale.com>
> ---
>  arch/powerpc/boot/dts/mpc8536ds.dtsi |    8 ++++++++
>  arch/powerpc/boot/dts/mpc8544ds.dtsi |    9 +++++++++
>  arch/powerpc/boot/dts/mpc8572ds.dtsi |   17 +++++++++++++++++
>  arch/powerpc/boot/dts/p2020ds.dtsi   |   10 ++++++++++
>  4 files changed, 44 insertions(+), 0 deletions(-)
>=20

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode
  2012-07-12 10:28 ` Jia Hongtao-B38951
@ 2012-07-12 12:18   ` Kumar Gala
  2012-07-12 14:13     ` Li Yang
  0 siblings, 1 reply; 5+ messages in thread
From: Kumar Gala @ 2012-07-12 12:18 UTC (permalink / raw)
  To: Jia Hongtao-B38951; +Cc: linuxppc-dev, Li Yang-R58472


On Jul 12, 2012, at 5:28 AM, Jia Hongtao-B38951 wrote:

> Note that this patch works with uboot update.
> Please refer to:
> http://patchwork.ozlabs.org/patch/170627/
> 
> -Hongtao.

Will RGMII still work with this patch if I dont update u-boot?

I'm assuming yes.

- k

> 
>> -----Original Message-----
>> From: Jia Hongtao-B38951
>> Sent: Thursday, July 12, 2012 5:36 PM
>> To: linuxppc-dev@lists.ozlabs.org; galak@kernel.crashing.org
>> Cc: Li Yang-R58472; Jia Hongtao-B38951
>> Subject: [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode
>> 
>> In SGMII riser card different PHY chip are used with different external
>> IRQ from eTSEC. To support PHY link state auto detect in SGMII mode we
>> should add another group of PHY nodes for SGMII mode.
>> 
>> For MPC8572DS IRQ6 is used for PHY0~PHY1, IRQ7 is used for PHY2~PHY3.
>> For MPC8544DS and MPC8536DS IRQ6 is used for PHY0~PHY1.
>> For P2020DS IRQ5 is used for PHY1~PHY2.
>> 
>> Signed-off-by: Li Yang <leoli@freescale.com>
>> Signed-off-by: Jia Hongtao <B38951@freescale.com>
>> ---
>> arch/powerpc/boot/dts/mpc8536ds.dtsi |    8 ++++++++
>> arch/powerpc/boot/dts/mpc8544ds.dtsi |    9 +++++++++
>> arch/powerpc/boot/dts/mpc8572ds.dtsi |   17 +++++++++++++++++
>> arch/powerpc/boot/dts/p2020ds.dtsi   |   10 ++++++++++
>> 4 files changed, 44 insertions(+), 0 deletions(-)
>> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode
  2012-07-12 12:18   ` Kumar Gala
@ 2012-07-12 14:13     ` Li Yang
  0 siblings, 0 replies; 5+ messages in thread
From: Li Yang @ 2012-07-12 14:13 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev, Li Yang-R58472, Jia Hongtao-B38951

On Thu, Jul 12, 2012 at 8:18 PM, Kumar Gala <galak@kernel.crashing.org> wrote:
>
> On Jul 12, 2012, at 5:28 AM, Jia Hongtao-B38951 wrote:
>
>> Note that this patch works with uboot update.
>> Please refer to:
>> http://patchwork.ozlabs.org/patch/170627/
>>
>> -Hongtao.
>
> Will RGMII still work with this patch if I dont update u-boot?
>
> I'm assuming yes.

Yes.  We just add new nodes without modifying the original PHY nodes.

Leo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode
  2012-07-12  9:36 [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode Jia Hongtao
  2012-07-12 10:28 ` Jia Hongtao-B38951
@ 2012-07-12 15:08 ` Kumar Gala
  1 sibling, 0 replies; 5+ messages in thread
From: Kumar Gala @ 2012-07-12 15:08 UTC (permalink / raw)
  To: Jia Hongtao; +Cc: linuxppc-dev


On Jul 12, 2012, at 4:36 AM, Jia Hongtao wrote:

> In SGMII riser card different PHY chip are used with different external
> IRQ from eTSEC. To support PHY link state auto detect in SGMII mode we
> should add another group of PHY nodes for SGMII mode.
> 
> For MPC8572DS IRQ6 is used for PHY0~PHY1, IRQ7 is used for PHY2~PHY3.
> For MPC8544DS and MPC8536DS IRQ6 is used for PHY0~PHY1.
> For P2020DS IRQ5 is used for PHY1~PHY2.
> 
> Signed-off-by: Li Yang <leoli@freescale.com>
> Signed-off-by: Jia Hongtao <B38951@freescale.com>
> ---
> arch/powerpc/boot/dts/mpc8536ds.dtsi |    8 ++++++++
> arch/powerpc/boot/dts/mpc8544ds.dtsi |    9 +++++++++
> arch/powerpc/boot/dts/mpc8572ds.dtsi |   17 +++++++++++++++++
> arch/powerpc/boot/dts/p2020ds.dtsi   |   10 ++++++++++
> 4 files changed, 44 insertions(+), 0 deletions(-)

applied to next

- k

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-12 15:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-12  9:36 [PATCH] powerpc/sgmii: Add phy nodes in SGMII mode Jia Hongtao
2012-07-12 10:28 ` Jia Hongtao-B38951
2012-07-12 12:18   ` Kumar Gala
2012-07-12 14:13     ` Li Yang
2012-07-12 15:08 ` Kumar Gala

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.