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 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
201 changes: 106 additions & 95 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 @@ -209,27 +217,27 @@ digraph {
<td port="g0">rph_g0</td><td>gpio, sda</td>
<td rowspan="28">Raspberry Pi HAT</td>
</tr>
<tr><td port="g1" >rph_g1</td><td>gpio, scl</td></tr>
<tr><td port="g2_sda" >rph_g2_sda</td><td>gpio, sda</td></tr>
<tr><td port="g3_scl" >rph_g3_scl</td><td>gpio, scl</td></tr>
<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="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>
<tr><td port="g1">rph_g1</td><td>gpio, scl</td></tr>
<tr><td port="g2_sda">rph_g2_sda</td><td>gpio, sda</td></tr>
<tr><td port="g3_scl">rph_g3_scl</td><td>gpio, scl</td></tr>
<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">rph_g7</td><td>gpio, cs</td></tr>
<tr><td port="g8">rph_g8</td><td>gpio, cs</td></tr>
<tr><td port="g9">rph_g9</td><td>gpio, cipo</td></tr>
<tr><td port="g10">rph_g10</td><td>gpio, copi</td></tr>
<tr><td port="g11">rph_g11</td><td>gpio, sclk</td></tr>
<tr><td port="g12">rph_g12</td><td>gpio, pwm</td></tr>
<tr><td port="g13">rph_g13</td><td>gpio, pwm</td></tr>
<tr><td port="txd0">rph_txd0</td><td>gpio, tx</td></tr>
<tr><td port="rxd0">rph_rxd0</td><td>gpio, rx</td></tr>
<tr><td port="g16_spi1_ce2">rph_g16_spi1_ce2</td><td>gpio, cs</td></tr>
<tr><td port="g17_spi1_ce1">rph_g17_spi1_ce1</td><td>gpio, cs</td></tr>
<tr><td port="g18_spi1_ce0">rph_g18_spi1_ce0</td><td>gpio, cs, pwm</td></tr>
<tr><td port="g19_spi1_cipo">rph_g19_spi1_cipo</td><td>gpio, cipo, pwm</td></tr>
<tr><td port="g20_spi1_copi">rph_g20_spi1_copi</td><td>gpio, copi, pwm</td></tr>
<tr><td port="g21_spi1_sclk">rph_g21_spi1_sclk</td><td>gpio, sclk, pwm</td></tr>
<tr><td port="g16">rph_g16</td><td>gpio, cs</td></tr>
<tr><td port="g17">rph_g17</td><td>gpio, cs</td></tr>
<tr><td port="g18">rph_g18</td><td>gpio, cs, pwm</td></tr>
<tr><td port="g19">rph_g19</td><td>gpio, cipo, pwm</td></tr>
<tr><td port="g20">rph_g20</td><td>gpio, copi, pwm</td></tr>
<tr><td port="g21">rph_g21</td><td>gpio, sclk, pwm</td></tr>
<tr><td port="g22">rph_g22</td><td>gpio</td></tr>
<tr><td port="g23">rph_g23</td><td>gpio</td></tr>
<tr><td port="g24">rph_g24</td><td>gpio</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;
spi_1:cipo -> rph:g9 [dir=back];
spi_1:sclk -> rph:g11;
spi_1:cs_1 -> rph:g7;
spi_1:cs_0 -> rph:g8;

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;
spi_2:cipo -> rph:g19 [dir=back];
spi_2:sclk -> rph:g21;
spi_2:cs_0 -> rph:g18;
spi_2:cs_1 -> rph:g17;
spi_2:cs_2 -> rph:g16;

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 All @@ -462,10 +473,10 @@ digraph {

pwm:0 -> rph:g12;
pwm:1 -> rph:g13;
pwm:2 -> rph:g18_spi1_ce0;
pwm:3 -> rph:g19_spi1_cipo;
pwm:4 -> rph:g20_spi1_copi;
pwm:5 -> rph:g21_spi1_sclk;
pwm:2 -> rph:g18;
pwm:3 -> rph:g19;
pwm:4 -> rph:g20;
pwm:5 -> rph:g21;

// GPIOs
edge [dir=forward color=grey];
Expand All @@ -485,21 +496,21 @@ 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:g9_spi0_cipo;
gpio_rph:"gpio_0-27" -> rph:g10_spi0_copi;
gpio_rph:"gpio_0-27" -> rph:g11_spi0_sclk;
gpio_rph:"gpio_0-27" -> rph:g7;
gpio_rph:"gpio_0-27" -> rph:g8;
gpio_rph:"gpio_0-27" -> rph:g9;
gpio_rph:"gpio_0-27" -> rph:g10;
gpio_rph:"gpio_0-27" -> rph:g11;
gpio_rph:"gpio_0-27" -> rph:g12;
gpio_rph:"gpio_0-27" -> rph:g13;
gpio_rph:"gpio_0-27" -> rph:txd0;
gpio_rph:"gpio_0-27" -> rph:rxd0;
gpio_rph:"gpio_0-27" -> rph:g16_spi1_ce2;
gpio_rph:"gpio_0-27" -> rph:g17_spi1_ce1;
gpio_rph:"gpio_0-27" -> rph:g18_spi1_ce0;
gpio_rph:"gpio_0-27" -> rph:g19_spi1_cipo;
gpio_rph:"gpio_0-27" -> rph:g20_spi1_copi;
gpio_rph:"gpio_0-27" -> rph:g21_spi1_sclk;
gpio_rph:"gpio_0-27" -> rph:g16;
gpio_rph:"gpio_0-27" -> rph:g17;
gpio_rph:"gpio_0-27" -> rph:g18;
gpio_rph:"gpio_0-27" -> rph:g19;
gpio_rph:"gpio_0-27" -> rph:g20;
gpio_rph:"gpio_0-27" -> rph:g21;
gpio_rph:"gpio_0-27" -> rph:g22;
gpio_rph:"gpio_0-27" -> rph:g23;
gpio_rph:"gpio_0-27" -> rph:g24;
Expand All @@ -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