From owner-freebsd-embedded@FreeBSD.ORG Tue Jul 16 13:48:57 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D6C8810D; Tue, 16 Jul 2013 13:48:57 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) by mx1.freebsd.org (Postfix) with ESMTP id 44C9A818; Tue, 16 Jul 2013 13:48:57 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id l18so623287wgh.26 for ; Tue, 16 Jul 2013 06:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bqtITaCXXQevhl2C9lCdb3yAMUuA/Ms4gurF6KCAV4U=; b=LwW22VATRoYzRgOh7jElblmymqoiCrF2KLoMPE+uE7pYNBrjz5m8XvW47RwJC1nwZD KePEHtm3kwTvNQnq5oTZAycNjW45+48/4BytG2JG7UuO4en17Zx5X8pEifvCmSYiTHAm vVpj6w/Lv39s0Hb+EP7D/1A+GnPHvi8PTr8eIF3GG/D+gNFA7Jn02OJGEYgKBwwwuGsG 8e4sP5yPU2D2QmI/iDXxV7+WR4sE0UCmoxOxqnJCwmsf5O5MPGFaBaexrHPlkTy3Iy1A evI9McOlgQDc3RyI6ziBVlJI//OXSZrqu72YYJIXn0M80ZKrhQHoJVgHxj3yTqloHLx4 SYLw== MIME-Version: 1.0 X-Received: by 10.194.216.99 with SMTP id op3mr1332227wjc.52.1373982536119; Tue, 16 Jul 2013 06:48:56 -0700 (PDT) Received: by 10.216.75.144 with HTTP; Tue, 16 Jul 2013 06:48:56 -0700 (PDT) In-Reply-To: References: Date: Tue, 16 Jul 2013 10:48:56 -0300 Message-ID: Subject: Re: Making Picostation m2HP work From: Luiz Otavio O Souza To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-embedded X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jul 2013 13:48:57 -0000 On 16 July 2013 00:52, Adrian Chadd wrote: > Right, > > you have to get the mdio bus configured up right, then attach arswitch to > it. > > Then you tell arge0/arge1 what PHY it speaks to, via Stefan's mdioproxy > stuff. > > _then_ arge0/arge1 will come up. > > Now, as for how you do that - i'd have to re-read the datasheet and > write some documentation: > > * one of them (I think arge0) is directly glued to arswitch with no > PHY per se - it's hard-programmed with a MIIbus mode (RMGII I think?) > and 100/full or 1000/full > It's usually the arge1 which is dedicated to switch and it's hard-programmed as 1000/full (even when the switch ports are just 10/100). arge0 is the 'WAN' port (using the dedicated PHY 4). The MDIO is at arge0 on ar7240 and at arge1 on ar7241. [...] > > I'll follow this up with a post explaining how the miibus, mdiobus, > mdioproxy stuff and how arswitch is configured. Then I'll braindump > that into the wiki. Thanks Adrian! Stefan also has a nice documentation about how this stuff fits together: https://wiki.freebsd.org/StefanBethke/EtherSwitch http://www.bsdcan.org/2012/schedule/attachments/201_BSDCan-2012-Bethke-Ethernet-Switch-Framework.pdf Luiz