Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1523079
| From | Andrew Lunn <andrew@lunn.ch> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver |
| Date | 2016-11-15 23:00 +0100 |
| Message-ID | <sDTVL-21f-5@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <sCUTU-3LN-19@gated-at.bofh.it> <sD96x-4KN-11@gated-at.bofh.it> <sDSQ1-1pd-1@gated-at.bofh.it> <sDSZI-1sK-15@gated-at.bofh.it> <sDTsJ-1Rz-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> The link state is retrieved by a command to the application processor that is running
> on the network card. Also the register to set the phy configuration is write-only, so
> it is not even possible to do the usual mdio bit-banging in the Phy read() and write()
> functions (however there seems to be another application processor command reserved
> for retrieving the PHY settings, but I have not tried it yet).
>> + val = MII_BMCR << 16 | SLIC_PCR_AUTONEG |
>> + SLIC_PCR_AUTONEG_RST;
>> + slic_write(sdev, SLIC_REG_WPHY, val);
This actually looks a lot like an MDIO write operation. The upper 16
bits are the register, and the lower 16 bits are the data. What you
don't have is the address. But maybe it is limited to one address.
If the processor command reserved for read works in a similar way, you
have enough to do an MDIO bus.
> Please also note that I do not have any datasheets or other documentation for the hardware,
> all I have as a reference is the driver code in staging. So I do not know which
> PHYs are actually used (the comments in the code mention Marvell and Cicada but this is
> not very specific).
If you can get the read working look at registers 2 and 3. Compare
what you get with the values at the end of marvell.c.
Andrew
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Gigabit ethernet driver for Alacritechs SLIC devices Lino Sanfilippo <LinoSanfilippo@gmx.de> - 2016-11-13 05:50 +0100
Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver Andrew Lunn <andrew@lunn.ch> - 2016-11-13 21:00 +0100
Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver Lino Sanfilippo <LinoSanfilippo@gmx.de> - 2016-11-15 21:50 +0100
Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver Florian Fainelli <f.fainelli@gmail.com> - 2016-11-15 22:00 +0100
Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver Lino Sanfilippo <LinoSanfilippo@gmx.de> - 2016-11-15 22:30 +0100
Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver Andrew Lunn <andrew@lunn.ch> - 2016-11-15 23:00 +0100
Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver Florian Fainelli <f.fainelli@gmail.com> - 2016-11-15 23:40 +0100
Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver Lino Sanfilippo <LinoSanfilippo@gmx.de> - 2016-11-16 00:00 +0100
Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver Andrew Lunn <andrew@lunn.ch> - 2016-11-16 00:10 +0100
Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver Lino Sanfilippo <LinoSanfilippo@gmx.de> - 2016-11-16 00:20 +0100
Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver Lino Sanfilippo <LinoSanfilippo@gmx.de> - 2016-11-15 23:40 +0100
Aw: Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver "Lino Sanfilippo" <LinoSanfilippo@gmx.de> - 2016-11-24 13:40 +0100
csiph-web