Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI host doc updated with chip select #353

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions doc/ip/spi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,18 @@ In Sonata, there are multiple uses for SPI:
- Arduino shield
- mikroBUS click

The offset for each of the blocks is shown below, with each additional block having a `0x1000` offset from the previous.

| SPI Instance | Offset (from SPI base) |
|-----------------------|------------------------|
| LCD Screen | 0x0000 |
| Ethernet MAC | 0x1000 |
| SPI0 | 0x2000 |
| SPI1 | 0x3000 |
| SPI2 | 0x4000 |
The offset for each of the blocks is shown below, with each additional block having a 0x1000 offset from the previous.
The offsets in the table below are from the SPI base address, which is 0x8030_0000.
The table also shows the connections of the chip select (CS) wires.
CS1 for LCD and Ethernet and CS2 for LCD are *not* used as chip selects but rather for block specific functions like reset and data/control signals.

| Name | Offset | Blocks | CS0 | CS1 | CS2 | CS3 |
|--------------|--------|---------------------------|--------------|--------------|--------------|----------|
| LCD Screen | 0x0000 | *Only* LCD | CS | Data/control | Reset | |
| Ethernet MAC | 0x1000 | *Only* Ethernet | CS | Reset | | |
marnovandermaas marked this conversation as resolved.
Show resolved Hide resolved
| SPI0 | 0x2000 | Flash or MicroSD | Flash | MicroSD | | |
| SPI1 | 0x3000 | HAT SPI0, Shield, Pmod0 | HAT or Pmod0 | HAT or Pmod0 | Pmod0 | Shield |
| SPI2 | 0x4000 | HAT SPI1, mikroBUS, Pmod1 | HAT or Pmod1 | HAT or Pmod1 | HAT or Pmod1 | mikroBUS |

Please refer to the [pin multiplexer](pinmux/pin-mappings.md) on how to connect SPI 0, 1 and 2.
marnovandermaas marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
Loading