Skip to content

Commit 81563c1

Browse files
thazhemadamkartben
authored andcommitted
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 <[email protected]>
1 parent 17806f2 commit 81563c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

boards/sparkfun/pro_micro_rp2040/doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ Default Zephyr Peripheral Mapping:
103103
- I2C1_SDA : P2
104104
- I2C1_SCL : P3
105105
- SPI0_RX : P20
106-
- SPI0_SCK : P18
107-
- SPI0_TX : P19
106+
- SPI0_SCK : P22
107+
- SPI0_TX : P23
108108

109109
Programming and Debugging
110110
*************************

boards/sparkfun/pro_micro_rp2040/sparkfun_pro_micro_rp2040-pinctrl.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929

3030
spi0_default: spi0_default {
3131
group1 {
32-
pinmux = <SPI0_TX_P19>;
32+
pinmux = <SPI0_TX_P23>;
3333
};
3434
group2 {
3535
pinmux = <SPI0_RX_P20>;
3636
input-enable;
3737
};
3838
group3 {
39-
pinmux = <SPI0_SCK_P18>;
39+
pinmux = <SPI0_SCK_P22>;
4040
};
4141
};
4242

0 commit comments

Comments
 (0)