Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Sep 2013 10:06:36 -0700
From:      Sean Bruno <sean_bruno@yahoo.com>
To:        sbruno@freebsd.org
Cc:        freebsd-embedded <freebsd-embedded@freebsd.org>
Subject:   Re: DIR-825B1 iicbus thing
Message-ID:  <1378573596.1588.7.camel@localhost>
In-Reply-To: <1378573350.1588.6.camel@localhost>
References:  <1378491503.48812.5.camel@localhost> <CAJ-Vmo=6-zgMYHPg94XS4mNS7vVy%2Bu_oAqf9FVihGmPvkDiUPw@mail.gmail.com> <CAB=2f8zEK__g=XRcR8bm3oJRgyjE0VB0DtEDz3j1yb3oHvQPPg@mail.gmail.com> <1378493166.48894.1.camel@localhost> <CAB=2f8zgfhL2cXGZe6YDM8-d1_xy=Cay9QUcJM=hL%2BWrQQKGwQ@mail.gmail.com> <CAB=2f8zvsgLAfCAEpUy35N8Cz8OgGBuzirZMbrBg5RZvbA9Bpw@mail.gmail.com> <1378573350.1588.6.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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: <Atheros AR71XX GPIO driver> on apb0
gpio0: [GIANT-LOCKED]
gpio0: function_set: 0x0
gpio0: function_clear: 0x0
gpio0: gpio pinmask=3D0x9ff
gpioc0: <GPIO controller> on gpio0
gpiobus0: <GPIO bus> on gpio0
gpioiic0: warning: pin 6 is already mapped
gpioled0: <GPIO led> at pin(s) 0 on gpiobus0
gpioled1: <GPIO led> at pin(s) 1 on gpiobus0
gpioled2: <GPIO led> at pin(s) 2 on gpiobus0
gpioled3: <GPIO led> at pin(s) 4 on gpiobus0
gpioled4: <GPIO led> at pin(s) 6 on gpiobus0
gpioled5: <GPIO led> 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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1378573596.1588.7.camel>