Skip to content

Commit

Permalink
boards: stm32: Fix Arduino I2C on Nucleo-WL55JC
Browse files Browse the repository at this point in the history
Fixed wrong I2C bus being enabled (i2c2 instead of i2c3) and
corresponding arduino nexus mappings so that I2C works correctly on
Arduino shields attached to Nucleo-WL55JC.

Signed-off-by: Benjamin Cabé <[email protected]>
  • Loading branch information
kartben committed Sep 6, 2024
1 parent a80af33 commit d20c852
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion boards/st/nucleo_wl55jc/arduino_r3_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
};

arduino_serial: &usart1 {};
arduino_i2c: &i2c2 {};
arduino_i2c: &i2c3 {};
arduino_spi: &spi1 {};
4 changes: 2 additions & 2 deletions boards/st/nucleo_wl55jc/doc/nucleo_wl55jc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ Default Zephyr Peripheral Mapping:
.. rst-class:: rst-columns

- LPUART_1 TX/RX : PA3/PA2 (ST-Link Virtual Port Com)
- I2C_2_SCL : PA12 (Arduino I2C)
- I2C_2_SDA : PA11 (Arduino I2C)
- I2C_3_SCL : PB13 (Arduino I2C)
- I2C_3_SDA : PB14 (Arduino I2C)
- SPI_1_NSS : PA4 (arduino_spi)
- SPI_1_SCK : PA5 (arduino_spi)
- SPI_1_MISO : PA6 (arduino_spi)
Expand Down
4 changes: 2 additions & 2 deletions boards/st/nucleo_wl55jc/nucleo_wl55jc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ stm32_lp_tick_source: &lptim1 {
status = "okay";
};

&i2c2 {
pinctrl-0 = <&i2c2_scl_pa12 &i2c2_sda_pa11>;
&i2c3 {
pinctrl-0 = <&i2c3_scl_pb13 &i2c3_sda_pb14>;
pinctrl-names = "default";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
Expand Down

0 comments on commit d20c852

Please sign in to comment.