From owner-freebsd-net@FreeBSD.ORG Fri Oct 7 09:24:41 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 677CA106566C for ; Fri, 7 Oct 2011 09:24:41 +0000 (UTC) (envelope-from s.dave.jones@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1F0908FC17 for ; Fri, 7 Oct 2011 09:24:39 +0000 (UTC) Received: by vws11 with SMTP id 11so4182713vws.13 for ; Fri, 07 Oct 2011 02:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=neMBln+dpQMbjqFmUAdBDJTvCMNwTWCAAA+1Fwpi3M0=; b=KSOWU4oU970TXnYb41uRcxCTlSSxWB5CK3ro/GkKZuHGXjlRsBfmzlUfYOJiq1C+w9 07gHzp3ZXRkGIDJHxJ/i54zTU93Li6CXQameKaeG1LvYW/c6uJuH1VzcivbBvOt2UL00 X8rmTuD1CxjF2dPq3/0FjL2imrOjuz/4d9pxI= MIME-Version: 1.0 Received: by 10.52.23.106 with SMTP id l10mr1692386vdf.127.1317979479140; Fri, 07 Oct 2011 02:24:39 -0700 (PDT) Received: by 10.52.184.135 with HTTP; Fri, 7 Oct 2011 02:24:39 -0700 (PDT) In-Reply-To: <20111007110028.bae63f84.ray@dlink.ua> References: <20111007110028.bae63f84.ray@dlink.ua> Date: Fri, 7 Oct 2011 17:24:39 +0800 Message-ID: From: dave jones To: Aleksandr Rybalko Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org Subject: Re: Question about GPIO bitbang MII X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Oct 2011 09:24:41 -0000 On Fri, Oct 7, 2011 at 4:00 PM, Aleksandr Rybalko wrote: > On Fri, 7 Oct 2011 10:34:58 +0800 > dave jones 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 > aka Alex RAY Best regards, Dave.