Skip to content

Commit

Permalink
boards: st: nucleo_wb09ke: add SPI and I2C
Browse files Browse the repository at this point in the history
Add I2C and SPI configuration to board DTS and mark as supported in YAML.
Also add support for arduino_i2c and arduino_spi.

Signed-off-by: Mathieu Choplain <[email protected]>
  • Loading branch information
mathieuchopstm committed Oct 15, 2024
1 parent e651bb5 commit 2b031b7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/st/nucleo_wb09ke/arduino_r3_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@
};
};

arduino_i2c: &i2c1 {};
arduino_serial: &usart1 {};
arduino_spi: &spi3 {};
15 changes: 15 additions & 0 deletions boards/st/nucleo_wb09ke/nucleo_wb09ke.dts
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,18 @@
current-speed = <115200>;
status = "okay";
};

&i2c1 {
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
pinctrl-names = "default";
status = "okay";
};

&spi3 {
pinctrl-0 = <&spi3_nss_pa9 &spi3_sck_pb3 &spi3_miso_pa8 &spi3_mosi_pa11>;
pinctrl-names = "default";
status = "okay";
/* Select 64MHz clock for SPI3 */
clocks = <&rcc STM32_CLOCK_BUS_APB1 (1 << 14)>,
<&rcc STM32_SRC_SYSCLK SPI3_I2S3_SEL(3)>;
};
4 changes: 4 additions & 0 deletions boards/st/nucleo_wb09ke/nucleo_wb09ke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ toolchain:
ram: 64
flash: 512
supported:
- arduino_i2c
- arduino_spi
- gpio
- i2c
- spi
vendor: st

0 comments on commit 2b031b7

Please sign in to comment.