Skip to content

Commit 47a220e

Browse files
committed
boards: st: nucleo_c071rb: move spi pins to arduino header
This commit changes the spi1 pins to pa15, pa5, pa6, pa7. The SPI instance has been declared as arduino_spi, but different pins have been used. As I2C2 was also using the pins pa6, pa7, I2C2 is remapped to pb13, pb14 - two pins next to each other on the st morpho connector CN10. Signed-off-by: Thomas Stranger <[email protected]>
1 parent e570196 commit 47a220e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

boards/st/nucleo_c071rb/doc/index.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ Default Zephyr Peripheral Mapping:
7171
- I2C1 SCL/SDA : PB8/PB9 (Arduino I2C)
7272
- LD1 : PA5
7373
- LD2 : PC9
74-
- SPI1 NSS/SCK/MISO/MOSI : PA4/PA5/PA11/PA12 (Arduino SPI)
75-
- UART_2 TX/RX : PA2/PA3 (ST-Link Virtual Port Com)
74+
- SPI1 NSS/SCK/MISO/MOSI : PA15/PA5/PA6/PA7 (Arduino SPI)
75+
- UART_1 TX/RX : PB6/PB7 (Arduino Serial)
76+
- UART_2 TX/RX : PA2/PA3 (ST-Link Virtual COM Port)
7677
- USER_PB : PC13
7778

7879

boards/st/nucleo_c071rb/nucleo_c071rb.dts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,16 @@
128128
};
129129

130130
&i2c2 {
131-
pinctrl-0 = <&i2c2_scl_pa7 &i2c2_sda_pa6>;
131+
pinctrl-0 = <&i2c2_scl_pb13 &i2c2_sda_pb14>;
132132
pinctrl-names = "default";
133133
status = "okay";
134134
clock-frequency = <I2C_BITRATE_FAST>;
135135
};
136136

137137
&spi1 {
138-
pinctrl-0 = <&spi1_nss_pb0 &spi1_sck_pb3
139-
&spi1_miso_pb4 &spi1_mosi_pb5>;
138+
/* Note: PA5 is shared with green led0 */
139+
pinctrl-0 = <&spi1_nss_pa15 &spi1_sck_pa5
140+
&spi1_miso_pa6 &spi1_mosi_pa7>;
140141
pinctrl-names = "default";
141142
status = "okay";
142143
};

0 commit comments

Comments
 (0)