Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2013 10:24:20 +0000
From:      fabiodive <fabiodive@gmail.com>
To:        Alie Tan <alie@afflemedialab.com>
Cc:        "freebsd-arm@FreeBSD.org" <freebsd-arm@freebsd.org>
Subject:   Re: SPI device on Raspberry PI
Message-ID:  <065FC25B-2C70-4CF9-AAA0-7B74D81231B8@gmail.com>
In-Reply-To: <CANuCnH8kWMh40W0NUqMVcuHnJA=-XJ6%2BTSCPn-JjGSndk_yW%2Bg@mail.gmail.com>
References:  <935B7003-F750-42E7-9100-C27028B6A111@gmail.com> <CAB=2f8x=T7u_mgAUDbDx2z3t%2BoW6w2oyKLutaFUBrxVT6NQQ3g@mail.gmail.com> <E527CB90-2206-41B8-B9F4-3FA0FB17A24D@gmail.com> <CANuCnH8kWMh40W0NUqMVcuHnJA=-XJ6%2BTSCPn-JjGSndk_yW%2Bg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
OK!=20

I will check it and report

thank you again
f.

On Oct 30, 2013, at 10:22 AM, Alie Tan <alie@afflemedialab.com> wrote:

> Its already commited to the HEAD
> http://svnweb.freebsd.org/base?view=3Drevision&revision=3D257062
>=20
>=20
> On Wed, Oct 30, 2013 at 5:12 PM, fabiodive <fabiodive@gmail.com> =
wrote:
> Hello Luiz,
>=20
> how are you? Hope you great..
>=20
> is there any news about SPI user space device
> on FreebSD and RASPBERRY PI?
>=20
> thank you for all your effort..
> with your patches I was able to use I2C,
>=20
> best regards,
> Fabio Balzano
>=20
>=20
>=20
> On Sep 19, 2013, at 2:00 PM, Luiz Otavio O Souza <lists.br@gmail.com> =
wrote:
>=20
> > On 17 September 2013 19:00, fabiodive <fabiodive@gmail.com> wrote:
> > Hello Luiz,
> >
> > I was able to use your patches on Raspberry PI,
> > I builded an image with crochet and this is my dmesg output:
> >
> >
> > [...]
> >
> > Now.. I see the GPIO device and iic as well but what about SPI?
> > Should I create the device or just use GPIO?
> > Any ideas?
> >
> >
> > The devices you see for gpio and iic are used to control (or read =
and write data) from userland and actually there is no such support for =
SPI.
> >
> > I've plans to write an userland tool similar to i2c(8) for SPI =
together with some other pending work i've for SPI.
> >
> > But until it happens you need a kernel driver for the SPI device you =
want to use:
> >
> > spi0: <BCM2708/2835 SPI controller> mem 0x20204000-0x2020401f irq 62 =
on simplebus0
> > spibus0: <OFW SPI bus> on spi0
> > mx25l0: <M25Pxx Flash Family> at cs 0 on spibus0
> > enc28j600: <enc28j60 Microchip SPI Ethernet controller> at cs 1 on =
spibus0
> >
> > And the bindings also need to be described in the rpi dts file, i.e. =
in my case:
> >
> >                 spi0 {
> >                         flash0 {
> >                                 compatible =3D "flash,mx25l";
> >                                 spi-chipselect =3D <0>;
> >                         };
> >
> >                         enc28j600 {
> >                                 compatible =3D "ethernet,enc28j60";
> >                                 spi-chipselect =3D <1>;
> >                         };
> >                 };
> >
> > Thanks for your feedback.
> >
> > Luiz
>=20
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?065FC25B-2C70-4CF9-AAA0-7B74D81231B8>