Skip to content

Commit 347bc4b

Browse files
committed
boards: st: nucleo_u385rg_q: change arduino_spi to spi1
According to user manual UM3062, table 16, arduino_spi is connected to spi1 instead of spi3. Enable spi1 node, remove i2c3 and disable dac1 nodes to avoid conflict with PA7 and PA4 pins. Signed-off-by: Ulrich KAMDEM <kamdemulricharmel@gmail.com>
1 parent d28e89e commit 347bc4b

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

boards/st/nucleo_u385rg_q/arduino_r3_connector.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939

4040
arduino_i2c: &i2c1 {};
4141

42-
arduino_spi: &spi3 {};
42+
arduino_spi: &spi1 {};
4343

4444
arduino_serial: &lpuart1 {};

boards/st/nucleo_u385rg_q/nucleo_u385rg_q.dts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,11 @@
144144
status = "okay";
145145
};
146146

147-
&dac1 {
148-
status = "okay";
147+
/* Disabled to prevent a conflict between
148+
* DAC1 and SPI1 on PA4.
149+
*/
150+
&dac1 {
151+
status = "disabled";
149152
pinctrl-0 = <&dac1_out1_pa4>;
150153
pinctrl-names = "default";
151154
};
@@ -168,18 +171,19 @@
168171
status = "okay";
169172
};
170173

171-
&i2c3 {
172-
pinctrl-0 = <&i2c3_scl_pa7 &i2c3_sda_pc1>;
173-
pinctrl-names = "default";
174-
status = "okay";
175-
};
176-
177174
&rng {
178175
clocks = <&rcc STM32_CLOCK(AHB2, 18)>,
179176
<&rcc STM32_SRC_MSIK RNG_SEL(1)>;
180177
status = "okay";
181178
};
182179

180+
&spi1 {
181+
pinctrl-0 = <&spi1_nss_pa4 &spi1_sck_pa5
182+
&spi1_miso_pa6 &spi1_mosi_pa7>;
183+
pinctrl-names = "default";
184+
status = "okay";
185+
};
186+
183187
&spi3 {
184188
pinctrl-0 = <&spi3_nss_pa15 &spi3_sck_pb3
185189
&spi3_miso_pb4 &spi3_mosi_pb5>;

0 commit comments

Comments
 (0)