boards: sparkfun: pro_micro_rp2040: fix pinctrl definitions for spi

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 <anant.thazhemadam@gmail.com>
This commit is contained in:
Anant Thazhemadam 2024-12-26 22:25:30 +05:30 committed by Benjamin Cabé
parent 17806f2054
commit 81563c12a2
2 changed files with 4 additions and 4 deletions

View file

@ -103,8 +103,8 @@ Default Zephyr Peripheral Mapping:
- I2C1_SDA : P2 - I2C1_SDA : P2
- I2C1_SCL : P3 - I2C1_SCL : P3
- SPI0_RX : P20 - SPI0_RX : P20
- SPI0_SCK : P18 - SPI0_SCK : P22
- SPI0_TX : P19 - SPI0_TX : P23
Programming and Debugging Programming and Debugging
************************* *************************

View file

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