Commit b915341b authored by Jia Hongtao's avatar Jia Hongtao Committed by Kumar Gala

powerpc/85xx: Add phy nodes in SGMII mode for MPC8536/44/72DS & P2020DS

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: default avatarLi Yang <leoli@freescale.com>
Signed-off-by: default avatarJia Hongtao <B38951@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 9653018b
...@@ -203,6 +203,14 @@ phy1: ethernet-phy@1 { ...@@ -203,6 +203,14 @@ phy1: ethernet-phy@1 {
reg = <1>; reg = <1>;
device_type = "ethernet-phy"; 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 { tbi0: tbi-phy@11 {
reg = <0x11>; reg = <0x11>;
device_type = "tbi-phy"; device_type = "tbi-phy";
......
...@@ -51,6 +51,15 @@ phy1: ethernet-phy@1 { ...@@ -51,6 +51,15 @@ phy1: ethernet-phy@1 {
device_type = "ethernet-phy"; 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 { tbi0: tbi-phy@11 {
reg = <0x11>; reg = <0x11>;
device_type = "tbi-phy"; device_type = "tbi-phy";
......
...@@ -169,6 +169,23 @@ phy3: ethernet-phy@3 { ...@@ -169,6 +169,23 @@ phy3: ethernet-phy@3 {
reg = <0x3>; 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 { tbi0: tbi-phy@11 {
reg = <0x11>; reg = <0x11>;
device_type = "tbi-phy"; device_type = "tbi-phy";
......
...@@ -150,6 +150,16 @@ phy2: ethernet-phy@2 { ...@@ -150,6 +150,16 @@ phy2: ethernet-phy@2 {
interrupts = <3 1 0 0>; interrupts = <3 1 0 0>;
reg = <0x2>; 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 { tbi0: tbi-phy@11 {
reg = <0x11>; reg = <0x11>;
device_type = "tbi-phy"; device_type = "tbi-phy";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment