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

(cherry picked from commit 81563c1)

Original-Signed-off-by: Anant Thazhemadam <[email protected]>
GitOrigin-RevId: 81563c1
Cr-Build-Id: 8726317439116197601
Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8726317439116197601
Copybot-Job-Name: zephyr-main-copybot-downstream
Change-Id: If9cb49c22e61dcce7d2fefa1bc0036f315ace06f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6157527
Commit-Queue: ChromeOS Prod (Robot) <[email protected]>
Bot-Commit: ChromeOS Prod (Robot) <[email protected]>
Tested-by: ChromeOS Prod (Robot) <[email protected]>
  • Loading branch information
Anant Thazhemadam authored and Chromeos LUCI committed Jan 8, 2025
1 parent 52d2c91 commit 1e21a9e
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 1e21a9e

Please sign in to comment.