]> git.karo-electronics.de Git - linux-beck.git/commitdiff
powerpc/85xx: Add phy nodes in SGMII mode for MPC8536/44/72DS & P2020DS
authorJia Hongtao <B38951@freescale.com>
Thu, 12 Jul 2012 09:36:16 +0000 (17:36 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 12 Jul 2012 15:08:09 +0000 (10:08 -0500)
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>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/boot/dts/mpc8536ds.dtsi
arch/powerpc/boot/dts/mpc8544ds.dtsi
arch/powerpc/boot/dts/mpc8572ds.dtsi
arch/powerpc/boot/dts/p2020ds.dtsi

index cc46dbd9746d7a1bac21ce42e80e1b3157a51081..d304a2d68c62bfee4faef2d4a85f2e13aabec5bf 100644 (file)
                        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";
index 270f64b90f4e4834145bce8faeb1f008dcad2290..77ebc9f1d37ca9ff91151dbaff1aaef3f9d9d4f9 100644 (file)
                        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";
index 14178944e2209ef5308791608fac988d977ea547..357490bb84dad8e1a1a08b3f284d0522ec486c67 100644 (file)
                        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";
index d3b939c573b007e5ca25ad89f58523abb3db56cc..e699cf95b06342b94d8609f1b68c6511cf63505f 100644 (file)
                        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";