From owner-freebsd-embedded@FreeBSD.ORG Sat Sep 7 17:06:46 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E19BE6A6 for ; Sat, 7 Sep 2013 17:06:45 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm47-vm1.bullet.mail.bf1.yahoo.com (nm47-vm1.bullet.mail.bf1.yahoo.com [216.109.115.124]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 887362A82 for ; Sat, 7 Sep 2013 17:06:45 +0000 (UTC) Received: from [98.139.215.141] by nm47.bullet.mail.bf1.yahoo.com with NNFMP; 07 Sep 2013 17:06:38 -0000 Received: from [68.142.230.72] by tm12.bullet.mail.bf1.yahoo.com with NNFMP; 07 Sep 2013 17:06:38 -0000 Received: from [127.0.0.1] by smtp229.mail.bf1.yahoo.com with NNFMP; 07 Sep 2013 17:06:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378573598; bh=s3i2xhi4kgIWcpXLnmEvwtBH2nr/SNMZAvwS37dVnoI=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=ukoWegn8ju2GD6VAUEXBQF8NCIvTA4OiaV/zX6RJellhd0tMUw2QLb5KRnMScsf/trIBWEg3QrPcIgqqmAlTMjk8nKcZXGNw93v6MFcCzOMi01Xgf3LtOKllGmcipe0IKsqUu5EycHDRmYq3iyXK9gthweoWfWnAHWt3+3S5sGw= X-Yahoo-Newman-Id: 485454.62399.bm@smtp229.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: WmrdjQcVM1lgbd54vvQF630E289Xy3X9zKlMSELWbGIBSxA jDnxBBiozug.dIju2J1K.DYqrNKivgjZmzMOK1m2scMl.R43oIhZ22G.VDW4 G5viRfhAlp9TELNZCokZ_Y1uFf9Zyt1xZ1FQeGPxzZ06b9kdEFpgr_oRTDgz xC5d3Hmya__3t1c_yLvkZBd5sgnVeKoaRG.dxcSDZaG24JFnaRGuwl23K68V 4HC8a9Tfwht2aBNnFf5.p6sxWw2qfGCZa3jN_8.5APVvJNCVEjUP2nWKOJPl 7KF9UhjHkP5ztCAKcyPhVrb6B27CWiNXuV3jGisVkEjNkxPC8MgM2nZi6jas tAgp4naKZtRb9w2EaMeKXqbARbtZeQebe9vowrJSTaoNeLDK0BtAzyG4BeSZ eDXAgcFcdGpeyBA_JkjtYmwIVqYz0NcJroWDxyjEhCchXKFGcv2ZSrOWAmFT hNxtrWJOFFm_UDyV9Cn8xr0.AagiANS.emhKf7_mbfZgtCxKt_eEoIGDCySp s4jnjxXhxKRcL3uX_vfNd06eYazmEkbfXr7YzrF8ZDU8rRTOP_Qw- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [192.168.1.228] (sean_bruno@71.202.40.63 with ) by smtp229.mail.bf1.yahoo.com with SMTP; 07 Sep 2013 17:06:38 +0000 UTC Subject: Re: DIR-825B1 iicbus thing From: Sean Bruno To: sbruno@freebsd.org In-Reply-To: <1378573350.1588.6.camel@localhost> References: <1378491503.48812.5.camel@localhost> <1378493166.48894.1.camel@localhost> <1378573350.1588.6.camel@localhost> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Fxi3bLTyMgCA9aXe4VfV" Date: Sat, 07 Sep 2013 10:06:36 -0700 Message-ID: <1378573596.1588.7.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-embedded X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Sep 2013 17:06:46 -0000 --=-Fxi3bLTyMgCA9aXe4VfV Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Sat, 2013-09-07 at 10:02 -0700, Sean Bruno wrote: > > Humm and 0x00a0 also seems wrong for DIR825:=20 > > +# Pin 5 - WPS (LED blue) --> works > > +# Pin 6 - RTL8366RB switch data line > > +# Pin 7 - Planet (LED orange)--> works > > +# Pin 8 - RTL8366RB switch clock line > > If i'm not mistaken the correct mask is 0x140 (for pin 6 and pin 8) > > and then set the correct pin index for sda and scl.=20 > >=20 > >=20 >=20 > I don't come up with 0x140 for bit 6 and bit 8 being set, I get 0xa0. > setting 0x140 would enable bit 7 and 9. Right? >=20 > Sean=20 Yeah, its 0x0a here. If I set 0x140 I conflict with pin 7: gpio0: on apb0 gpio0: [GIANT-LOCKED] gpio0: function_set: 0x0 gpio0: function_clear: 0x0 gpio0: gpio pinmask=3D0x9ff gpioc0: on gpio0 gpiobus0: on gpio0 gpioiic0: warning: pin 6 is already mapped gpioled0: at pin(s) 0 on gpiobus0 gpioled1: at pin(s) 1 on gpiobus0 gpioled2: at pin(s) 2 on gpiobus0 gpioled3: at pin(s) 4 on gpiobus0 gpioled4: at pin(s) 6 on gpiobus0 gpioled5: at pin(s) 11 on gpiobus0 --=-Fxi3bLTyMgCA9aXe4VfV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (FreeBSD) iQEcBAABAgAGBQJSK10cAAoJEBkJRdwI6BaH7ZUH/0k2wf4+brSHZVqFAbkhmBNc CeAkNERhuYsQo337MMC21STVs6VrpdNnmyCciGrJ3YVtN3+J8dVrsKrL/61jc6o2 WUKAwN0dsMqkgtnPuzUBGCT9lt23DTeWxCoSOTGsjs4teouzo9tXvo66UZOqq/xB oKlbiNKKqqHGpxlFP/6SOYxu+/fUQbBvW9ib06kn3qVJt92v5SnNsNFg+LeJN2WG P/CcpREDoi67WG0mYVY16akxiA5e//5FaCRNJVD7EXZ2lKZvDg6s0eH17BTvvTj8 EyepU24Xr7DBoVuxvxjLi3OoGwoPjgvAE8swmHsy+7wlU3QblxHnEzksEKzMJfo= =rkYS -----END PGP SIGNATURE----- --=-Fxi3bLTyMgCA9aXe4VfV--