Question about GPIO bitbang MII

dave jones s.dave.jones at gmail.com
Fri Oct 7 09:24:41 UTC 2011


On Fri, Oct 7, 2011 at 4:00 PM, Aleksandr Rybalko wrote:
> On Fri, 7 Oct 2011 10:34:58 +0800
> dave jones <s.dave.jones at gmail.com> wrote:
>
>>> Hi,
>>>
>>> Does FreeBSD have gpio bitbang api for MII? If not, any driver in
>>> tree using gpio-bitbang mii that I can refer to? Thanks.
>>> It seems like OpenBSD, NetBSD and Linux have added support to gpio
>>> bitbang mii, and it's useful for porting embedded devices.
>>>
>>> Best regards,
>>> Dave.
>
> Hi Dave,

Hi, Alex,

> you can try my script for now :) (Attached as text)
> then we will do something with that problem.
> I'm not sure that script works fine, because i was use it for detect is
> attached device MDIO controlled or I2C.
>
> BTW, which device use MDIO attached to GPIO?

Thanks for the script. Mine is pxa255 with SMSC LAN91C110.
Since I have trouble mounting filesystem via NFS, I can't run your script.

> And this is PHY or switch, if second take a look on
> http://zrouter.org/hg/FreeBSD/head/file/03dd18c85162/head/sys/dev/switch

This is PHY.

> WBW
> --
> Alexandr Rybalko <ray at dlink.ua>
> aka Alex RAY <ray at ddteam.net>

Best regards,
Dave.


More information about the freebsd-net mailing list