Subject: kern/32866: Tentative support for NS DP83847 PHY
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: seebs <seebs@vash.cel.plethora.net>
List: netbsd-bugs
Date: 02/18/2006 13:10:00
>Number: 32866
>Category: kern
>Synopsis: DP83847 was using ukphy, should be nsphyter
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 18 13:10:00 +0000 2006
>Originator: seebs
>Release: NetBSD 3.99.15
>Organization:
>Environment:
NetBSD tams3011.plethora.net 3.99.15 NetBSD 3.99.15 (TAMS3011) #7: Sat Feb 18 06:59:27 CST 2006 seebs@vash.cel.plethora.net:/home/seebs/3011_src/sys/arch/evbppc/compile/TAMS3011 evbppc
Architecture: ppc
Machine: evbppc
>Description:
The DP83847 PHY, used on the TAMS 3011, works okay as a ukphy, but
seems to be close enough to the DP83843 to Just Work in that driver.
>How-To-Repeat:
Port NetBSD to a new platform.
>Fix:
This utterly naive patch seems to "just work" for me. System is up and
running with NFS root running over emac0.
Index: miidevs
===================================================================
RCS file: /cvsroot/src/sys/dev/mii/miidevs,v
retrieving revision 1.62
diff -c -r1.62 miidevs
*** miidevs 4 Jan 2006 21:42:51 -0000 1.62
--- miidevs 18 Feb 2006 13:03:52 -0000
***************
*** 188,193 ****
--- 188,194 ----
/* National Semiconductor PHYs */
model xxNATSEMI DP83840 0x0000 DP83840 10/100 media interface
model xxNATSEMI DP83843 0x0001 DP83843 10/100 media interface
+ model xxNATSEMI DP83847 0x0003 DP83847 10/100 media interface
model xxNATSEMI DP83815 0x0002 DP83815 10/100 media interface
model xxNATSEMI DP83891 0x0005 DP83891 1000BASE-T media interface
model xxNATSEMI DP83861 0x0006 DP83861 1000BASE-T media interface
Index: nsphyter.c
===================================================================
RCS file: /cvsroot/src/sys/dev/mii/nsphyter.c,v
retrieving revision 1.22
diff -c -r1.22 nsphyter.c
*** nsphyter.c 11 Dec 2005 12:22:42 -0000 1.22
--- nsphyter.c 18 Feb 2006 13:03:58 -0000
***************
*** 110,115 ****
--- 110,118 ----
{ MII_OUI_xxNATSEMI, MII_MODEL_xxNATSEMI_DP83843,
MII_STR_xxNATSEMI_DP83843 },
+ { MII_OUI_xxNATSEMI, MII_MODEL_xxNATSEMI_DP83847,
+ MII_STR_xxNATSEMI_DP83847 },
+
{ MII_OUI_xxNATSEMI, MII_MODEL_xxNATSEMI_DP83815,
MII_STR_xxNATSEMI_DP83815 },