* "eth1: Could not attach to PHY" on MPC8349e-MITX
@ 2008-12-04 17:15 Timur Tabi
2008-12-04 17:41 ` Andre Schwarz
2008-12-04 17:52 ` [PATCH] powerpc/83xx: Enable FIXED_PHY in mpc834x_itx and mpc83xx defconfigs Anton Vorontsov
0 siblings, 2 replies; 8+ messages in thread
From: Timur Tabi @ 2008-12-04 17:15 UTC (permalink / raw)
To: linuxppc-dev, netdev, afleming
The Freescale MPC8349e-MITX reference board has two TSECs, the second
of which (eth1) is attached to a Vitesse 7385 5-port switch.
Using the latest U-Boot, Kernel, and device tree, I cannot bring up
eth1. When I try, I get this message:
[root@tintin root]# ifconfig eth1 up
0:01 not found
eth1: Could not attach to PHY
SIOCSIFFLAGS: No such device
Unfortunately, I don't even know what this means.
I believe my network configuration is correct. Here's what ifconfig
says about eth1:
eth1 Link encap:Ethernet HWaddr 00:E0:0C:00:8C:02
inet addr:192.168.2.141 Bcast:192.168.255.255 Mask:255.255.0.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Base address:0x4000
eth1 does work in U-boot, so I know it can be made to work (and I know
the 7385's firmware is uploaded), I just don't know what needs to be
done in Linux.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "eth1: Could not attach to PHY" on MPC8349e-MITX
2008-12-04 17:15 "eth1: Could not attach to PHY" on MPC8349e-MITX Timur Tabi
@ 2008-12-04 17:41 ` Andre Schwarz
2008-12-04 17:47 ` Timur Tabi
2008-12-04 17:52 ` [PATCH] powerpc/83xx: Enable FIXED_PHY in mpc834x_itx and mpc83xx defconfigs Anton Vorontsov
1 sibling, 1 reply; 8+ messages in thread
From: Andre Schwarz @ 2008-12-04 17:41 UTC (permalink / raw)
To: Timur Tabi; +Cc: linuxppc-dev, afleming, netdev
Timur,
is it possible that the PHY adress doesn't match the one specified in
the dts ?
regards,
Andre
Timur Tabi schrieb:
> The Freescale MPC8349e-MITX reference board has two TSECs, the second
> of which (eth1) is attached to a Vitesse 7385 5-port switch.
>
> Using the latest U-Boot, Kernel, and device tree, I cannot bring up
> eth1. When I try, I get this message:
>
> [root@tintin root]# ifconfig eth1 up
> 0:01 not found
> eth1: Could not attach to PHY
> SIOCSIFFLAGS: No such device
>
> Unfortunately, I don't even know what this means.
>
> I believe my network configuration is correct. Here's what ifconfig
> says about eth1:
>
> eth1 Link encap:Ethernet HWaddr 00:E0:0C:00:8C:02
> inet addr:192.168.2.141 Bcast:192.168.255.255 Mask:255.255.0.0
> BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
> Base address:0x4000
>
> eth1 does work in U-boot, so I know it can be made to work (and I know
> the 7385's firmware is uploaded), I just don't know what needs to be
> done in Linux.
>
MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "eth1: Could not attach to PHY" on MPC8349e-MITX
2008-12-04 17:41 ` Andre Schwarz
@ 2008-12-04 17:47 ` Timur Tabi
2008-12-04 17:56 ` Anton Vorontsov
2008-12-04 17:56 ` Andre Schwarz
0 siblings, 2 replies; 8+ messages in thread
From: Timur Tabi @ 2008-12-04 17:47 UTC (permalink / raw)
To: Andre Schwarz; +Cc: linuxppc-dev, afleming, netdev
Andre Schwarz wrote:
> Timur,
>
> is it possible that the PHY adress doesn't match the one specified in
> the dts ?
What part of the DTS contains the PHY address? I have this:
mdio@24520 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,gianfar-mdio";
reg = <0x24520 0x20>;
/* Vitesse 8201 */
phy1c: ethernet-phy@1c {
interrupt-parent = <&ipic>;
interrupts = <18 0x8>;
reg = <0x1c>;
device_type = "ethernet-phy";
};
};
enet1: ethernet@25000 {
cell-index = <1>;
device_type = "network";
model = "TSEC";
compatible = "gianfar";
reg = <0x25000 0x1000>;
local-mac-address = [ 00 00 00 00 00 00 ];
interrupts = <35 0x8 36 0x8 37 0x8>;
phy-connection-type = "mii";
interrupt-parent = <&ipic>;
/* Vitesse 7385 isn't on the MDIO bus */
fixed-link = <1 1 1000 0 0>;
linux,network-index = <1>;
};
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] powerpc/83xx: Enable FIXED_PHY in mpc834x_itx and mpc83xx defconfigs
2008-12-04 17:15 "eth1: Could not attach to PHY" on MPC8349e-MITX Timur Tabi
2008-12-04 17:41 ` Andre Schwarz
@ 2008-12-04 17:52 ` Anton Vorontsov
2008-12-04 19:18 ` Timur Tabi
2008-12-05 0:48 ` Kumar Gala
1 sibling, 2 replies; 8+ messages in thread
From: Anton Vorontsov @ 2008-12-04 17:52 UTC (permalink / raw)
To: Kumar Gala, Timur Tabi; +Cc: linuxppc-dev, afleming, netdev
This is needed so that Vitesse 7385 5-port switch could work on
MPC8349E-mITX boards.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
---
On Thu, Dec 04, 2008 at 11:15:32AM -0600, Timur Tabi wrote:
> The Freescale MPC8349e-MITX reference board has two TSECs, the second
> of which (eth1) is attached to a Vitesse 7385 5-port switch.
>
> Using the latest U-Boot, Kernel, and device tree, I cannot bring up
> eth1. When I try, I get this message:
>
> [root@tintin root]# ifconfig eth1 up
> 0:01 not found
> eth1: Could not attach to PHY
> SIOCSIFFLAGS: No such device
>
> Unfortunately, I don't even know what this means.
The FIXED_PHY driver isn't enabled in the defconfig. Following
patch should fix the issue.
arch/powerpc/configs/83xx/mpc834x_itx_defconfig | 2 +-
arch/powerpc/configs/mpc83xx_defconfig | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/configs/83xx/mpc834x_itx_defconfig b/arch/powerpc/configs/83xx/mpc834x_itx_defconfig
index e55ff7c..07a674f 100644
--- a/arch/powerpc/configs/83xx/mpc834x_itx_defconfig
+++ b/arch/powerpc/configs/83xx/mpc834x_itx_defconfig
@@ -723,7 +723,7 @@ CONFIG_CICADA_PHY=y
# CONFIG_BROADCOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_REALTEK_PHY is not set
-# CONFIG_FIXED_PHY is not set
+CONFIG_FIXED_PHY=y
# CONFIG_MDIO_BITBANG is not set
# CONFIG_NET_ETHERNET is not set
CONFIG_NETDEV_1000=y
diff --git a/arch/powerpc/configs/mpc83xx_defconfig b/arch/powerpc/configs/mpc83xx_defconfig
index 15eb30c..d582014 100644
--- a/arch/powerpc/configs/mpc83xx_defconfig
+++ b/arch/powerpc/configs/mpc83xx_defconfig
@@ -682,7 +682,7 @@ CONFIG_VITESSE_PHY=y
# CONFIG_BROADCOM_PHY is not set
CONFIG_ICPLUS_PHY=y
# CONFIG_REALTEK_PHY is not set
-# CONFIG_FIXED_PHY is not set
+CONFIG_FIXED_PHY=y
# CONFIG_MDIO_BITBANG is not set
CONFIG_NET_ETHERNET=y
CONFIG_MII=y
--
1.5.6.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: "eth1: Could not attach to PHY" on MPC8349e-MITX
2008-12-04 17:47 ` Timur Tabi
@ 2008-12-04 17:56 ` Anton Vorontsov
2008-12-04 17:56 ` Andre Schwarz
1 sibling, 0 replies; 8+ messages in thread
From: Anton Vorontsov @ 2008-12-04 17:56 UTC (permalink / raw)
To: Timur Tabi; +Cc: Andre Schwarz, netdev, afleming, linuxppc-dev
On Thu, Dec 04, 2008 at 11:47:26AM -0600, Timur Tabi wrote:
> Andre Schwarz wrote:
> > Timur,
> >
> > is it possible that the PHY adress doesn't match the one specified in
> > the dts ?
>
> What part of the DTS contains the PHY address? I have this:
>
> mdio@24520 {
> #address-cells = <1>;
> #size-cells = <0>;
> compatible = "fsl,gianfar-mdio";
> reg = <0x24520 0x20>;
>
> /* Vitesse 8201 */
> phy1c: ethernet-phy@1c {
> interrupt-parent = <&ipic>;
> interrupts = <18 0x8>;
> reg = <0x1c>;
> device_type = "ethernet-phy";
> };
> };
>
> enet1: ethernet@25000 {
> cell-index = <1>;
> device_type = "network";
> model = "TSEC";
> compatible = "gianfar";
> reg = <0x25000 0x1000>;
> local-mac-address = [ 00 00 00 00 00 00 ];
> interrupts = <35 0x8 36 0x8 37 0x8>;
> phy-connection-type = "mii";
> interrupt-parent = <&ipic>;
> /* Vitesse 7385 isn't on the MDIO bus */
> fixed-link = <1 1 1000 0 0>;
^^^ That one. The Vitesse 7385 isn't on the MDIO bus, so the fixed
link (drivers/net/phy/fixed.c) driver is used for this ethernet port.
> linux,network-index = <1>;
> };
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "eth1: Could not attach to PHY" on MPC8349e-MITX
2008-12-04 17:47 ` Timur Tabi
2008-12-04 17:56 ` Anton Vorontsov
@ 2008-12-04 17:56 ` Andre Schwarz
1 sibling, 0 replies; 8+ messages in thread
From: Andre Schwarz @ 2008-12-04 17:56 UTC (permalink / raw)
To: Timur Tabi; +Cc: linuxppc-dev, afleming, netdev
Timur Tabi schrieb:
> Andre Schwarz wrote:
>
>> Timur,
>>
>> is it possible that the PHY adress doesn't match the one specified in
>> the dts ?
>>
>
> What part of the DTS contains the PHY address? I have this:
>
> mdio@24520 {
> #address-cells = <1>;
> #size-cells = <0>;
> compatible = "fsl,gianfar-mdio";
> reg = <0x24520 0x20>;
>
> /* Vitesse 8201 */
> phy1c: ethernet-phy@1c {
> interrupt-parent = <&ipic>;
> interrupts = <18 0x8>;
> reg = <0x1c>;
> device_type = "ethernet-phy";
> };
> };
>
> enet1: ethernet@25000 {
> cell-index = <1>;
> device_type = "network";
> model = "TSEC";
> compatible = "gianfar";
> reg = <0x25000 0x1000>;
> local-mac-address = [ 00 00 00 00 00 00 ];
> interrupts = <35 0x8 36 0x8 37 0x8>;
> phy-connection-type = "mii";
> interrupt-parent = <&ipic>;
>
Your PHY is not on the MDIO bus, i.e. can not be programmed or queried.
Maybe your kernel lacks the mdio-less configuration ?
> /* Vitesse 7385 isn't on the MDIO bus */
> fixed-link = <1 1 1000 0 0>;
> linux,network-index = <1>;
> };
>
>
MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] powerpc/83xx: Enable FIXED_PHY in mpc834x_itx and mpc83xx defconfigs
2008-12-04 17:52 ` [PATCH] powerpc/83xx: Enable FIXED_PHY in mpc834x_itx and mpc83xx defconfigs Anton Vorontsov
@ 2008-12-04 19:18 ` Timur Tabi
2008-12-05 0:48 ` Kumar Gala
1 sibling, 0 replies; 8+ messages in thread
From: Timur Tabi @ 2008-12-04 19:18 UTC (permalink / raw)
To: avorontsov; +Cc: linuxppc-dev, afleming, netdev
Anton Vorontsov wrote:
> The FIXED_PHY driver isn't enabled in the defconfig. Following
> patch should fix the issue.
>
> arch/powerpc/configs/83xx/mpc834x_itx_defconfig | 2 +-
> arch/powerpc/configs/mpc83xx_defconfig | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Acked-by: Timur Tabi <timur@freescale.com>
Kumar, please apply.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] powerpc/83xx: Enable FIXED_PHY in mpc834x_itx and mpc83xx defconfigs
2008-12-04 17:52 ` [PATCH] powerpc/83xx: Enable FIXED_PHY in mpc834x_itx and mpc83xx defconfigs Anton Vorontsov
2008-12-04 19:18 ` Timur Tabi
@ 2008-12-05 0:48 ` Kumar Gala
1 sibling, 0 replies; 8+ messages in thread
From: Kumar Gala @ 2008-12-05 0:48 UTC (permalink / raw)
To: avorontsov; +Cc: linuxppc-dev, afleming, Timur Tabi, netdev
On Dec 4, 2008, at 11:52 AM, Anton Vorontsov wrote:
> This is needed so that Vitesse 7385 5-port switch could work on
> MPC8349E-mITX boards.
>
> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
> ---
applied to merge.
Guys, can you put a [for 2.6.28] or something if a patch is intended
for .28.. this way I hopefully pay a bit more attention.
- k
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-12-05 0:50 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-04 17:15 "eth1: Could not attach to PHY" on MPC8349e-MITX Timur Tabi
2008-12-04 17:41 ` Andre Schwarz
2008-12-04 17:47 ` Timur Tabi
2008-12-04 17:56 ` Anton Vorontsov
2008-12-04 17:56 ` Andre Schwarz
2008-12-04 17:52 ` [PATCH] powerpc/83xx: Enable FIXED_PHY in mpc834x_itx and mpc83xx defconfigs Anton Vorontsov
2008-12-04 19:18 ` Timur Tabi
2008-12-05 0:48 ` Kumar Gala
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).