From owner-freebsd-embedded@FreeBSD.ORG Mon Nov 28 22:18:07 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 8E865106564A for ; Mon, 28 Nov 2011 22:18:07 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id 5A0988FC14 for ; Mon, 28 Nov 2011 22:18:07 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id A96FF11346F for ; Mon, 28 Nov 2011 23:18:06 +0100 (CET) From: Stefan Bethke Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Mon, 28 Nov 2011 23:18:06 +0100 Message-Id: <68ABED76-CB1F-405A-8036-EC254F7511FA@lassitu.de> To: freebsd-embedded@freebsd.org Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) Subject: 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 22:18:07 -0000 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 --=20 Stefan Bethke Fon +49 151 14070811