From owner-freebsd-embedded@FreeBSD.ORG Mon Nov 28 23:19:01 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 D78B5106564A for ; Mon, 28 Nov 2011 23:19:01 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 677328FC13 for ; Mon, 28 Nov 2011 23:19:01 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so11386054bkb.13 for ; Mon, 28 Nov 2011 15:19:00 -0800 (PST) Received: by 10.204.155.76 with SMTP id r12mr44300126bkw.115.1322520693159; Mon, 28 Nov 2011 14:51:33 -0800 (PST) Received: from rnote.ddteam.net (34-187-133-95.pool.ukrtel.net. [95.133.187.34]) by mx.google.com with ESMTPS id j9sm32843161bkd.2.2011.11.28.14.51.29 (version=SSLv3 cipher=OTHER); Mon, 28 Nov 2011 14:51:30 -0800 (PST) Date: Tue, 29 Nov 2011 00:51:26 +0200 From: Aleksandr Rybalko To: Stefan Bethke Message-Id: <20111129005126.4679cecc.ray@ddteam.net> In-Reply-To: <68ABED76-CB1F-405A-8036-EC254F7511FA@lassitu.de> References: <68ABED76-CB1F-405A-8036-EC254F7511FA@lassitu.de> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Mon, 28 Nov 2011 23:19:01 -0000 On Mon, 28 Nov 2011 23:18:06 +0100 Stefan Bethke wrote: > So with the GPIOs working, the next step would be to attach a > bit-banging I2C device to GPIO 18 and 19. My kernel foo is probably > not up to creating the appropriate newbus attachment myself. Anybody > want to give me a hint? I'd start by copying lpbb, replacing the > parallel port code with appropirate gpio calls. > > I haven't taken a detailed look at the OpenWrt code, but the > datasheet for the RTL8366 can be googled, including a full register > map and a description of the VLAN configuration (which I'm most > interested in). With a working I2C bus, that shouldn't be too hard, > I'd think. > > > Stefan > > -- > Stefan Bethke Fon +49 151 14070811 > > > > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to > "freebsd-embedded-unsubscribe@freebsd.org" Hi Stefan, can you do me a favor? check please (if box open already) are pins 66,67 of RTL8366 wired? I ask because (maybe you know) I work on switch framework and already have partial support for RTL8366, but in my box it connected with MDIO (pins 66,67) Thank you! WBW -- Aleksandr Rybalko