From owner-freebsd-embedded@FreeBSD.ORG Tue Dec 13 10:06:47 2011 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6D9D106566B for ; Tue, 13 Dec 2011 10:06:47 +0000 (UTC) (envelope-from adrian.chadd@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 502DE8FC17 for ; Tue, 13 Dec 2011 10:06:47 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so7635145vbb.13 for ; Tue, 13 Dec 2011 02:06:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=4u3WL57uG9uDaY6zZetPvK5traYipUQouL9btWhmJKM=; b=YSzItxsJNmJEVUKu3sL88G549SE/db+oz/LplmF5trwNCxv8zvhS/4QX2Fk1MEqkEB RRiI7qMvAzDSDCHhkiTFt4KIGnGCk7xJOzTdqskC1MbZ6qT+tp+l4NBUM1TajfUDgIye 9c7GPv44gnydEM2qPawm0RMZx+fFNm/Myl0bE= MIME-Version: 1.0 Received: by 10.52.20.165 with SMTP id o5mr193809vde.79.1323770806653; Tue, 13 Dec 2011 02:06:46 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.26.50 with HTTP; Tue, 13 Dec 2011 02:06:46 -0800 (PST) In-Reply-To: References: <68ABED76-CB1F-405A-8036-EC254F7511FA@lassitu.de> <3B3DB17D-BF87-40EE-B1C1-445F178E8844@lassitu.de> <86030CEE-6839-4B96-ACDC-2BA9AC1E4AE4@lassitu.de> <2D625CC9-A0E3-47AA-A504-CE8FB2F90245@lassitu.de> <203BF1C8-D528-40C9-8611-9C7AC7E43BAB@lassitu.de> <3C0E9CA3-E130-4E9A-ABCC-1782E28999D1@lassitu.de> <6387ABA5-AC55-49DD-9058-E45CC0A3E0A0@lassitu.de> <74E4AF57-3D22-415E-B913-176753B09B16@lassitu.de> <710E2C7A-E9AC-4103-8C61-0EDC4A3AF9DE@lassitu.de> Date: Tue, 13 Dec 2011 02:06:46 -0800 X-Google-Sender-Auth: EveifAJE10azNqKobhSrj-WxszA Message-ID: From: Adrian Chadd To: Stefan Bethke Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-embedded@freebsd.org Subject: Re: TL-WR1043: switch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2011 10:06:47 -0000 On 13 December 2011 02:03, Stefan Bethke wrote: >> Ok. So what's arge0's PHY configuration coming from? Or is it being >> handled as a multi-phy, where it forces speed/duplex (and MAC PLL + >> MII clock but I have to fix that for ar71xx/ar724x) and then just >> nails the port as always up, rather than binding a phy instance to it? > > It's hard-wired on both ends, the PHY MAC and the arge MAC. Ok. I'll have to review this a bit further, along with ray's switch interface work. Hopefully we can tidy up something and get it into -HEAD. The trouble ray is having at the moment is where the switch PHY hangs off of arge1, rather than arge0. This means that arge0 gets probed and has no PHY; then arge1 gets probed and has the switch PHY. I'd rather (for now) just have arge0 be "hard" coded up to something and use the switch API to configure the switch ports themselves. If that works (well enough for now) then we can just get the switch code + drivers into -HEAD and get it all polished. Thanks for chasing this up! I really appreciate it. FYI: I'm working on the GPIO stuff now. I'll try to get the rest of the GPIO code changes into -HEAD by the weekend so we can use all the GPIO lines on each of our boards, along with being able to override the GPIO function register. Adrian