Skip to content

Commit

Permalink
boards: sparkfun: pro_micro_rp2040: fix pinctrl definitions for spi
Browse files Browse the repository at this point in the history
The default SCK and COPI/MOSI pins on the Sparkfun Pro Micro RP2040
board correspond to `GPIO22` and `GPIO23` respectively[^1].
The existing pinctrl definitions in the `spi0_default` don't reflect
this (rather, they match the pinout of the Adafruit KB2040 MCU[^2]).

Update the board's respective pinctrl definitions to match the pinout.

[^1]: https://cdn.sparkfun.com/assets/e/2/7/6/b/ProMicroRP2040_Graphical_Datasheet.pdf
[^2]: https://learn.adafruit.com/assets/106984

Signed-off-by: Anant Thazhemadam <[email protected]>
  • Loading branch information
thazhemadam authored and kartben committed Jan 8, 2025
1 parent 17806f2 commit 81563c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions boards/sparkfun/pro_micro_rp2040/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ Default Zephyr Peripheral Mapping:
- I2C1_SDA : P2
- I2C1_SCL : P3
- SPI0_RX : P20
- SPI0_SCK : P18
- SPI0_TX : P19
- SPI0_SCK : P22
- SPI0_TX : P23

Programming and Debugging
*************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@

spi0_default: spi0_default {
group1 {
pinmux = <SPI0_TX_P19>;
pinmux = <SPI0_TX_P23>;
};
group2 {
pinmux = <SPI0_RX_P20>;
input-enable;
};
group3 {
pinmux = <SPI0_SCK_P18>;
pinmux = <SPI0_SCK_P22>;
};
};

Expand Down

0 comments on commit 81563c1

Please sign in to comment.