Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Sep 2013 16:21:59 -0300
From:      Luiz Otavio O Souza <lists.br@gmail.com>
To:        Sean Bruno <sbruno@freebsd.org>
Cc:        freebsd-embedded <freebsd-embedded@freebsd.org>
Subject:   Re: DIR-825B1 iicbus thing
Message-ID:  <CAB=2f8zgfhL2cXGZe6YDM8-d1_xy=Cay9QUcJM=hL%2BWrQQKGwQ@mail.gmail.com>
In-Reply-To: <1378493166.48894.1.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>

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

I've looked at your changes and found this:

+# GPIO I2C bus
+hint.gpioiic.0.at="gpiobus0"
+hint.gpioiic.0.pins=0x00a0
+hint.gpioiic.0.sda=0
+hint.gpioiic.0.scl=1

Unfortunately the gpioiic on -head doesn't support yet setting the sda and
scl pin indexes, they are hardcoded in the code:

#define SCL_PIN_DEFAULT 0       /* default index of SCL pin on gpiobus */
#define SDA_PIN_DEFAULT 1

Can you change them and check if it change anything ?

Thanks,
Luiz

On 6 September 2013 15:46, Sean Bruno <sean_bruno@yahoo.com> wrote:

> On Fri, 2013-09-06 at 15:38 -0300, Luiz Otavio O Souza wrote:
> > Maybe you're lucky and it is just
> > supported:
> http://svnweb.freebsd.org/base/head/sys/dev/etherswitch/rtl8366/ :-) (but
> i'm not sure if 's' or the 'rb' suffix matter).
> >
> >
> > Please check the TPLink 1043 kernel and hints for a setup example for
> > this switch.
>
> Yeah, I did.  and no, its not supported.  Its not attaching when I
> enable the driver and etherswitch.
>
> >
> >         > iicbb0: <I2C bit-banging driver> on gpioiic0
> >         > iicbus0: <Philips I2C bus> on iicbb0 master-only
> >         > iicbus0: <unknown card> at addr 0xa8
> >         > iic0: <I2C generic I/O> on iicbus0
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB=2f8zgfhL2cXGZe6YDM8-d1_xy=Cay9QUcJM=hL%2BWrQQKGwQ>