Skip to content

Commit 832f46b

Browse files
SPI instances reduced from 7 to 5
The two SPI hosts used for the Raspberry Pi HAT can also be used by the Arduino Shield and microBus Click. These headers cannot be connected at the same time because of the PCB design.
1 parent 2bf7b8c commit 832f46b

7 files changed

Lines changed: 411 additions & 529 deletions

File tree

data/top_config.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ios = [
1616

1717
[[blocks]]
1818
name = "spi"
19-
instances = 7
19+
instances = 5
2020
ios = [
2121
{ name = "sck", type = "output" },
2222
{ name = "tx", type = "output" },
@@ -312,21 +312,21 @@ block_ios = [{block = "gpio", instance = 1, io = 10}]
312312
[[pins]]
313313
name = "ah_tmpio11"
314314
block_ios = [
315-
{block = "spi", instance = 5, io = "tx"},
315+
{block = "spi", instance = 3, io = "tx"},
316316
{block = "gpio", instance = 1, io = 11},
317317
]
318318

319319
[[pins]]
320320
name = "ah_tmpio12"
321321
block_ios = [
322-
{block = "spi", instance = 5, io = "rx"},
322+
{block = "spi", instance = 3, io = "rx"},
323323
{block = "gpio", instance = 1, io = 12},
324324
]
325325

326326
[[pins]]
327327
name = "ah_tmpio13"
328328
block_ios = [
329-
{block = "spi", instance = 5, io = "sck"},
329+
{block = "spi", instance = 3, io = "sck"},
330330
{block = "gpio", instance = 1, io = 13},
331331
]
332332

@@ -353,15 +353,15 @@ block_ios = [{block = "gpio", instance = 1, io = 17}]
353353
# mb1 is chip select and already connected to a general purpose output.
354354
[[pins]]
355355
name = "mb2"
356-
block_ios = [{block = "spi", instance = 6, io = "sck"}]
356+
block_ios = [{block = "spi", instance = 4, io = "sck"}]
357357

358358
[[pins]]
359359
name = "mb3"
360-
block_ios = [{block = "spi", instance = 6, io = "rx"}]
360+
block_ios = [{block = "spi", instance = 4, io = "rx"}]
361361

362362
[[pins]]
363363
name = "mb4"
364-
block_ios = [{block = "spi", instance = 6, io = "tx"}]
364+
block_ios = [{block = "spi", instance = 4, io = "tx"}]
365365

366366
[[pins]]
367367
name = "mb5"

data/xbar_main_generated.hjson

Lines changed: 0 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rtl/bus/sonata_xbar_main.sv

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rtl/bus/tl_main_pkg.sv

Lines changed: 3 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)