Skip to content

Commit 5c1b7d0

Browse files
djiatsaf-stkartben
authored andcommitted
boards: st: update dts properties
- Change SPI pin signals due to conflict with USB pins (see UM3353, section 6.10). - Add i2C2 node needed for I2C test driver. - Add adc as supported peripheral in the board Yaml file. Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent 8df1591 commit 5c1b7d0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

boards/st/nucleo_c071rb/nucleo_c071rb.dts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,16 @@
121121
clock-frequency = <I2C_BITRATE_FAST>;
122122
};
123123

124+
&i2c2 {
125+
pinctrl-0 = <&i2c2_scl_pa7 &i2c2_sda_pa6>;
126+
pinctrl-names = "default";
127+
status = "okay";
128+
clock-frequency = <I2C_BITRATE_FAST>;
129+
};
130+
124131
&spi1 {
125-
pinctrl-0 = <&spi1_nss_pa4 &spi1_sck_pa5
126-
&spi1_miso_pa11 &spi1_mosi_pa12>;
132+
pinctrl-0 = <&spi1_nss_pb0 &spi1_sck_pb3
133+
&spi1_miso_pb4 &spi1_mosi_pb5>;
127134
pinctrl-names = "default";
128135
status = "okay";
129136
};

boards/st/nucleo_c071rb/nucleo_c071rb.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ toolchain:
66
- zephyr
77
- gnuarmemb
88
supported:
9+
- adc
910
- arduino_gpio
1011
- counter
1112
- dma

0 commit comments

Comments
 (0)