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

Update pinmux mapping diagram to match top_config.toml #343

Merged
merged 5 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
145 changes: 78 additions & 67 deletions doc/ip/pinmux/pin_mappings.dot
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ digraph {
i2c_1 [label = "i2c_1|<sda>sda|<scl>scl"]

// SPI for Flash & microSD
spi_board [label = "spi_board\
spi_0 [label = "spi_0\
|<copi>copi\
|<cipo>cipo\
|<sclk>sclk\
Expand Down Expand Up @@ -42,7 +42,7 @@ digraph {
"]

// Pi Spi0, Pmod 0, Arduino Header
spi_0 [label = "spi_0\
spi_1 [label = "spi_1\
|<copi>copi\
|<cipo>cipo\
|<sclk>sclk\
Expand All @@ -53,7 +53,7 @@ digraph {
"]

// Pi Spi1, Pmod 1, mikroBUS
spi_1 [label = "spi_1\
spi_2 [label = "spi_2\
|<copi>copi\
|<cipo>cipo\
|<sclk>sclk\
Expand Down Expand Up @@ -108,7 +108,15 @@ digraph {
</table>
>];

// missing rx485_{ro,de,ren,di}
rs485 [label=<
<table border="0" cellborder="1" cellspacing="0" cellpadding="4">
<tr>
<td port="tx">rs485_tx</td><td>tx</td>
<td rowspan="2">rs485</td>
</tr>
<tr><td port="rx">rs485_rx</td><td>rx</td></tr>
</table>
>];

rs232 [label=<
<table border="0" cellborder="1" cellspacing="0" cellpadding="4">
Expand Down Expand Up @@ -215,8 +223,8 @@ digraph {
<tr><td port="g4" >rph_g4</td><td>gpio</td></tr>
<tr><td port="g5" >rph_g5</td><td>gpio</td></tr>
<tr><td port="g6" >rph_g6</td><td>gpio</td></tr>
<tr><td port="g7_spi0_ce0" >rph_g7_spi0_ce0</td><td>gpio, cs</td></tr>
<tr><td port="g8_spi0_ce1" >rph_g8_spi0_ce1</td><td>gpio, cs</td></tr>
<tr><td port="g7_spi0_ce1" >rph_g7_spi0_ce1</td><td>gpio, cs</td></tr>
<tr><td port="g8_spi0_ce0" >rph_g8_spi0_ce0</td><td>gpio, cs</td></tr>
<tr><td port="g9_spi0_cipo" >rph_g9_spi0_cipo</td><td>gpio, cipo</td></tr>
<tr><td port="g10_spi0_copi">rph_g10_spi0_copi</td><td>gpio, copi</td></tr>
<tr><td port="g11_spi0_sclk">rph_g11_spi0_sclk</td><td>gpio, sclk</td></tr>
Expand Down Expand Up @@ -290,10 +298,10 @@ digraph {
<tr><td port="2">pmod0_2</td><td>gpio, copi, pwm, tx</td></tr>
<tr><td port="3">pmod0_3</td><td>gpio, cipo, scl, rx</td></tr>
<tr><td port="4">pmod0_4</td><td>gpio, sclk, sda</td></tr>
<tr><td port="5">pmod0_5</td><td>gpio</td></tr>
<tr><td port="6">pmod0_6</td><td>gpio, pwm</td></tr>
<tr><td port="7">pmod0_7</td><td>gpio, cs</td></tr>
<tr><td port="8">pmod0_8</td><td>gpio, cs</td></tr>
<tr><td port="7">pmod0_7</td><td>gpio</td></tr>
<tr><td port="8">pmod0_8</td><td>gpio, pwm</td></tr>
<tr><td port="9">pmod0_9</td><td>gpio, cs</td></tr>
<tr><td port="10">pmod0_10</td><td>gpio, cs</td></tr>
</table>
>];

Expand All @@ -305,11 +313,11 @@ digraph {
</tr>
<tr><td port="2">pmod1_2</td><td>gpio, copi, pwm, tx</td></tr>
<tr><td port="3">pmod1_3</td><td>gpio, cipo, scl, rx</td></tr>
<tr><td port="4">pmod1_4</td><td>gpio, sclk, sca</td></tr>
<tr><td port="5">pmod1_5</td><td>gpio</td></tr>
<tr><td port="6">pmod1_6</td><td>gpio, pwm</td></tr>
<tr><td port="7">pmod1_7</td><td>gpio, cs</td></tr>
<tr><td port="8">pmod1_8</td><td>gpio, cs</td></tr>
<tr><td port="4">pmod1_4</td><td>gpio, sclk, sda</td></tr>
<tr><td port="7">pmod1_7</td><td>gpio</td></tr>
<tr><td port="8">pmod1_8</td><td>gpio, pwm</td></tr>
<tr><td port="9">pmod1_9</td><td>gpio, cs</td></tr>
<tr><td port="10">pmod1_10</td><td>gpio, cs</td></tr>
</table>
>];

Expand Down Expand Up @@ -354,6 +362,9 @@ digraph {
uart_2:tx -> rs232:tx;
uart_2:rx -> rs232:rx [dir=back];

uart_2:tx -> rs485:tx;
uart_2:rx -> rs485:rx [dir=back];

uart_2:tx -> pmod1:2;
uart_2:rx -> pmod1:3 [dir=back];

Expand Down Expand Up @@ -383,15 +394,15 @@ digraph {
// SPI
edge [dir=forward color=dodgerblue];

spi_board:copi -> appspi:d0;
spi_board:cipo -> appspi:d1 [dir=back];
spi_board:sclk -> appspi:clk;
spi_board:cs_0 -> appspi:cs;
spi_0:copi -> appspi:d0;
spi_0:cipo -> appspi:d1 [dir=back];
spi_0:sclk -> appspi:clk;
spi_0:cs_0 -> appspi:cs;

spi_board:copi -> microsd:cmd;
spi_board:cipo -> microsd:dat0 [dir=back];
spi_board:sclk -> microsd:clk;
spi_board:cs_1 -> microsd:dat3;
spi_0:copi -> microsd:cmd;
spi_0:cipo -> microsd:dat0 [dir=back];
spi_0:sclk -> microsd:clk;
spi_0:cs_1 -> microsd:dat3;

spi_lcd:copi -> lcd:copi;
spi_lcd:sclk -> lcd:clk;
Expand All @@ -405,51 +416,51 @@ digraph {
spi_ethmac:cs_0 -> ethmac:cs;
spi_ethmac:cs_1 -> ethmac:rst;

spi_0:copi -> pmod0:2;
spi_0:cipo -> pmod0:3 [dir=back];
spi_0:sclk -> pmod0:4;
spi_0:cs_0 -> pmod0:1;
spi_0:cs_1 -> pmod0:7;
spi_0:cs_2 -> pmod0:8;

spi_0:copi -> rph:g10_spi0_copi;
spi_0:cipo -> rph:g9_spi0_cipo [dir=back];
spi_0:sclk -> rph:g11_spi0_sclk;
spi_0:cs_0 -> rph:g7_spi0_ce0;
spi_0:cs_1 -> rph:g8_spi0_ce1;

spi_0:copi -> ah:tmpio11;
spi_0:cipo -> ah:tmpio12 [dir=back];
spi_0:sclk -> ah:tmpio13;
spi_0:cs_3 -> ah:tmpio10;

spi_1:copi -> pmod1:2;
spi_1:cipo -> pmod1:3 [dir=back];
spi_1:sclk -> pmod1:4;
spi_1:cs_0 -> pmod1:1;
spi_1:cs_1 -> pmod1:7;
spi_1:cs_2 -> pmod1:8;

spi_1:copi -> rph:g20_spi1_copi;
spi_1:cipo -> rph:g19_spi1_cipo [dir=back];
spi_1:sclk -> rph:g21_spi1_sclk;
spi_1:cs_0 -> rph:g18_spi1_ce0;
spi_1:cs_1 -> rph:g17_spi1_ce1;
spi_1:cs_2 -> rph:g16_spi1_ce2;

spi_1:copi -> mb:4;
spi_1:cipo -> mb:3 [dir=back];
spi_1:sclk -> mb:2;
spi_1:cs_3 -> mb:1;
spi_1:copi -> pmod0:2;
spi_1:cipo -> pmod0:3 [dir=back];
spi_1:sclk -> pmod0:4;
spi_1:cs_0 -> pmod0:1;
spi_1:cs_1 -> pmod0:9;
spi_1:cs_2 -> pmod0:10;

spi_1:copi -> rph:g10_spi0_copi;
spi_1:cipo -> rph:g9_spi0_cipo [dir=back];
spi_1:sclk -> rph:g11_spi0_sclk;
spi_1:cs_1 -> rph:g7_spi0_ce1;
spi_1:cs_0 -> rph:g8_spi0_ce0;

spi_1:copi -> ah:tmpio11;
spi_1:cipo -> ah:tmpio12 [dir=back];
spi_1:sclk -> ah:tmpio13;
spi_1:cs_3 -> ah:tmpio10;

spi_2:copi -> pmod1:2;
spi_2:cipo -> pmod1:3 [dir=back];
spi_2:sclk -> pmod1:4;
spi_2:cs_0 -> pmod1:1;
spi_2:cs_1 -> pmod1:9;
spi_2:cs_2 -> pmod1:10;

spi_2:copi -> rph:g20_spi1_copi;
spi_2:cipo -> rph:g19_spi1_cipo [dir=back];
spi_2:sclk -> rph:g21_spi1_sclk;
spi_2:cs_0 -> rph:g18_spi1_ce0;
spi_2:cs_1 -> rph:g17_spi1_ce1;
spi_2:cs_2 -> rph:g16_spi1_ce2;

spi_2:copi -> mb:4;
spi_2:cipo -> mb:3 [dir=back];
spi_2:sclk -> mb:2;
spi_2:cs_3 -> mb:1;

// PWM
edge [dir=forward color=hotpink];

pwm:0 -> mb:10;
pwm:1 -> pmod0:2;
pwm:2 -> pmod0:6;
pwm:2 -> pmod0:8;
pwm:3 -> pmod1:2;
pwm:4 -> pmod1:6;
pwm:4 -> pmod1:8;

pwm:6 -> lcd:backlight;

Expand Down Expand Up @@ -485,8 +496,8 @@ digraph {
gpio_rph:"gpio_0-27" -> rph:g4;
gpio_rph:"gpio_0-27" -> rph:g5;
gpio_rph:"gpio_0-27" -> rph:g6;
gpio_rph:"gpio_0-27" -> rph:g7_spi0_ce0;
gpio_rph:"gpio_0-27" -> rph:g8_spi0_ce1;
gpio_rph:"gpio_0-27" -> rph:g7_spi0_ce1;
gpio_rph:"gpio_0-27" -> rph:g8_spi0_ce0;
AlexJones0 marked this conversation as resolved.
Show resolved Hide resolved
gpio_rph:"gpio_0-27" -> rph:g9_spi0_cipo;
gpio_rph:"gpio_0-27" -> rph:g10_spi0_copi;
gpio_rph:"gpio_0-27" -> rph:g11_spi0_sclk;
Expand Down Expand Up @@ -526,19 +537,19 @@ digraph {
gpio_pmod0:"gpio_0-7" -> pmod0:2;
gpio_pmod0:"gpio_0-7" -> pmod0:3;
gpio_pmod0:"gpio_0-7" -> pmod0:4;
gpio_pmod0:"gpio_0-7" -> pmod0:5;
gpio_pmod0:"gpio_0-7" -> pmod0:6;
gpio_pmod0:"gpio_0-7" -> pmod0:7;
gpio_pmod0:"gpio_0-7" -> pmod0:8;
gpio_pmod0:"gpio_0-7" -> pmod0:9;
gpio_pmod0:"gpio_0-7" -> pmod0:10;

gpio_pmod1:"gpio_0-7" -> pmod1:1;
gpio_pmod1:"gpio_0-7" -> pmod1:2;
gpio_pmod1:"gpio_0-7" -> pmod1:3;
gpio_pmod1:"gpio_0-7" -> pmod1:4;
gpio_pmod1:"gpio_0-7" -> pmod1:5;
gpio_pmod1:"gpio_0-7" -> pmod1:6;
gpio_pmod1:"gpio_0-7" -> pmod1:7;
gpio_pmod1:"gpio_0-7" -> pmod1:8;
gpio_pmod1:"gpio_0-7" -> pmod1:9;
gpio_pmod1:"gpio_0-7" -> pmod1:10;

gpio_pmodc:"gpio_0-5" -> pmodc:1;
gpio_pmodc:"gpio_0-5" -> pmodc:2;
Expand Down
Loading
Loading