Skip to contentSkip to conversation

Micrel PHY KSZ8001 on MPC5200B FEC

DISCUSSION suvidh kankariya 3 participants 3 messages Oct 28, 2009 – Nov 12, 2009 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

Romen,
I am sorry for the misguided statement.
I indeed had patched it .
I am copying the patch here. Hope it helps you.

drivers/net/phy/Kconfig 2009-10-09 15:43:09.000000000 -0400 renamed from drivers/net/phy/Kconfig 2009-06-09 23:05:27.000000000 -0400 +6 -0
diff --exclude CVS -uNr linux-2.6.30/drivers/net/phy/Kconfig linux-2.6.30.modified/drivers/net/phy/Kconfig
@@ -82,6 +82,12 @@
        ---help---
          Supports the LSI ET1011C PHY.
 
+config MICREL_PHY
+       tristate "Drivers for MICREL  PHYs"
+        depends on PHYLIB
+       ---help---
+         Currently supports the KS8721BL, KSZ8041NL
+
 config FIXED_PHY
        bool "Driver for MDIO Bus/PHY emulation with fixed speed/link PHYs"
        depends on PHYLIB=y
drivers/net/phy/Makefile 2009-10-09 16:07:37.000000000 -0400 renamed from drivers/net/phy/Makefile 2009-06-09 23:05:27.000000000 -0400 +1 -0
diff --exclude CVS -uNr linux-2.6.30/drivers/net/phy/Makefile linux-2.6.30.modified/drivers/net/phy/Makefile
@@ -14,6 +14,7 @@
 obj-$(CONFIG_ICPLUS_PHY)       += icplus.o
 obj-$(CONFIG_REALTEK_PHY)      += realtek.o
 obj-$(CONFIG_LSI_ET1011C_PHY)  += et1011c.o
+obj-$(CONFIG_MICREL_PHY)       += micrel.o
 obj-$(CONFIG_FIXED_PHY)                += fixed.o
 obj-$(CONFIG_MDIO_BITBANG)     += mdio-bitbang.o
 obj-$(CONFIG_MDIO_GPIO)                += mdio-gpio.o
drivers/net/phy/micrel.c 2009-09-23 16:04:53.000000000 -0400 renamed from drivers/net/phy/micrel.c 1969-12-31 19:00:00.000000000 -0500 +129 -0

129 lines not on this page · raw message

Suvidh

Quoted 40 lines

------------------------------

Message: 6
Date: Tue, 27 Oct 2009 20:54:47 +0100
From: Roman Fietze <[email protected]>
To: [email protected]
Subject: Re: Micrel PHY KSZ8001 on MPC5200B FEC
Message-ID: <[email protected]>
Content-Type: Text/Plain; charset="iso-8859-1"

Hello Suvidh,

Quoted 2 lines · On Tuesday 27 October 2009 17:47:51 suvidh kankariya wrote:

A driver for micrel phy exists in /drivers/net/phy/micrel.c. in 2.6.30.

Am I somewhat blind, or do you have access to other 2.6.30's than I have?

I searched git.kernel.org, git.denx.de and git.secretlab.ca, but could not find that file, neither in the current master, nor in older tags somewhat related to "2.6.30", nor in any local clone in any version of the 2.6 since "He" created the repos.

Quoted 1 line

If you are using older kernel you may want to copy it.

2.6.30 and 2.6.31 from DENX or kernel.org.

Roman

--
Roman Fietze Telemotive AG B?ro M?hlhausen
Breitwiesen 73347 M?hlhausen
Tel.: +49(0)7335/18493-45 http://www.telemotive.de

------------------------------

#3 lore raw

Hello Suvidh,

Quoted 1 line · On Wednesday 28 October 2009 16:19:04 suvidh kankariya wrote:

I am sorry for the misguided statement.

No problem, help is always welcome.

Quoted 1 line

I indeed had patched it.

Allthough Grant's mail got stuck in our beloved Notes spam filter, we found out how to use that KSZ8001 on our board.

As Grant mentioned as well, the key was and is a correct DTS. (At least) one statement was missing:

  interrupt-parent =3D <&mpc5200_pic>;

This statement seemed to move all the way up from the devices to the root of the tree, and somehow we missed that move.

Thanks again to all who answered.

Roman

=2D-=20
Roman Fietze Telemotive AG B=FCro M=FChlhausen
Breitwiesen 73347 M=FChlhausen
Tel.: +49(0)7335/18493-45 http://www.telemotive.de

#4 lore raw
Quoted 7 lines · Roman Fietze

As Grant mentioned as well, the key was and is a correct DTS. (At least) one statement was missing:

=A0interrupt-parent =3D <&mpc5200_pic>;

This statement seemed to move all the way up from the devices to the root of the tree, and somehow we missed that move.

Yes, nodes inherit the interrupt-parent property from their parent. I took advantage of that to tidy up all the mpc5200 device trees.

g.

--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.