# RP1 I/O chip drivers for the Raspberry Pi 5

<span class="badge badge-plan">early code</span> Pi 5 only, FreeBSD 15.1. Nothing has been built or loaded on a board yet. The repository is not public yet.

## Modules

| Module | Covers | State |
|---|---|---|
| `rp1` | The bus. Attaches under ACPI `\_SB_.RP1B` and publishes `dev.rp1.0.chipid` | written |
| `rp1gpio` | 54 GPIO pins; only GPIO0 to GPIO27 are writable, the rest belong to the board | written |
| `rp1eth` | Gigabit Ethernet | planned |
| `rp1iic`, `rp1spi` | I2C and SPI on the header | planned |
| `rp1pwm` | PWM | planned |
| `rp1uart` | UARTs (Bluetooth needs this) | planned |

## When it is ready

```sh
make test
make coverage
make buildcheck
make modules
make load
make status
```

Expected: `dev.rp1.0.chipid` = `0x20001927`, and `gpioctl -l` lists GPIO0 to GPIO53.

One house rule: the [fan driver](/rpi/fan/) uses the same chip, and it must keep spinning after any of these modules is unloaded.
