Date: Mon, 4 May 2020 18:26:44 +0200 From: <jakub.klama@gmail.com> To: "'Ian Lepore'" <ian@freebsd.org>, <kamalp@acm.org>, <freebsd-arm@freebsd.org> Subject: RE: pl022 driver Message-ID: <01f501d62230$cd43b730$67cb2590$@gmail.com> In-Reply-To: <daece850dda7ede7a04e4d5167c4535d620c2647.camel@freebsd.org> References: <CAK=yUG%2BhC52gRijA6kBa6PoWJp0_naJFHqJzQA3j0ueEHbnmvQ@mail.gmail.com> <CAK=yUGKvKiFCjuXwSB8bn%2Bqbhm_co%2B010M%2BD2QWT0EQ6aUmmVg@mail.gmail.com> <daece850dda7ede7a04e4d5167c4535d620c2647.camel@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: owner-freebsd-arm@freebsd.org <owner-freebsd-arm@freebsd.org> On > Behalf Of Ian Lepore > Sent: Monday, May 4, 2020 5:13 PM > To: kamalp@acm.org; freebsd-arm@freebsd.org > Subject: Re: pl022 driver > > On Mon, 2020-05-04 at 10:58 +0530, Kamal R. Prasad wrote: > > I am looking for the freebsd equivalent of > > https://github.com/torvalds/linux/blob/master/drivers/spi/spi-pl022.c > > > > thanks > > -kamal > > > > Aleksandr already gave you a link to the only thing which exists, a > stripped-down, spi-master-only driver without dma support, written for > the LPC variation of the pl022 hardware. It appears to be a very old > driver with no support for FDT data. But it's the only thing that > exists right now for freebsd. > > https://socsvn.freebsd.org/socsvn/soc2015/mihai/bhyve-on-arm- > head/sys/arm/lpc/lpc_spi.c > > It might be worth checking whether netbsd or openbsd has a driver, those > can often be ported to freebsd without much trouble. Hi, This driver, along with the whole LPC32x0 port was removed FreeBSD 12. You can find latest version in 11.3-RELEASE: https://github.com/freebsd/freebsd/blob/release/11.3.0/sys/arm/lpc/lpc_spi.c As Ian pointed out, it's a quite old driver, with missing FDT functionalities like assigning GPIO pins as chip selects. Feel free to take it as a foundation for a better driver. :-) Thanks, Jakub
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01f501d62230$cd43b730$67cb2590$>