pl022 driver
jakub.klama at gmail.com
jakub.klama at gmail.com
Mon May 4 16:26:49 UTC 2020
> -----Original Message-----
> From: owner-freebsd-arm at freebsd.org <owner-freebsd-arm at freebsd.org> On
> Behalf Of Ian Lepore
> Sent: Monday, May 4, 2020 5:13 PM
> To: kamalp at acm.org; freebsd-arm at 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
More information about the freebsd-arm
mailing list