Page MenuHomeFreeBSD

Add a GPIO driver for the Raspberry Pi firmware GPIOs
ClosedPublic

Authored by andrew on Tue, Jul 28, 2:33 PM.

Details

Summary

These exist on the Raspberry Pi 3 and 4 and control and external IO
expander.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

andrew created this revision.Tue, Jul 28, 2:33 PM
andrew requested review of this revision.Tue, Jul 28, 2:33 PM
manu added a subscriber: manu.Wed, Jul 29, 8:20 AM
manu added inline comments.
sys/arm/broadcom/bcm2835/raspberrypi_gpio.c
172 ↗(On Diff #75066)

Is all this needed ? Can't you just test that the pin isn't > RPI_FW_GPIO_PINS and if not return DEFAULT_CAPS ?

gbe added a subscriber: gbe.Wed, Jul 29, 1:29 PM
andrew updated this revision to Diff 75316.Mon, Aug 3, 5:10 PM

Always return RPI_FW_GPIO_DEFAULT_CAPS from getcaps.

manu accepted this revision.Mon, Aug 3, 5:14 PM
This revision is now accepted and ready to land.Mon, Aug 3, 5:14 PM
This revision was automatically updated to reflect the committed changes.